Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat 6 web app is not started because of "java.io.IOException: invalid header"
Tomcat 6 web app is not started because of "java.io.IOException: invalid header" [message #219962] Tue, 02 September 2008 19:24 Go to previous message
Jan Yan is currently offline Jan Yan
Messages: 7
Registered: July 2009
Junior Member
Hello,

I have an Eclipse project which is running OK on JDK 1.5, Tomcat 6 from
Eclipse 3.4 on a Linux box. The whole project is checked in to a source
code repository. Then I checked this project out from a Windows box,
Eclipse Europa, also using JDK 1.5, Tomcat 6. When I deployed the project
and started the Tomcat server. I got the error:

SEVERE: Error in dependencyCheck
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Unknown Source)
at java.util.jar.Manifest.read(Unknown Source)
at java.util.jar.Manifest.<init>(Unknown Source)
at
org.apache.catalina.util.ExtensionValidator.validateApplicat ion(ExtensionValidator.java:149)
at
org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4167)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at
org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Sep 2, 2008 3:50:14 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Sep 2, 2008 3:50:14 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/XXXXPOC] startup failed due to previous errors

According to the post:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 055.html, I
created a new project at this Windows box, then copied all the source
codes and web folder to the new project. The new project is at the same
workspace as the previous error project and has the identical content. And
it is running just FINE! The question is why the project I checked out
directly from the repository didn't work? Also I copied the new project's
settings folder to the error project. But the previous error project
still didn't work. So what else is different between the error project and
new project?

Please help! I would like to know whether it relates to Windows vs. Linux.
Is there way to fix it so that it works at all the environments.

Thank you very much.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Hot Code Replace
Next Topic:How do I change "WebContent" folder in web project?
Goto Forum:
  


Current Time: Sun May 19 08:57:43 EDT 2013

Powered by FUDForum. Page generated in 0.01894 seconds