控制台一直循环显示WebappLoader[/news]: Reloading checks are enabled for this Context StandardWrapper[/news:default]: Loading container servlet default StandardWrapper[/news:invoker]: Loading container servlet invoker StandardManager[/news]: Seeding random number generator class java.security.SecureRandom StandardManager[/news]: Seeding of random number generator has been completed StandardContext[/news]: Reloading this Context is completed WebappClassLoader: Additional JARs have been added StandardContext[/news]: Reloading this Context has started WebappLoader[/news]: Deploying class repositories to work directory D:\ulika\Tomcat\work\news WebappLoader[/news]: Deploy JAR /WEB-INF/lib/jspSmartUpload.jar to D:\ulika\news\WEB-INF\lib\jspSmartUpload.jar WebappLoader[/news]: Deploy JAR /WEB-INF/lib/mysql-connector-java-3.1.0-alpha-bin.jar to D:\ulika\news\WEB-INF\lib\mysql-connector-java-3.1.0-alpha-bin.jar WebappLoader[/news]: Deploy JAR /WEB-INF/lib/struts.jar to D:\ulika\news\WEB-INF\lib\struts.jar WebappLoader[/news]: Deploy JAR /WEB-INF/lib/upload.jar to D:\ulika\news\WEB-INF\lib\upload.jar ///该部分为红色标记 java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:112) at java.util.jar.JarFile.<init>(JarFile.java:117) at java.util.jar.JarFile.<init>(JarFile.java:82) at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1005) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:628) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2434) at org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332) at java.lang.Thread.run(Thread.java:536)///该部分为红色标记
是你的ZipFile包里的open方法出现了问题。
但这个是系统自带的包啊,
不是很明白。
StandardWrapper[/news:default]: Loading container servlet default
StandardWrapper[/news:invoker]: Loading container servlet invoker
StandardManager[/news]: Seeding random number generator class java.security.SecureRandom
StandardManager[/news]: Seeding of random number generator has been completed
StandardContext[/news]: Reloading this Context is completed
WebappClassLoader: Additional JARs have been added
StandardContext[/news]: Reloading this Context has started
WebappLoader[/news]: Deploying class repositories to work directory D:\ulika\Tomcat\work\news
WebappLoader[/news]: Deploy JAR /WEB-INF/lib/jspSmartUpload.jar to D:\ulika\news\WEB-INF\lib\jspSmartUpload.jar
WebappLoader[/news]: Deploy JAR /WEB-INF/lib/mysql-connector-java-3.1.0-alpha-bin.jar to D:\ulika\news\WEB-INF\lib\mysql-connector-java-3.1.0-alpha-bin.jar
WebappLoader[/news]: Deploy JAR /WEB-INF/lib/struts.jar to D:\ulika\news\WEB-INF\lib\struts.jar
WebappLoader[/news]: Deploy JAR /WEB-INF/lib/upload.jar to D:\ulika\news\WEB-INF\lib\upload.jar
///该部分为红色标记
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:82)
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1005)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:628)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2434)
at org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
at java.lang.Thread.run(Thread.java:536)///该部分为红色标记