Error GWT

139 views
Skip to first unread message

Manuele Ferreira

unread,
Mar 7, 2009, 5:03:07 PM3/7/09
to gwt...@googlegroups.com
I was development when this error show. I commented my new code, use debug, removed all .jars and download again, but nothing change.

sun.misc.InvalidJarIndexException: Invalid index
    at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
    at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
    at sun.misc.URLClassPath.getResource(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at org.apache.catalina.core.StandardHost.<init>(StandardHost.java:67)
    at org.apache.catalina.startup.Embedded.createHost(Embedded.java:594)
    at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.<init>(EmbeddedTomcatServer.java:210)
    at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start(EmbeddedTomcatServer.java:69)
    at com.google.gwt.dev.GWTShell.startUp(GWTShell.java:778)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:582)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)


Manuele dos Reis Ferreira
Bacharelanda em Ciência da Computação UFBA
http://manueleferreira.wordpress.com/

Vick

unread,
Mar 20, 2009, 4:59:07 PM3/20/09
to GWT-Ext Developer Forum
New to the jar specification is a file called INDEX.list in the meta-
inf directory. If this file is present, then paths to the classes
will be taken from this file in a trusted manner. If this file is
faulty, or, as in my case, I renamed the jar with the version name
(example - gwt-user.jar to gwt-user-1.5.3.jar), then the class loading
mechanism will break with this exception. This is not an error of a
corrupted jar.

If you remove the INDEX.list file from all the gwt jars, and also from
the gwt-ext jars (if you are using gwt ext), and then compile it, the
error should go away.

Here's the full text of the specification.

http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR%20Index
Reply all
Reply to author
Forward
0 new messages