tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found
Date Fri, 01 Feb 2008 13:05:30 GMT
The jars in server/lib and common/lib aren't the only jars important to 
tomcat.  Also look at the jars in the bin directory and take care to 
remove older jars that have the same classes as the 5.5 release.  It 
might work to upgrade this way if you do a more thorough replacement.  
Also I believe you have to also alter the way resources are defined in 
your webapps when moving from tomcat 5.0 to 5.5.

My personal recommendation would be to do a normal install in a parallel 
directory, copy the config files, altering port numbers so you can test 
before switching over.  When you are ready and everything has been 
tested, reconfigure the port numbers in the new tomcat to match 
production, move webapps over, drop the old production tomcat and start 
the new one.

--David

George Payne wrote:

> I upgraded from 5.5.20-->5.5.25 (RH linux) by copying new jars to 
> /common/lib and /server/lib
>
> I then got these errors.  Is this a bug in 5.5.25, or some sort of 
> problem with my upgrade method?
>
> I'm now back to 5.5.20 jars and working fine again, but I'd like to 
> upgrade.
>
> Any suggestions?  Where is this dtd supposed to be?
>
> Thanks.
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> org.xml.sax.SAXException: Internal Error: File 
> /javax/servlet/resources/web-app_2_3.dtd not found
>        at 
> org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:205) 
>
>        at 
> com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148)

>
>        at 
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701)

>
>        at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1019)

>
>        at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:3

>
> 68)
>        at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)

>
>        at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

>
>        at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) 
>
>        at 
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250) 
>
>        at 
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)

>
>        at 
> org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:95) 
>
>        at 
> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
>        at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
>        at 
> org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
>        at 
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
>        at 
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) 
>
>        at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305) 
>
>        at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

>
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
>
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
>
>        at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>
>        at 
> org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>
>        at 
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>        at 
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>        at 
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>        at 
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) 
>
>        at 
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>        at java.lang.Thread.run(Thread.java:595)
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message