Runtime error!!!!

I created a jsp file sample.jsp just displaying the details from a doctype and have put it into webapps directory.Then after that I called the JSP.Its giving the following error…Whats the reason?? Where and how I have to register the collection? I have even attached my sample.jsp and the error have a look at that too…


Error: 500
Location: /property/sample.jsp
Internal Servlet Error:

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at sample_5._jspService(sample_5.java:542)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 119: StoreException occured.
com.softwareag.xtools.xapplication.store.StoreException
collection for the doctype ‘Canteen’ is not registered.
at com.softwareag.xtools.xapplication.store.TaminoStore.getRegisteredDoctypeCollection(TaminoStore.java:865)
at com.softwareag.xtools.xapplication.store.TaminoStore.getCollectionInQuery(TaminoStore.java:851)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:690)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:760)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:249)
at com.softwareag.xtools.xapplication.jsp.SessionContext.read(SessionContext.java:321)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:116)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:118)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:169)
at sample_5._jspService(sample_5.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

dgdfgf
myjsp.txt (4.23 KB)

Hallo,

I had a glance at your JSP pages. You are using a doctype (root element of your documents) called Canteen.

For every doctype you use within you JSPs. You must ensure that it is registered within the web.xml file. For the simple examples of XApplication there is only one doctype registered

Property or patient

If you use only Canteen, adapt you web.xml by replacing Property with Canteen.

If you are using more than one doctype, have a look at the web.xml file of the invoice example. It uses for example 2 doctypes. Currently, you can register up to 99 doctypes.

The registering of doctypes is necessary for X-Application knows from which collection it has to read the documents, when it gets a query or where to store documents when it get an update / insert request.

Hope, that helps you to get running your application.

Bye,
Christian.

I have changed my web.xml in the property directory…But its saying…element not found in the Database…But I have three instances in my Tamino Server…
Database Name = First
Collection Name = ColCanteen
Schema Name = ScmName
Doctype = Canteen…

Its giving the following error…I am attaching that too…

Location: /property/sample.jsp
Internal Servlet Error:

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at sample_14._jspService(sample_14.java:542)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 119: StoreException occured.
com.softwareag.xtools.xapplication.store.StoreException
element not found in database: /Canteen[@ino:id=1]
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:701)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:760)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:249)
at com.softwareag.xtools.xapplication.jsp.SessionContext.read(SessionContext.java:321)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:116)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:118)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:169)
at sample_14._jspService(sample_14.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

Location: /property/sample.jsp
Internal Servlet Error:

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at sample_14._jspService(sample_14.java:542)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 119: StoreException occured.
com.softwareag.xtools.xapplication.store.StoreException
element not found in database: /Canteen[@ino:id=1]
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:701)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:760)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:249)
at com.softwareag.xtools.xapplication.jsp.SessionContext.read(SessionContext.java:321)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:116)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:118)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:169)
at sample_14._jspService(sample_14.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

dgdfgf

I have changed my web.xml in the property directory…But its saying…element not found in the Database…But I have three instances in my Tamino Server…
Database Name = First
Collection Name = ColCanteen
Schema Name = ScmName
Doctype = Canteen…

Its giving the following error…I am attaching that too…

Location: /property/sample.jsp
Internal Servlet Error:

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at sample_14._jspService(sample_14.java:542)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 119: StoreException occured.
com.softwareag.xtools.xapplication.store.StoreException
element not found in database: /Canteen[@ino:id=1]
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:701)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:760)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:249)
at com.softwareag.xtools.xapplication.jsp.SessionContext.read(SessionContext.java:321)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:116)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:118)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:169)
at sample_14._jspService(sample_14.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

Location: /property/sample.jsp
Internal Servlet Error:

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at sample_14._jspService(sample_14.java:542)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 119: StoreException occured.
com.softwareag.xtools.xapplication.store.StoreException
element not found in database: /Canteen[@ino:id=1]
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:701)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:760)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:249)
at com.softwareag.xtools.xapplication.jsp.SessionContext.read(SessionContext.java:321)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:116)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:118)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:169)
at sample_14._jspService(sample_14.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

dgdfgf
myjsp.txt (2.87 KB)

Hello,

looks good also if you got this error message. X-Application can connect to your database and your collection, but does not find the document with ino:id=1.

This query is used within the directcommand. Use the Tamino Explorer or the interactive interface to look for the document ids of your documents. Use an existin one and change it within your JSP page.

<bdm:directcommand type=“read” docid=“/Canteen[@ino:id=use the ino:id of an existing document here]” />

Hope, that helps to run the page.

Bye,
Christian.

Yes,I have used the Tamino Explorer for that…And I have three instances for the Canteen Doctype with ino:id=1,ino:id=2,ino:id=3…Even then how can it say like no element found in the database?

I have used three of the ino:ids.

OKey If suppose I need to see all the three what shld be the taglibrary???

dgdfgf

Hello,

stop your Tomcat, delete the content of its WORK directory and restart your Tomcat.

Request the JSP page with your Browser.

Have a look at your Tomcat window. There is an output of the doctypes and collections the doctypes are mapped to.

Use the database url and the collection name for the doctype ‘Canteen’ to process the query

/Canteen[@ino:id=1]

via Tamino Interactive Interface (TII). TII is one of the tool Tamino comes with.

If this query is correctly processed by the TII and returns the expected document, I have no further idea what could be wrong.

If the query returns an error, check
the Tamino Database url,
the collection name,
the doctype.

Bye,
Christian.

Hello,

this topic will be moved to the Assistance Forum in the next days.
The assistance forum is intended to be used for technical questions and answers.

Thank you for your understanding.

Regards,
Christian.