gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 375 forks source link

Could not launch index.html in GWT 2.4 #6831

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 6832

Found in GWT Release : 2.4
Encountered on OS / Browser : Eclipse 3.6 / Win7 / FF6
Detailed description :
When switching from GWT 2.3 to 2.4, clicking on the link provided in the GWT console
does not lead to the web site anymore but shows 'Unable to find/load module 'index.html'
(see server log for details)' instead.

Console output :
Started web server on port 8888
Request 0: http://127.0.0.1:8888/index.html
   [ERROR] Unable to find 'index/html.gwt.xml' on your classpath; could be a typo,
or maybe you forgot to include a classpath entry for source?
Request 1: http://127.0.0.1:8888/index.html/
   [ERROR] Unable to find 'index/html.gwt.xml' on your classpath; could be a typo,
or maybe you forgot to include a classpath entry for source?
The development shell servlet received a request to generate a host page for module
'index.html' 
   [ERROR] Unable to find 'index/html.gwt.xml' on your classpath; could be a typo,
or maybe you forgot to include a classpath entry for source?

Content of .settings/com.google.gdt.eclipse.core.prefs :
eclipse.preferences.version=1
jarsExcludedFromWebInfLib=
launchConfigExternalUrlPrefix=
warSrcDir=war
warSrcDirIsOutput=true

Content of the launcher :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.google.gdt.eclipse.suite.webapp">
<stringAttribute key="bad_container_name" value="\my.project\index.l"/>
<stringAttribute key="com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME"
value="com.google.gwt.dev.DevMode"/>
<booleanAttribute key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES"
value="true"/>
<stringAttribute key="com.google.gwt.eclipse.core.LOG_LEVEL" value="TRACE"/>
<stringAttribute key="com.google.gwt.eclipse.core.URL" value="index.html"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/my.project"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;my.project&quot;
path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/my.project/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/other.project/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento
exportedEntriesOnly=&quot;false&quot; project=&quot;my.project&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/my.project/war&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="com.google.gwt.eclipse.core.moduleClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.GWTShell"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-remoteUI
&quot;${gwt_remote_ui_server_port}:${unique_id}&quot; -logLevel TRACE -codeServerPort
9997 -port 8888 index.html"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="my.project"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m -XX:MaxPermSize=128m"/>
</launchConfiguration>

I don't know if the property "bad_container_name" has anything to do with the problem,
I see it is something generated by Eclipse.

Reported by glatapoui on 2011-09-26 17:42:13

dankurka commented 9 years ago
OK sorry for the noise, by comparing with another dev we saw that the main Class was
wrong and that was the problem. Switched from 
com.google.gwt.dev.GWTShell
to
com.google.gwt.dev.DevMode

Still don't know why it was changed to com.google.gwt.dev.GWTShell in the first place...

Reported by glatapoui on 2011-09-26 18:29:10

dankurka commented 9 years ago

Reported by rdayal@google.com on 2011-11-04 20:23:28