tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18650] - Exception while processing a JAR file
Date Tue, 05 Aug 2003 06:52:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18650>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18650

Exception while processing a JAR file

dim@colebatch.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Blocker                     |Major
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Version|4.1.18                      |4.1.27



------- Additional Comments From dim@colebatch.com  2003-08-05 06:52 -------
This may not be a bug per se, but is an unfriendly error message.  It is caused 
by an incorrect <context> entry.  I've replicated this using Tomcat 4.1.27.  Do 
the following:

1. Create a lib directory under %TOMCAT_HOME%\webapps\examples\WEB-INF and copy 
a jar into it (I used ant.jar, version 1.5.2).

2. Change the value of the path of the example application server.xml, change:

        <Context path="/examples" docBase="examples" debug="0"
                 reloadable="true" crossContext="true">

to

        <Context path="examples" docBase="examples" debug="0"
                 reloadable="true" crossContext="true">

(ie - remove the leading slash).

3. Start tomcat.  Watch the examples log, here's what I get:

2003-08-05 06:46:15 WebappLoader[examples]: Deploying class repositories to 
work directory C:\programs\jakarta-tomcat-4.1.27
\work\Standalone\localhost\examples
2003-08-05 06:46:15 WebappLoader[examples]: Deploy class files /WEB-INF/classes 
to C:\programs\jakarta-tomcat-4.1.27\bin\..\webapps\examples\WEB-INF\classes
2003-08-05 06:46:15 WebappLoader[examples]: Deploy JAR /WEB-INF/lib/ant.jar to 
C:\programs\jakarta-tomcat-4.1.27\bin\..\webapps\examples\WEB-INF\lib\ant.jar
2003-08-05 06:46:15 WebappLoader[examples]: Reloading checks are enabled for 
this Context
2003-08-05 06:46:16 ContextConfig[examples] Exception processing JAR at 
resource path /WEB-INF/lib/ant.jar
javax.servlet.ServletException: Exception processing JAR at resource path /WEB-
INF/lib/ant.jar
	at org.apache.catalina.startup.ContextConfig.tldScanJar
(ContextConfig.java:930)
	at org.apache.catalina.startup.ContextConfig.tldScan
(ContextConfig.java:868)
	at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:647)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent
(ContextConfig.java:243)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
	at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3568)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start
(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2190)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
----- Root Cause -----
java.io.FileNotFoundException
	at org.apache.naming.resources.DirContextURLConnection.getInputStream
(DirContextURLConnection.java:344)
	at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
	at sun.net.www.protocol.jar.JarURLConnection.connect
(JarURLConnection.java:85)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile
(JarURLConnection.java:69)
	at org.apache.catalina.startup.ContextConfig.tldScanJar
(ContextConfig.java:906)
	at org.apache.catalina.startup.ContextConfig.tldScan
(ContextConfig.java:868)
	at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:647)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent
(ContextConfig.java:243)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
	at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3568)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start
(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2190)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2003-08-05 06:46:16 ContextConfig[examples]: Marking this application 
unavailable due to previous error(s)
2003-08-05 06:46:16 StandardManager[examples]: Seeding random number generator 
class java.security.SecureRandom
2003-08-05 06:46:16 StandardManager[examples]: Seeding of random number 
generator has been completed
2003-08-05 06:46:16 StandardContext[examples]: Context startup failed due to 
previous errors

Mime
View raw message