You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ykyuen <yi...@gmail.com> on 2009/12/23 07:05:07 UTC
maven-jetty-plugin VS Tomcat
Hi all,
i have created a war maven project and if i start in using maven-jetty
plugin, everything works fine.
but if i tried to deploy the war project to tomcat. there is an error in the
calalina.log
Dec 23, 2009 1:43:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in dependencyCheck
java.util.zip.ZipException: invalid literal/length code
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:146)
at java.util.jar.JarInputStream.read(JarInputStream.java:177)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:65)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:43)
at
org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:378)
at
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:189)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/corvus] startup failed due to previous errors
actually i also deployed the project to a standalone jetty, but it throws
the following exception
2009-12-23 13:59:29.674::INFO: jetty-6.1.21
2009-12-23 13:59:29.910::WARN: failed StartupServlet:
java.lang.NoClassDefFoundError: hk/hku/cecid/
piazza/commons/Sys
2009-12-23 13:59:29.910::WARN: EXCEPTION
java.lang.ClassNotFoundException:
hk.hku.cecid.piazza.commons.servlet.http.HttpDispatcher
but i am sure the the HttpDispatcher and Sys classes are present in the .jar
files inside the ~/WEB-INF/lib folder.
Have i missed anything to run the project using other web containers instead
of the maven-jetty-plugins?
Thanks for your help.
Regards,
Kit
--
View this message in context: http://old.nabble.com/maven-jetty-plugin-VS-Tomcat-tp26897619p26897619.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-jetty-plugin VS Tomcat
Posted by ykyuen <yi...@gmail.com>.
I found the failure reason.
It was because i tried to replace some strings when copying the webapps
folder using maven-antrun-plugin. and the .jar files in the ~/WEB-INF/lib
were corrupted during the string replacement. that's y there were
java.util.zip.ZipException and java.lang.ClassNotFoundException.
The problem is solved. Thanks.
Regards,
Kit
--
View this message in context: http://old.nabble.com/maven-jetty-plugin-VS-Tomcat-tp26897619p26950332.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org