tomcat 4.1无法载入app?

05-10-21 hgwnet
刚部署了个app,在resin,tomcat5.x都没有问题,但在4.1.31下会出现如下错误,请高人指点一二,先多谢谢了。

javax.servlet.ServletException: IOException processing JAR at resource path /WEB-INF/lib/activation-1.0.2.jar

at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:875)

at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

at org.apache.catalina.core.StandardService.start(StandardService.java:450)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

at org.apache.catalina.startup.Catalina.start(Catalina.java:463)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

at org.apache.catalina.startup.Catalina.process(Catalina.java:129)

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:156)

----- Root Cause -----

java.util.zip.ZipException: 拒绝访问。

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:111)

at java.util.jar.JarFile.<init>(JarFile.java:127)

at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:51)

at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:178)

at java.security.AccessController.doPrivileged(Native Method)

at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)

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:847)

at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

at org.apache.catalina.core.StandardService.start(StandardService.java:450)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

at org.apache.catalina.startup.Catalina.start(Catalina.java:463)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

at org.apache.catalina.startup.Catalina.process(Catalina.java:129)

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:156)

2005-10-21 21:46:33 ContextConfig[/test]: Marking this application unavailable due to previous error(s)

2005-10-21 21:46:33 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom

2005-10-21 21:46:33 StandardManager[/test]: Seeding of random number generator has been completed

2005-10-21 21:46:33 StandardContext[/test]: Context startup failed due to previous errors

banq
2005-10-22 18:33
好像与 /WEB-INF/lib/activation-1.0.2.jar

有关,可能两个版本有不同的支持,折腾折腾这个jar试试看。

hgwnet
2005-10-23 14:47
似乎与那个jar没有直接的关系。

这个问题很早就存在,同样是tomcat4.1.31,有时候完全正常,有时候就会出现这个问题。google搜索也无法找到确切的解决之道。从相关信息看,似乎跟安全有关系,但又无法把握。

我的系统是win2000 advanced server,不知道是不是跟操作系统有关系呢?

tomcat5.x的标准控制台没有dos界面,以startup.bat启动吧,控制台窗口又无法调整,很小,真是郁闷呀。

猜你喜欢