-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Sabari,
On 9/16/13 9:36 AM, Sabari Gandhi wrote: > I am sending this error again with more details: > > I am currently using Java 6 and tomcat 5.5 and my environment is > linux. You are about to hear this from every reply: upgrade. Tomcat 5.5 is no longer supported. I am unaware of any critical security issues in Tomcat 5.5.latest, but if any are identified, they will not be fixed. You should upgrade as soon as possible to Tomcat 7.0. Most webapps should have no trouble running with the new version of Tomcat, as the servlet spec is supposed to be (mostly) backward-compatible. Newer versions of Tomcat are more strict with a lot of spec concepts, though, so you may have to make some modifications in order to upgrade. But you really need to do it ASAP. > I see an mysterious exception when I try to access a simple jsp > page after tomcat is started. *When I added a new maven project > (which in turn will create a new jar) I see the exception when i am > trying to access an simple index.jsp. When I name the project and > jar as mhs-beacon-agent I see the following error and when the > project is renamed as mhs-sample-agent I don't see this error*. > > [...] > > sun.misc.InvalidJarIndexException: Invalid index > sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:931) > sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:840) > sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:810) > > sun.misc.URLClassPath.findResource(URLClassPath.java:176) Looks like a damaged JAR file. What happens if you try this from the command-line: $ jar tf /path/to/file.jar > We also set up remote debugging in linux and see the exception is > happening when it is trying to look up for "javax/servlet" , since > sun.misc.URLClassPath is suns own proprietary code i am not able to > debug the code. When I extracted two jar file and did an folder / > folder comparison I don't see any differences in index.list file or > manifest.mf apart from the name differences. I am seeing this > exception only in linux environment and not on mac (which is my > developer environment)Any help is greatly appreciated. How are you transferring the JAR file from your Mac to Linux? Possibly a newline-mangling during FTP? (I'm reaching, here). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSNxJxAAoJEBzwKT+lPKRYuMAQAJmjgNGGlwl4b83vk6MdUCXe uDFVBQqo9BAj2MDXV8o7FxmCm35xDDlHcDkV5fpg5jAvHscaMf409NjNXZBIE3om IVbere8KTlSu0VekjhJ35O/guto/B/j/gOu/g6iL3ARPfo9tAnIAGAAWlB+Up+cr 62+7bBbUB67VR8GiOxwboD5J27LSCt5mq8t3N9HfKb264HBpdb9ssYeopGQXD5p7 zAijNYULjL3Dp7I0hnH+RFWXID6OC7OuE02iYwmUy6sbPU6vnMWDTKa1fRTLXsPd lnvto3a91e3RvdVC8PczXsS3qfvWokANZOaDU93qqV1IJEfGW5ZTBSuAGcR/scWu 0+3wB/ocdtN4NbNGSO9v39f5NkJxGUpDIhucW4Eq+NMUJabNCTp1mwz/iUf3h1O1 XnEEwwqSxUGb2xdECfjXeFO9hdaY59TONbr5FKmO5iWniBPYAZNYYiSQnN9DnPRM 1t7ob34uQRYloV5+FR8X0oSwwvKhTEPgxrDx/LJDOFx4NhuFVY4i1g8iuPvhqK/3 pq3wgExD9cMDIa2MaJqnNV9pi395Mnlkj7gEgi+jtGhgSJ6A6WvfZxQryA0zyLO4 tcZwO/Potpq+oOJvehwMD8kAN1v73FC10pWM1gSm6bpMzwF3wXr9jSPJDxRPUiHH 0fXuVGWFjwn1JXgnRJ8Y =mwfN -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org