Unable to run DevMode

101 views
Skip to first unread message

Raziel

unread,
Dec 21, 2009, 4:55:31 PM12/21/09
to Google Web Toolkit
Hi, I just upgraded my application from 1.7.0 to 2.0, and while
everything is working fine in production mode, when I try to run
Development mode I get the following error:

Loading modules
com.appiancorp.gwt.appbuilder.ApplicationBuilderDev
Public resources found in...
[WARN] Error processing classpath URL 'file:/C:/Documents
%20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/
1.2.1/jmxtools-1.2.1.jar'
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
(ResourceOracleImpl.java:175)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
(ResourceOracleImpl.java:223)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
(ResourceOracleImpl.java:249)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.<init>
(ResourceOracleImpl.java:293)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.<init>
(ResourceOracleImpl.java:283)
at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:287)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:141)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)
[WARN] Error processing classpath URL 'file:/C:/Documents
%20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/
1.2.1/jmxri-1.2.1.jar'
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
(ResourceOracleImpl.java:175)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
(ResourceOracleImpl.java:223)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
(ResourceOracleImpl.java:249)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.<init>
(ResourceOracleImpl.java:293)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.<init>
(ResourceOracleImpl.java:283)
at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:287)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:141)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)

I'm trying to run DevMode from Eclipse. I have to say my project
configuration is not "typical". Since my GWT application lives within
another application that requires logging in, previously in 1.7 I used
to point the start URL in the Debug Web Application configuration to
the address that pointed to the login page. So I just logged in and
navigated to my GWT application, and at that moment the breakpoint
weer hit and everything worked nicely.

However, now I don't know where to specify the start URL since the new
plug-in removed that field, and DevMode doesn't seem to be doing
anything and instead I get that exception.

Any ideas?

Thanks

Sam E.

unread,
Dec 21, 2009, 11:57:07 PM12/21/09
to Google Web Toolkit
I am having the same issue right now.


00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/
ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/

Rajeev Dayal

unread,
Dec 22, 2009, 11:40:32 AM12/22/09
to google-we...@googlegroups.com
Can you verify that the jar file is intact? To do so, use the jar command to try and list its contents:

jar tvf   jmxtools-1.2.1.jar

> I'm trying to run DevMode from Eclipse. I have to say my project
> configuration is not "typical". Since my GWT application lives within
> another application that requires logging in, previously in 1.7 I used
> to point the start URL in the Debug Web Application configuration to
> the address that pointed to the login page. So I just logged in and
> navigated to my GWT application, and at that moment the breakpoint
> weer hit and everything worked nicely.
>
> However, now I don't know where to specify the start URL since the new
> plug-in removed that field, and DevMode doesn't seem to be doing
> anything and instead I get that exception.

GWT attempts to guess what the startup URLs are. It looks for the HTML and JSP pages that are direct children of your war folder, and generates startup URLs from them. If it does not find any files that match that criteria, no startup URLs will be listed. 

You can add the following program argument to your launch configuration to specify a startup URL:

-startupUrl <URL Fragment>

where <URL Fragment> is the path to a page (relative to the war directory) or a servlet.
 
>
> Any ideas?
>
> Thanks

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Raziel

unread,
Dec 22, 2009, 6:41:12 PM12/22/09
to Google Web Toolkit
The jar is untouched. I also have configured the startupUrl in my
eclipse plug-in Program Arguments. I can debug, however it only works
after the second time I put the address in the browser's address bar.
The first time I get that exception.

On Dec 22, 11:40 am, Rajeev Dayal <rda...@google.com> wrote:

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>

Sorinel C

unread,
Dec 23, 2009, 4:56:56 PM12/23/09
to Google Web Toolkit
You can start properly the GWT 2.0 DevMode like it's described here:

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

Cheers!

Reply all
Reply to author
Forward
0 new messages