The war file I create with mvn package can be put in an external
Tomcat and it works. Then I add the tomcat maven plugin to the pom.xml
and run mvn tomcat:run, then I cannot access the war application (The
requested resource (/gwt-example/home.Application/Application.html) is
not available.).

This is the output of the mvn tomcat:run:

C:\java\IdeaProjects\gwt-example>mvn tomcat:run
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building gwt-maven-archetype-project
[INFO]    task-segment: [tomcat:run]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing tomcat:run
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [gwt:mergewebxml {execution: default}]
[INFO] copy source web.xml - C:\java\IdeaProjects\gwt-example\src\main
\webapp\WE
B-INF\web.xml to build dir (source web.xml required if mergewebxml
execution is
enabled)
[INFO] establishing classpath list (buildClaspathList - scope =
COMPILE)
[INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM
for GWT dep
endencies
[INFO] Module file: C:\java\IdeaProjects\gwt-example\src\main\java\home
\Applicat
ion.gwt.xml
[WARNING] No servlets found.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dependency:unpack {execution: unpack}]
[INFO] Configured Artifact: com.google.gwt:gwt-dev:windows-libs:
1.5.3:zip
[INFO] gwt-dev-1.5.3-windows-libs.zip already unpacked.
[INFO] [tomcat:run]
[INFO] Running war on http://localhost:8080/gwt-example
[INFO] Using existing Tomcat server configuration at C:\java
\IdeaProjects\gwt-ex
ample\target\tomcat
Mar 31, 2009 10:07:27 AM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Mar 31, 2009 10:07:27 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Mar 31, 2009 10:07:28 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 31, 2009 10:07:28 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080

Does anybody know how to fix this?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to