Hi, I'm reporting here the solution just for completeness. The problem was that in a directory ~/lib/ I had two or three jars named gwtext-2.0.5, gwtext-2.0.3, and a gwtext.jar. In my project I was including gwtext-2.0.5, but the above error was displayed. After some inspections I found that inside the .jar there's a directory called META-INF and a file INDEX.LIST. This one contained this text:
JarIndex-Version: 1.0 gwtext.jar com com/gwtext ... and a list of other files. Being the included file called gwtext-2.0.5.jar and beign present in the directory a gwtext.jar, probably the thing broke at some level using both the files in parallel. Removing the gwtext.jar solved the thing. I know it's very stange, but that's the thing. regards, PeSc|O On Aug 21, 3:42 pm, Arthur Kalmenson <[EMAIL PROTECTED]> wrote: > Since it's gwt-ext at fault here, you should probably check and ask at > the gwt-ext Google Group:http://groups.google.com/group/gwt-ext > > Generally people have a lot of trouble with gwt-ext. It breaks > debugging, is very slow and doesn't really take advantage of GWT's > Deferred Bindings. Usually it's a good idea to avoid Javascript > wrapper libraries because they are usually slow and nowhere near the > level of quality you come to expect after using regular GWT. I suggest > checking out the gwt-incubator (http://code.google.com/p/google-web- > toolkit-incubator/) if you need fancy widgets. > > Regards, > Arthur Kalmenson > > On Aug 20, 8:46 am, "PeSc|O" <[EMAIL PROTECTED]> wrote: > > > I'm still having this problem with gwt 1.5.1. > > Any clue? > > > thanks > > > On Jul 4, 11:47 am, "PeSc|O" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've made a simple project with netbeans 6.1, gwt4nb, gwt 1.5rc1 and > > > gwt-ext 2.0.4. > > > > Main.gwt.xml is the following: > > > > <module> > > > <inherits name="com.google.gwt.user.User"/> > > > <inherits name="com.gwtext.GwtExt"/> > > > > <entry-point class="org.yournamehere.client.MainEntryPoint"/> > > > <!-- Do not define servlets here, use web.xml --> > > > > <stylesheet src="js/ext/resources/css/ext-all.css" /> > > > <script src="js/ext/adapter/ext/ext-base.js" /> > > > <script src="js/ext/ext-all.js" /> > > > </module> > > > > It fails to compile with he following errors. > > > > library-inclusion-in-manifest: > > > Exception in thread "main" sun.misc.InvalidJarIndexException: Invalid > > > index > > > at sun.misc.URLClassPath > > > $JarLoader.getResource(URLClassPath.java:854) > > > at sun.misc.URLClassPath > > > $JarLoader.getResource(URLClassPath.java:762) > > > at sun.misc.URLClassPath.getResource(URLClassPath.java:168) > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:192) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: > > > 276) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: > > > 319) > > > at java.lang.Class.forName0(Native Method) > > > at java.lang.Class.forName(Class.java:247) > > > at com.google.gwt.dev.javac.JdtCompiler > > > $INameEnvironmentImpl.findType(JdtCompiler.java:140) > > > at com.google.gwt.dev.javac.JdtCompiler > > > $INameEnvironmentImpl.findType(JdtCompiler.java:125) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java: > > > 122) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java: > > > 178) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java: > > > 2391) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java: > > > 2129) > > > at > > > org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java: > > > 44) > > > at > > > org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java: > > > 163) > > > at > > > org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java: > > > 114) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java: > > > 1121) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java: > > > 835) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java: > > > 960) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java: > > > 290) > > > at > > > org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java: > > > 218) > > > at > > > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java: > > > 603) > > > at > > > org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java: > > > 357) > > > at > > > org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371) > > > at > > > com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:275) > > > at > > > com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:194) > > > at > > > com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java: > > > 72) > > > at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java: > > > 327) > > > at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564) > > > at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554) > > > at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214) > > > > Btw if I remove the <inherits name="com.gwtext.GwtExt"/> it compiles > > > fine. > > > I added these libraries in NetBeans project: gwt-ext-2.0.4, gwt-1.5.0- > > > dev-linux, gwt-1.5.0-servlet, gwt-1.5.0-user. > > > I really don't know where to look for a solution to my problem, seems > > > like no one has encountered this. > > > Oh, I put under web/js my ext-2.0.2 files, but I don't think that's > > > the problem. > > > > I'm on an ubuntu 8.04. > > > thanks and regards, > > > > PeSc|O --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
