Error???

Can anyone know why this error comes? i have “canteen” doctype in the collection.I can view that through my X-explorer.

javax.servlet.ServletException: 119: StoreException occured.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at display_1._jspService(display_1.java:326)
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 display_1._jspService(display_1.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

Hello,

have a look at the web.xml file which is located within the WEB-INF directory of your application.

It must contain an entry (parameter settings) to map the doctype to the collection.

If this entry is not there, add

<BR>  <context-param><BR>    <param-name>TAMINO_COLLECTION1</param-name><param-value><B>your collection name</B> </param-value><BR>  </context-param><BR>  <context-param><BR>    <param-name>TAMINO_DOCTYPE1</param-name><param-value><B>canteen</B></param-value><BR>  </context-param><BR>



!! These entries for doctype and collection are case sensitive: check if your doctype is ‘canteen’ or ‘Canteen’.


Bye,
Christian.

sample is the new directory I have created in the webappps for a new web application.I have created
apps-sample.xml and set the context path.And in its corresponding web.xml i have given correct collection name and doctype…But its taking the wrong path why??



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

org.apache.jasper.compiler.CompileException: D:\jakarta-tomcat-3.3.1\webapps\sample\display.jsp(1,0) Unable to open taglibrary http://www.softwareag.com/xtools/xapplication : D:\jakarta-tomcat-3.3.1\webapps\WEB-INF\web.xml (The system cannot find the path specified)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:734)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:790)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:731)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
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

Hello,

do you have the following line within your web.xml file?

<BR>  <taglib><BR>    <taglib-uri>http://www.softwareag.com/xtools/xapplication</taglib-uri><BR>    <taglib-location>/WEB-INF/jsp/xapplication.tld</taglib-location><BR>  </taglib><BR>



I assume yes. Now look for the file

/WEB-INF/jsp/xapplication.tld

I assume you forgot to create a sub-directory jsp containing the xapplication.tld file.

I assume this because your error message told me this.

Bye,
Christian.

Yes its working fine.I am having that JSP directory.That was not the problem.
I retarted the tomcat server.After that its working fine.So i think we should restart the server for new application to run for the first time.

dgdfgf

Hello,

yes. If you change the web.xml, the jars or classes of an application, you have to restart the Tomcat.

Bye,
Christian.