I’ve developed whole project under GWT in Eclipse Juno. After developing it and testing it (it worked fine) I decided to change a little bit the root package structure.
From
sk.jakub
to
sk.jakub.app
Nothing serious. I changed all the referencies in my .xml files. But I still obtain following error:
Loading modules
sk.jakub.Editor1
[ERROR] Unable to find 'sk/jakub/Editor1.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
The problem evidently is that GWT tries to find the Editor1.gwt.xml under old package structure. The package structure wasn’t updated.
I thought that I forgot to update the Entry Point Module settings but they are fine. So I don’t understand why is this happening.
Any suggestions how to resolve this problem ?
Thank you very much for your answers 🙂
UPDATE:
here is my deployment descriptor(seems fine to me):
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee">
<!-- Context params -->
<context-param>
<param-name>contextConfiguration</param-name>
<param-value>WEB-INF/*-context.xml</param-value>
</context-param>
<!-- Listeners -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Servlets -->
<servlet>
<servlet-name>spring4gwt</servlet-name>
<servlet-class>org.spring4gwt.server.SpringGwtRemoteServiceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>spring4gwt</servlet-name>
<url-pattern>/editor1/app/componentService</url-pattern>
</servlet-mapping>
<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>Editor1.html</welcome-file>
</welcome-file-list>
</web-app>
In eclipse, got to
run, run configurations, select your project, select the arguments tab.In the program arguments window make sure you have an updated entry. I think you’ll need: