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

On Mar 7, 5:03 pm, Manuele Ferreira <[email protected]> wrote:
> 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 
> UFBAhttp://manueleferreira.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Error GWT Manuele Ferreira
    • Re: Error GWT Vick

Reply via email to