Unable to parse module

199 views
Skip to first unread message

Fábio Marigo

unread,
Sep 6, 2011, 9:12:53 AM9/6/11
to Google Web Toolkit, rodrigo...@gmail.com
Could someone help me with the error below? I am having trouble trying
to compile the GWT module.

[INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project-
gwt\src\main\resources\br\com\project\Main.gwt.xml
Unable to parse module
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:
650)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:
186)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
772)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
119)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java:
151)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java:
168)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.<init>(GwtWebInfProcessor.java:
106)
at
com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
91)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)

Juan Pablo Gardella

unread,
Sep 6, 2011, 9:29:00 AM9/6/11
to google-we...@googlegroups.com
Can you share the content of Main.gwt.xml?

2011/9/6 Fábio Marigo <fabio...@gmail.com>

--
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.


Fábio Marigo

unread,
Sep 6, 2011, 9:35:46 AM9/6/11
to google-we...@googlegroups.com
Follows the file.

2011/9/6 Juan Pablo Gardella <gardella...@gmail.com>



--
____________________________________________

Fábio Henrique Marigo Gonçalves
Análista Programador de Sistemas
Fone: (44) 9941-7006
____________________________________________

Main.gwt.xml

Juan Pablo Gardella

unread,
Sep 6, 2011, 10:02:44 AM9/6/11
to google-we...@googlegroups.com
Only have this error when use maven? With eclipse, Can you run in dev mode?

2011/9/6 Juan Pablo Gardella <gardella...@gmail.com>
Can you share the content of Main.gwt.xml?

agi

unread,
Sep 6, 2011, 12:03:02 PM9/6/11
to Google Web Toolkit
you can also try to compile your project with log level set to TRACE
or DEBUG.. then you may see some more info.. e.g. at which line of
your gwt.XML there is a problem .

to change the log level I am using this code in my pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>

...
<configuration>

<logLevel>TRACE</logLevel>
...
</configuration>
</plugin>
hth,
agi

On Sep 6, 4:02 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> Only have this error when use maven? With eclipse, Can you run in dev mode?
>
> 2011/9/6 Juan Pablo Gardella <gardellajuanpa...@gmail.com>
>
>
>
>
>
>
>
> > Can you share the content of Main.gwt.xml?
>
> > 2011/9/6 Fábio Marigo <fabiomar...@gmail.com>

Fábio Marigo

unread,
Sep 6, 2011, 5:27:46 PM9/6/11
to google-we...@googlegroups.com
The DEBUG log.

2011/9/6 agi <agata...@gmail.com>
UnableToParse.txt

Alexandre Dupriez

unread,
Sep 7, 2011, 9:12:29 AM9/7/11
to Google Web Toolkit
Hello Fabio.

Do you achieve to get the application running in dev mode?
Could you please provide us with the content of your WEB-INF\web.xml
file?

Regards,
A.

On 6 sep, 15:12, Fábio Marigo <fabiomar...@gmail.com> wrote:
> Could someone help me with the error below? I am having trouble trying
> to compile the GWT module.
>
> [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project-
> gwt\src\main\resources\br\com\project\Main.gwt.xml
>    Unable to parse module
> java.net.MalformedURLException
>         at java.net.URL.<init>(URL.java:601)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity (XMLEntityManager.java:
> 650)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers ion(XMLVersionDetector.java:
> 186)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java:
> 772)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java:
> 737)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
> 119)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract SAXParser.java:
> 1205)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(SAXParserImpl.java:522)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
>         at
> com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java:
> 151)
>         at
> com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java:
> 168)
>         at
> com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.<init>(GwtWebInfProces sor.java:
> 106)
>         at
> com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
> 91)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP luginManager.java:
> 107)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> 209)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> 153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> 145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java:
> 84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java:
> 59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java:
> 183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java:
> 161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:
> 290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 230)
>         at

Thomas Broyer

unread,
Sep 7, 2011, 10:34:02 AM9/7/11
to google-we...@googlegroups.com, rodrigo...@gmail.com
Huh! Using a two-and-half year old (and discontinued) maven plugin and an almost-three year old GWT (1.5.3) is probably not a good idea, to start with!

You'd better move to the gwt-maven-plugin and a more recent GWT version (the most recent as far as possible), then try again.

Fábio Marigo

unread,
Sep 15, 2011, 10:46:05 AM9/15/11
to Google Web Toolkit
In dev mode also occurs. The following web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<description>Salto Bandeirantes - GWT</description>
<display-name>Salto Bandeirantes - GWT</display-name>
<distributable />

<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/salto</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>


<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:META-INF/*-context.xml
classpath*:META-INF/datasource.xml
</param-value>
</context-param>
<listener>
<listener-
class>org.springframework.web.context.ContextLoaderListener</listener-
class>
</listener>

<session-config>
<session-timeout>60</session-timeout>
</session-config>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

<servlet>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<servlet-
class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
class>
</servlet>

<servlet-mapping>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<url-pattern>/gwt-log</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>preco-diaria-export-xml</servlet-name>
<servlet-class>

br.com.insula.saltobandeirantes.servlets.ExportarPrecoDiariaHotelXMLServlet</
servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>preco-diaria-export-xml</servlet-name>
<url-pattern>/preco-diaria</url-pattern>
</servlet-mapping>

<!-- Servlets - Relatorios -->
<servlet>
<servlet-name>RelatorioReceitaGeralServlet</servlet-name>
<servlet-class>

br.com.insula.saltobandeirantes.report.RelatorioReceitaGeralServlet</
servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RelatorioReceitaGeralServlet</servlet-name>
<url-pattern>/relatorioReceitaGeralServlet</url-pattern>
</servlet-mapping>



<!--
<filter> <filter-name>PreventCacheFilter</filter-name> <filter-
class>
br.com.insula.saltobandeirantes.server.filter.PreventCacheFilter
</filter-class> </filter> <filter-mapping>
<filter-name>PreventCacheFilter</filter-name>
<url-pattern>*.jar</url-pattern> </filter-mapping>
-->

</web-app>

On 7 set, 10:12, Alexandre Dupriez <alexandre.dupr...@gmail.com>
wrote:

Fábio Marigo

unread,
Sep 15, 2011, 4:31:43 PM9/15/11
to Google Web Toolkit
migrated to version 2.4.0 and now I'm having the following problem:

[INFO] Loaded 3546 units from persistent store.
[INFO] Found 3195 cached units. Used 3195 / 3195 units from cache.
[INFO] Added 187 units to persistent cache.
[INFO] Validating newly compiled units
[INFO] Errors in 'file:/D:/Desenvolvimento/eclipse/workspace/SLT/
saltobandeirantes-gwt/src/main/java/br/com/insula/saltobandeirantes/
client/adm/ui/configuracaosistema/ConfiguracaoSistemaView.java'
[INFO] Line 258: The method doubleValue() is undefined for
the type BigDecimal


On Sep 15, 11:46 am, Fábio Marigo <fabiomar...@gmail.com> wrote:
> In dev mode also occurs. The following web.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
Reply all
Reply to author
Forward
0 new messages