I executed mvn clean install, mvn clean package with and without executing mvn gwt:compile before. Same problem with all generated war files.
On 9 Nov., 01:25, David Chandler <[email protected]> wrote: > What mvn command are you using? In this POM, gwt-maven-plugin is > executing gwt:compile during the prepare-package phase, so you should > run "mvn package" to trigger it. > > HTH, > /dmc > > On Mon, Nov 8, 2010 at 5:28 PM, Musicman75 > > > > > > > > <[email protected]> wrote: > > That's Why i posted my pom file. I think the maven execution is done > > in the wrong order. > > > Could anyone please post a pom file to create a war and compile the > > GWT app before? > > > On 8 Nov., 13:33, Y2i <[email protected]> wrote: > >> I use Eclipse projects instead of maven, but I do see similar errors > >> when I create and deploy a war file without doing GWT compilation > >> first. After GWT re-compilation and re-deploying the war file the > >> errors disappear. > > >> On Nov 8, 4:59 pm, Musicman75 <[email protected]> wrote: > > >> > Hello, > > >> > I've created a GWT war project with two subprojects. > >> > When starting the server (Jetty standalone), the war is loaded: > > >> > 2010-11-08 14:50:51.648:INFO::Deployable added: C:\Users\beutelsn > >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\dashboardClient-0.0.1- > >> > SNAPSHOT.war > >> > 2010-11-08 14:50:51.727:INFO::Copying WEB-INF/lib jar:file:/C:/Users/ > >> > beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/ > >> > dashboardClient-0.0.1-S > >> > APSHOT.war!/WEB-INF/lib/ to C:\Users\beutelsn\AppData\Local\Temp > >> > \6\Jetty_0_0_0_0_9090_dashboardClient. > >> > 0.0.1.SNAPSHOT.war__dashboardClient.0.0.1.SNAPS > >> > OT__.hbn96r\webinf\WEB-INF\lib > >> > 2010-11-08 14:50:52.380:INFO::Copying WEB-INF/classes from jar:file:/ > >> > C:/Users/beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/ > >> > dashboardClien > >> > -0.0.1-SNAPSHOT.war!/WEB-INF/classes/ to C:\Users\beutelsn\AppData > >> > \Local\Temp\6\Jetty_0_0_0_0_9090_dashboardClient. > >> > 0.0.1.SNAPSHOT.war__dashboardClien > >> > .0.0.1.SNAPSHOT__.hbn96r\webinf\WEB-INF\classes > >> > 2010-11-08 14:50:54.101:INFO:/dashboardClient-0.0.1- > >> > SNAPSHOT:Initializing Spring root WebApplicationContext null null > >> > 2010-11-08 14:50:56.545:INFO:/dashboardClient-0.0.1- > >> > SNAPSHOT:Initializing Spring FrameworkServlet 'dispatcher' null null > >> > 2010-11-08 14:50:56.707:INFO::Deployable added: C:\Users\beutelsn > >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\async-rest > >> > 2010-11-08 14:50:56.762:INFO::Started > >> > [email protected]:9090 > > >> > When accessing the war with the browser, I only get a popup with this > >> > message: > >> > --------------- > >> > GWT module 'com.XXX.Application' may need to be (re)compiled > >> > -------------- > > >> > In hosted mode everything works fine. > > >> > The war is created by maven. Here's my pom.xml: > > >> > <?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.0http://maven.apache.org/maven-v4_0_0.xsd"> > >> > <!-- POM generated by gwt-maven-plugin archetype --> > >> > <parent> > >> > <artifactId>dashboard2</artifactId> > >> > <groupId>com.XXX</groupId> > >> > <version>0.0.1-SNAPSHOT</version> > >> > </parent> > >> > <modelVersion>4.0.0</modelVersion> > >> > <groupId>com.XXX</groupId> > >> > <artifactId>dashboardClient</artifactId> > >> > <name>Axivion Bauhaus Dashboard Client</name> > >> > <packaging>war</packaging> > >> > <version>0.0.1-SNAPSHOT</version> > > >> > <properties> > > >> > <maven.compiler.source>1.6</maven.compiler.source> > >> > <maven.compiler.target>1.6</maven.compiler.target> > > >> > </properties> > > >> > <dependencies> > > >> > <!-- project dependencies --> > >> > <dependency> > >> > <groupId>com.XXX</groupId> > >> > <artifactId>dashboardServer</artifactId> > >> > <version>${project.version}</version> > >> > </dependency> > > >> > <!-- Spring dependencies --> > >> > <dependency> > >> > <groupId>org.springframework</groupId> > >> > <artifactId>spring-webmvc</artifactId> > >> > </dependency> > > >> > <!-- GWT dependencies (from central repo) --> > >> > <dependency> > >> > <groupId>com.google.gwt</groupId> > >> > <artifactId>gwt-servlet</artifactId> > >> > <scope>runtime</scope> > >> > </dependency> > >> > <dependency> > >> > <groupId>com.google.gwt</groupId> > >> > <artifactId>gwt-user</artifactId> > >> > <scope>provided</scope> > >> > </dependency> > >> > <dependency> > >> > <groupId>com.octo.gwt.test</groupId> > >> > <artifactId>gwt-test-utils</artifactId> > >> > <scope>test</scope> > >> > </dependency> > > >> > <!-- test --> > >> > <dependency> > >> > <groupId>junit</groupId> > >> > <artifactId>junit</artifactId> > >> > <version>4.7</version> > >> > <scope>test</scope> > >> > </dependency> > >> > </dependencies> > > >> > <build> > >> > <outputDirectory>war/WEB-INF/classes</outputDirectory> > >> > <resources> > >> > <resource> > >> > <directory>src/main/java</directory> > >> > <includes> > >> > <include>**/*.java</include> > >> > <include>**/*.gwt.xml</include> > >> > </includes> > >> > </resource> > >> > <resource> > >> > <directory>src/main/resources</directory> > >> > </resource> > >> > </resources> > >> > <plugins> > >> > <plugin> > >> > > >> > <groupId>org.apache.maven.plugins</groupId> > >> > <artifactId>maven-war-plugin</artifactId> > >> > <version>2.1</version> > >> > <configuration> > >> > > >> > <webappDirectory>war</webappDirectory> > >> > > >> > <webXml>war/WEB-INF/web.xml</webXml> > >> > </configuration> > >> > </plugin> > >> > <plugin> > >> > > >> > <groupId>org.apache.maven.plugins</groupId> > >> > > >> > <artifactId>maven-compiler-plugin</artifactId> > >> > <version>2.1</version> > >> > <configuration> > >> > > >> > <source>${maven.compiler.source}</source> > >> > > >> > <target>${maven.compiler.target}</target> > >> > </configuration> > >> > </plugin> > >> > <plugin> > >> > > >> > <groupId>org.apache.maven.plugins</groupId> > >> > > >> > <artifactId>maven-resources-plugin</artifactId> > >> > <version>2.4.2</version> > >> > <configuration> > >> > <encoding>UTF-8</encoding> > >> > </configuration> > >> > </plugin> > >> > <plugin> > >> > > >> > <groupId>org.apache.maven.plugins</groupId> > >> > > >> > <artifactId>maven-surefire-plugin</artifactId> > >> > <version>2.5</version> > >> > <configuration> > >> > <excludes> > >> > > >> > <exclude>**/*_Roo_*</exclude> > >> > </excludes> > >> > </configuration> > >> > </plugin> > >> > <plugin> > >> > > >> > <groupId>org.apache.maven.plugins</groupId> > >> > > >> > <artifactId>maven-assembly-plugin</artifactId> > >> > > > ... > > Erfahren Sie mehr » -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
