Sunday, May 24, 2015

Failure loading page once deployed

Hi

I'm trying to deploy my first GWT application. The application is developed in Eclipse and configured with Maven (I attach the pom below). The application runs fine in Eclipse in super dev mode, but I'm not able to deploy it.

I create the .war with mvn clean package. Once deployed, the application is successfully initialized (e.g., the database is created). However, when I try to access it, what I get is just a white page with the red "recompile" icon bottom right, but nothing happens.

If I monitor the network requests with Chrome developer tools I see that the request for "RiscossWebApp.nocache.js" fails. Seems like it is trying to connect to the GWT compilation service without finding it. This sounds strange to as I haven't read anything like this in the internet, just to copy all the content of the output directory, which btw seems to be there.

Any idea what's happening and how should I proceed?

Thanks


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


 
<modelVersion>4.0.0</modelVersion>
 
<groupId>riscoss-webapp</groupId>
 
<artifactId>riscoss-webapp</artifactId>
 
<packaging>war</packaging>
 
<version>0.0.1-SNAPSHOT</version>
 
<name>RISCOSS Web App</name>


 
<properties>
 
<!-- Convenience property to set the GWT version -->
 
<gwtVersion>2.6.0</gwtVersion>
 
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
 
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
</properties>


 
<dependencies>
 
<dependency>
 
<groupId>com.google.gwt</groupId>
 
<artifactId>gwt-servlet</artifactId>
 
<version>${gwtVersion}</version>
 
<scope>runtime</scope>
 
</dependency>
 
<dependency>
 
<groupId>com.google.gwt</groupId>
 
<artifactId>gwt-user</artifactId>
 
<version>${gwtVersion}</version>
 
<scope>provided</scope>
 
</dependency>
 
<dependency>
 
<groupId>junit</groupId>
 
<artifactId>junit</artifactId>
 
<version>4.7</version>
 
<scope>test</scope>
 
</dependency>
 
<dependency>
 
<groupId>javax.validation</groupId>
 
<artifactId>validation-api</artifactId>
 
<version>1.0.0.GA</version>
 
<scope>test</scope>
 
</dependency>
 
<dependency>
 
<groupId>javax.validation</groupId>
 
<artifactId>validation-api</artifactId>
 
<version>1.0.0.GA</version>
 
<classifier>sources</classifier>
 
<scope>test</scope>
 
</dependency>


 
<!-- Other dependencies -->


 
</dependencies>


 
<build>
 
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
 
<plugins>


 
<!-- GWT Maven Plugin -->
 
<plugin>
 
<groupId>org.codehaus.mojo</groupId>
 
<artifactId>gwt-maven-plugin</artifactId>
 
<version>2.6.0</version>
 
<executions>
 
<execution>
 
<goals>
 
<goal>clean</goal>
 
<goal>compile</goal>
 
<goal>test</goal>
 
<goal>i18n</goal>
 
<goal>generateAsync</goal>
 
</goals>
 
</execution>
 
</executions>
 
<configuration>
 
 
<extraJvmArgs>-Xss1024k -Xmx1024m -XX:MaxPermSize=256m</extraJvmArgs>
 
 
<runTarget>RiscossWebApp.html</runTarget>
 
<hostedWebapp>${webappDirectory}</hostedWebapp>
 
<i18nMessagesBundle>eu.riscoss.client.Messages</i18nMessagesBundle>
 
</configuration>
 
</plugin>


 
<!-- Copy static web files before executing gwt:run -->
 
<plugin>
 
<groupId>org.apache.maven.plugins</groupId>
 
<artifactId>maven-war-plugin</artifactId>
 
<version>2.1.1</version>
 
<executions>
 
<execution>
 
<phase>compile</phase>
 
<goals>
 
<goal>exploded</goal>
 
</goals>
 
</execution>
 
</executions>
 
<configuration>
 
<webappDirectory>${webappDirectory}</webappDirectory>
 
</configuration>
 
</plugin>
 
<plugin>
 
<groupId>org.apache.maven.plugins</groupId>
 
<artifactId>maven-compiler-plugin</artifactId>
 
<!-- <version>2.3.2</version> -->
 
<version>3.1</version>
 
<configuration>
 
<source>1.7</source>
 
<target>1.7</target>
 
</configuration>
 
</plugin>
 
</plugins>
 
</build>


</project>



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment