Keith, I created a sample using only Eclipse and WTP and I experience exactly the same problem where I get Illegal constant pool index.
i.e. I ruled out MAVEN from the picture. It receives the same error. Were you able to involve someone from the UI Binder area to help figure out what is going on?? Brian On Mar 12, 4:40 pm, bkbonner <[email protected]> wrote: > Keith, I included the sample here: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=4745 > > Brian > > On Mar 12, 2:48 pm, bkbonner <[email protected]> wrote: > > > Keith, > > > I was working to put together a sample of what I was seeing and I > > think I figured out what was wrong. the ui.xml files don't get copied > > over by default if they're in the src/main/java directories. they > > have to be in src/main/resources, or the maven configuration has to be > > changed to make this work. I haven't tried it yet, but I'm pretty > > sure that's the reason for the prior failures. > > > Brian > > > On Mar 12, 1:57 pm, bkbonner <[email protected]> wrote: > > > > I got the other JARs removed. I changed the scope to provided and > > > they're gone, but the results are the same. :( > > > > If you have any suggestions, they'd be appreciated. > > > > I'll still plug away. If I pull out the UI Binder stuff it works > > > fine. I'll look at pulling another working example in. > > > > Brian > > > > 13:45:30.618 [ERROR] [Application] Failed to create an instance of > > > 'com.test.gwt.client.ActivityLogView' via deferred binding > > > java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler, > > > method: <init> signature: ()V) Illegal constant pool index > > > at > > > com.google.gwt.dom.client.StyleInjector.schedule(StyleInjector.java: > > > 389) > > > at > > > com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:382) > > > at > > > com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:222) > > > at > > > com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:208) > > > at > > > com.test.gwt.client.com_test_gwt_client_ActivityLogView_ActivityLogViewUiBinderImpl_GenBundle_default_InlineClientBundleGenerator > > > $1.ensureInjected(com_test_gwt_client_ActivityLogView_ActivityLogViewUiBinderImpl_GenBundle_default_InlineClientBundleGenerator.java: > > > 14) > > > at > > > com.test.gwt.client.ActivityLogView_ActivityLogViewUiBinderImpl.createAndBindUi(ActivityLogView_ActivityLogViewUiBinderImpl.java: > > > 25) > > > at > > > com.test.gwt.client.ActivityLogView_ActivityLogViewUiBinderImpl.createAndBindUi(ActivityLogView_ActivityLogViewUiBinderImpl.java: > > > 1) > > > at com.test.gwt.client.ActivityLogView.<init>(ActivityLogView.java: > > > 28) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) > > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: > > > 39) > > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java: > > > 27) > > > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > > at > > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: > > > 422) > > > at > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39) > > > at com.google.gwt.core.client.GWT.create(GWT.java:98) > > > at com.test.gwt.client.Application.onModuleLoad(Application.java: > > > 24) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > > 39) > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > > > 25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: > > > 369) > > > at > > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: > > > 185) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: > > > 380) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: > > > 222) > > > at java.lang.Thread.run(Thread.java:595) > > > > 13:45:30.806 [ERROR] [Application] Unable to load module entry point > > > class com.test.gwt.client.Application (see associated exception for > > > details) > > > java.lang.RuntimeException: Deferred binding failed for > > > 'com.test.gwt.client.ActivityLogView' (did you forget to inherit a > > > required module?) > > > at > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43) > > > at com.google.gwt.core.client.GWT.create(GWT.java:98) > > > at com.test.gwt.client.Application.onModuleLoad(Application.java: > > > 24) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > > 39) > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > > > 25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: > > > 369) > > > at > > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: > > > 185) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: > > > 380) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: > > > 222) > > > at java.lang.Thread.run(Thread.java:595) > > > Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see > > > previous log entries) > > > at > > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: > > > 449) > > > at > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39) > > > at com.google.gwt.core.client.GWT.create(GWT.java:98) > > > at com.test.gwt.client.Application.onModuleLoad(Application.java: > > > 24) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > > 39) > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > > > 25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: > > > 369) > > > at > > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: > > > 185) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: > > > 380) > > > at > > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: > > > 222) > > > at java.lang.Thread.run(Thread.java:595) > > > > On Mar 12, 1:43 pm, Keith Platfoot <[email protected]> wrote: > > > > > Brian, > > > > > You're correct that your WEB-INF/lib should only require one > > > > gwt-servlet.jar. The others (gwt-user, gwt-soyc-vis) are only used at > > > > compile-time, so there's no need to deploy them with your WAR file. > > > > > Also, using Tomcat with -noserver seems like the right approach to me. > > > > It > > > > certainly should be easier than trying to rig the embedded Jetty > > > > instance to > > > > do what you want. > > > > > Keith > > > > > On Fri, Mar 12, 2010 at 1:06 PM, bkbonner <[email protected]> > > > > wrote: > > > > > I suspect this is a classloader thing, but I'm not sure how to resolve > > > > > it. > > > > > > when I run WTP tomcat server and look at the WEB-INF/lib directory > > > > > > I have: > > > > > > gwt-servlet-2.0.3.jar > > > > > gwt-servlet.jar > > > > > gwt-soyc-vis-2.0.3.jar > > > > > gwt-user-2.0.3.jar > > > > > > Do all of these need to be there in the WAR? > > > > > > I thought only a single gwt-servlet had to be out there. These are > > > > > all out there because I'm using m2eclipse and these are defined to be > > > > > exported in the Java EE Module section of the project preferences > > > > > (what JARs are placed in WEB-INF/lib). > > > > > > I suspect this is part of the problem, but I can't say for certain. > > > > > > Brian > > > > > > On Mar 12, 10:13 am, bkbonner <[email protected]> wrote: > > > > > > Hi, Keith. > > > > > > > Yes, i was wondering if that was the case. I hope that the plugin > > > > > > just includes the -noserver configuration as part of it. > > > > > > > The UIBinder error makes it seem like the xml code is not being > > > > > > recognized by OOPHM when it's trying to run. > > > > > > > Thanks for getting back to me. I hope someone can give me some help > > > > > > with this. In the meantime, I've been using the plugin in a > > > > > > separate > > > > > > project (no Maven or special config) and running it out of jetty and > > > > > > it seems to work pretty well. > > > > > > > Another option I have is to get things running in jetty -- are there > > > > > > any tips on configuring the embedded jetty instance to support a > > > > > > server -- or should I shy away from that? > > > > > > > I'm looking for the fastest way to get up and running and it seemed > > > > > > like it was to have my app running in tomcat and run the OOPHM using > > > > > > jetty with -noserver. Any advice would be appreciated. > > > > > > > Brian > > > > > > > On Mar 11, 2:41 pm, Keith Platfoot <[email protected]> wrote: > > > > > > > > Brian, > > > > > > > > I think the issues you were having with adding the -noserver > > > > > > > argument > > > > > to > > > > > > > your launch configuration were probably the result of a known > > > > > > > issue > > > > > with the > > > > > > > Eclipse plugin 1.3 preview (check the 1.3 announcement email for > > > > > details). > > > > > > > This has since been fixed, so once 1.3 final is released > > > > > > > (probably > > > > > next > > > > > > > week), this particular problem should be resolved. > > > > > > > > Regarding the NoSuchFieldError exception: I have hit this same > > > > > > > bug when > > > > > > > using GWT with a Tomcat server in Eclipse for Java EE. My > > > > > > > solution was > > > > > the > > > > > > > same: moving the GWT dependencies to the top of the project's > > > > > > > build > > > > > > > classpath. I'll investigate to see if there is something we can > > > > > > > do to > > > > > help > > > > > > > prevent this problem. > > > > > > > > As for the UiBinder errors, I probably would not be of much help > > > > > > > there. > > > > > > > I'll forward this email to someone who's more knowledgeable > > > > > > > about the > > ... > > read more » -- 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.
