Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Steinar Bang [EMAIL PROTECTED]: Steinar Bang [EMAIL PROTECTED]: Perhaps my JkMount statements aren't included into httpd2.conf. Hmm... I don't think that's it, either... I get the following message, when I'm starting apache: # /etc/init.d/httpd2 start Starting httpd2: XXX Create dir config (null) 0x80da5d0 set2.mount /*.jsp ajp13 [snip!] set2.mount /tps ajp13 set2.mount /tps/* ajp13 The two latest lines seems to come from JkMount calls to the part of URL space under /tps/, which is where I get 404 responses. I tried accessing the URL http://myhost/tps/ directly from tomcat, instead of via apache. So I opened http://myhost:8180/tps/ which opens the file http://myhost:8180/tps/index.html which redirects to the Struts URL http://myhost:8180/tps/TPSHome.do which results in the following response (no classes of mine in there, as far as I can see): message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: org/w3c/dom/range/Range at org.apache.xerces.validators.dtd.DTDGrammar.callStartDTD(DTDGrammar.java:190) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1073) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2177) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2133) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:882) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Platform: Intel PIII, RedHat 7.2, apache 2.0.35 from the RPM in URL http://ftp.falsehope.com/home/gomez/apache2/, tomcat 4.0.3, and mod_jk2 from RPMs in http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/rpms/ [trying to use a .war created for tomcat 3.3, with tomcat 4.0.3] Steinar Bang [EMAIL PROTECTED]: [snip!] root cause java.lang.NoClassDefFoundError: org/w3c/dom/range/Range at org.apache.xerces.validators.dtd.DTDGrammar.callStartDTD(DTDGrammar.java:190) [snip!] It looks like Xerces is missing some stuff when creating a DOM tree from SAX calls. As far as I can see, the class is available in the .jar file installed from the xerces RPM: # unzip -l /usr/share/java/xerces.jar | grep Range 7120 02-13-02 00:32 org/apache/xerces/utils/regex/RangeToken.class 514 02-13-02 00:32 org/apache/xerces/utils/regex/Op$RangeOp.class 499 02-13-02 00:32 org/apache/xerces/utils/StringPool$CharArrayRange.class 11745 02-13-02 00:33 org/apache/xerces/dom/RangeImpl.class 258 02-13-02 00:33 org/apache/xerces/dom/RangeExceptionImpl.class 404 02-13-02 00:32 org/w3c/dom/ranges/RangeException.class 179 02-13-02 00:32 org/w3c/dom/ranges/DocumentRange.class 1408 02-13-02 00:32 org/w3c/dom/ranges/Range.class Is tomcat4 running a different Xerces from a different .jar perhaps? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Platform: Intel PIII, RedHat 7.2, apache 2.0.35 from the RPM in URL http://ftp.falsehope.com/home/gomez/apache2/, tomcat 4.0.3, and mod_jk2 from RPMs in http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/rpms/ I am trying to use a .war created for use with tomcat 3.3, with tomcat 4.0.3. Is this supposed to work? Searches on the web hasn't found me any place that talks about this. What I have done, is to drop the .war file in /var/tomcat4/webapps/. When starting, tomcat4 writes the following to the /var/tomcat4/logs/catalina.log file: Starting service Tomcat-Standalone Apache Tomcat/4.0.3 PARSE error at line 138 column 12 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). line 138 of the web.xml file of the .war file I'm using contains the /web-app end tag, with the as the final character on the line, in column 10 (ie. there is no column 12 on that line). All ideas, hints, etc. appreciated! Thanx! - Steinar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Sounds like your web.xml file has a problem in it somewhere. Sometimes the messages you get from the parser don't necessarily point you to the actual problem (much like compilers I guess). Can you post the contents of your web.xml so that we can have a look? Pete On Mon, 27 May 2002 14:05:48 +0200 Steinar Bang [EMAIL PROTECTED] wrote: Platform: Intel PIII, RedHat 7.2, apache 2.0.35 from the RPM in URL http://ftp.falsehope.com/home/gomez/apache2/, tomcat 4.0.3, and mod_jk2 from RPMs in http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3 /rpms/ I am trying to use a .war created for use with tomcat 3.3, with tomcat 4.0.3. Is this supposed to work? Searches on the web hasn't found me any place that talks about this. What I have done, is to drop the .war file in /var/tomcat4/webapps/. When starting, tomcat4 writes the following to the /var/tomcat4/logs/catalina.log file: Starting service Tomcat-Standalone Apache Tomcat/4.0.3 PARSE error at line 138 column 12 org.xml.sax.SAXParseException: The content of element type web-app must match(icon?,display-name?,description?,distributable?,context-param*,servlet *,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-pag e*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,en v-entry*,ejb-ref*). line 138 of the web.xml file of the .war file I'm using contains the /web-app end tag, with the as the final character on the line, in column 10 (ie. there is no column 12 on that line). All ideas, hints, etc. appreciated! Thanx! - Steinar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Peter Davison [EMAIL PROTECTED] A wide-eyed, innocent UNICORN, poised delicately in a MEADOW filled with LILACS, LOLLIPOPS small CHILDREN at the HUSH of twilight?? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Steinar Bang [EMAIL PROTECTED]: Platform: Intel PIII, RedHat 7.2, apache 2.0.35 from the RPM in URL http://ftp.falsehope.com/home/gomez/apache2/, tomcat 4.0.3, and mod_jk2 from RPMs in http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/rpms/ I am trying to use a .war created for use with tomcat 3.3, with tomcat 4.0.3. Is this supposed to work? Searches on the web hasn't found me any place that talks about this. What I get, when I try to access URLs inside the webapp, is 404 not found. As far as I can tell, I have the appropriate JkMount statements in a file included into httpd2.conf. What I have done, is to drop the .war file in /var/tomcat4/webapps/. When starting, tomcat4 writes the following to the /var/tomcat4/logs/catalina.log file: Starting service Tomcat-Standalone Apache Tomcat/4.0.3 PARSE error at line 138 column 12 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). This was caused by a session-config in the wrong place according to the 2.2 DTD. I moved it so that the web.xml file validated, and the above message went away. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Peter Davison [EMAIL PROTECTED]: Sounds like your web.xml file has a problem in it somewhere. Yep, it did. Sometimes the messages you get from the parser don't necessarily point you to the actual problem (much like compilers I guess). Can you post the contents of your web.xml so that we can have a look? I found the problem with the web.xml file. A session-config was in the wrong place according to the DTD. But this was masking the real problem, which is that I get 404 not found on the webapp URLs. Perhaps my JkMount statements aren't included into httpd2.conf. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems using a tomcat 3.3 .war file with tomcat 4.0.3
Steinar Bang [EMAIL PROTECTED]: But this was masking the real problem, which is that I get 404 not found on the webapp URLs. Perhaps my JkMount statements aren't included into httpd2.conf. Hmm... I don't think that's it, either... I get the following message, when I'm starting apache: # /etc/init.d/httpd2 start Starting httpd2: XXX Create dir config (null) 0x80da5d0 set2.mount /*.jsp ajp13 set2.mount /servlet/* ajp13 set2.mount /examples/servlet/* ajp13 set2.mount /examples/*.jsp ajp13 set2.mount /admin/servlet/* ajp13 set2.mount /admin/*.jsp ajp13 set2.mount /test/servlet/* ajp13 set2.mount /test/*.jsp ajp13 set2.mount /tps ajp13 set2.mount /tps/* ajp13 [ OK ] The two latest lines seems to come from JkMount calls to the part of URL space under /tps/, which is where I get 404 responses. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]