Monday, October 17, 2011

Upgrade to GWT 2.4 some issues with my project

My project configuration consists of GWT + Spring + Maven ( not using
dispatcher servlet for server calls). Am using a spring web service
using AxiomSoapMessageFactory, Marshaller and Unmarshaller using
JAXB.The project works fine with GWT 2.1.0 and gwt-maven-plugin
2.1.0-1 version. But when i move my GWT 2.1.0 to 2.4.0 and try to run
using "mvn gwt:run". mvn clean and package goes fine but when i boot
up the gwt using gwt:run, GWT development mode window comes up and
shows an error messages (ON IE it is 503 errorcode).

Error:
00:00:01.547 [WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload@5c4559{/,C:\javadev\WorkSpace\Project\target
\Project-0.0.1-SNAPSHOT}
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'WebServiceRequestUtil' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot
resolve reference to bean 'JAXB1Marshaller' while setting bean
property 'marshaller'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'JAXB1Marshaller' is defined at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:
328) at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver

Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not
be found in the web app, but was found on the system classpath
Adding classpath entry 'file:/C:/Documents%20and%20Settings/
KuppuswamyB/.m2/repository/com/google/gwt/gwt-dev/2.4.0/gwt-
dev-2.4.0.jar' to the web app classpath for this session

Server class 'net.sf.cglib.proxy.Enhancer' could not be found in the
web app, but was found on the system classpath

Steps that i tried:

From what i could get online for this message, i placed GWT 2.4.0 all
the jars in web/lib/ and added the jars to the class path. Did a Mvn
clean and package ...but still these errors showed up.

Note: works fine for GWT 2.1.0. When i place 2.4.0 as dependency that
is when the above error is thrown.

I have pasted the critical gwt parts of the pom.xml file. Let me know
if you have any suggestions.

<properties>
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.4.0</gwtVersion>
<spring.version>3.0.5.RELEASE</spring.version>
<!-- GWT needs at least java 1.5 -->
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<webappDirectory>${project.build.directory}/$
{project.build.finalName}</webappDirectory>
</properties>

<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.4.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.4.0</version>
<scope>provided</scope>
</dependency>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
</plugin>


Let me know if you need more information.

Thanks

BhaKup

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate