M2 Sample in Netbeans

3 views
Skip to first unread message

GWT Coder

unread,
Apr 3, 2008, 12:26:40 AM4/3/08
to gwt-maven
I downloaded the latest M2 sample and it worked great from the Windows
command shell. However, when I execute gwt:gwt from within Netbeans
6.0, I get the below error...anyone with an idea?

Thanks,

[gwt:setup {execution: default}]
[gwt:extractGwt {execution: default}]
Unzipping GWT 1.4.61 install to : C:\mymaven\info\war\target\gwtBin
[resources:resources]
Using default encoding to copy filtered resources.
[compiler:compile]
Compiling 1 source file to C:\mymaven\info\war\target\classes
[gwt:mergewebxml {execution: default}]
Looking for file: C:\mymaven\info\war\src\main\java\com\totsp
\mavenplugin\gwt\sample\Application.gwt.xml
Looking for file: C:\mymaven\info\war\src\main\resources\com\totsp
\mavenplugin\gwt\sample\Application.gwt.xml
Module file: C:\mymaven\info\war\src\main\java\com\totsp\mavenplugin
\gwt\sample\Application.gwt.xml
Unable to parse module: com.google.gwt.user.User
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Unable to merge web.xml

Embedded error: unknown protocol: c
------------------------------------------------------------------------
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
merge web.xml

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
635)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
551)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
530)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
309)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
276)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
143)
at
org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:
92)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
393)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
182)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:
760)
at
org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:
196)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:
151)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
merge web.xml
at
com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
107)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
417)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
610)
... 11 more
Caused by: java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:
796)
at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:
741)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:
260)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
498)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:
152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:891)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getWebXml(GwtWebInfProcessor.java:
216)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.insertServlets(GwtWebInfProcessor.java:
231)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.process(GwtWebInfProcessor.java:
297)
at
com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
104)
... 13 more

Charlie Collins

unread,
Apr 4, 2008, 7:33:13 AM4/4/08
to gwt-maven
Something is up with the classpath there:

"Unable to parse module: com.google.gwt.user.User "

I am not familiar enough with NetBeans to say how to address it, but
looks like a classpath thing.
Reply all
Reply to author
Forward
0 new messages