Hi Thank you for quick answers. I have been searching a bit more today and I found a link to a plugin for Eclipse that solves this issue in one operation. http://code.google.com/p/gwt-project-export-wizard/ After installing the plugin I got a new menu item in the gogle menu "GWT Web app export..." that compiles to a war file in a selected destination folder. I selected Tomcat webapp folder as destination for my TestTomcat app and this time the war structure is correct. The url http://locahost/TestTomcat/TestTomcat.html starts the applicatiuon and this tome the server replies as expected. So, I am a step futher now.
Hovewer, I have an issue with my other application. It compiles correctly in Eclipse (Compilation secceeded..), but it fails to be installed in Tomcat. Error mesage, cut from the log: SEVERE: Error deploying web application archive D:\apache-tomcat-7.0.34\webapps\Betelo2.war java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Betelo2]] I guess this is a tomcat issue and should be addressed in an other forum (??) but if any of you can shed light on this issue I am very grateful. Regards, Jostein kl. 11:52:30 UTC+1 onsdag 23. januar 2013 skrev Jostein følgende: > > Hi > I have developed an application in dev mode in Eclipe for some time and > everything workes fine. Yesterday I tried to deploy to Tomcat, but the > application did not launch in the browser. > Then I tried the same with a basic Web Application Starter Project, > generated automatically when creating a new GWT project i Eclipse. The new > project consists of some basic functionality, RPC included. > > The deploying process goes like this (this is my understandig of how to do > it) > 1. Perform "GWT Compile Project" from the blue "g" dropdown in the toolbar > in Eclipse > 2. Use default settings in the "GWT compile" dialog. Press "Compile". > 3. After comiling I select the .war folder in the TestTomcat project in > Eclipse. > 4. Then rightclick -> Export -> Archive file -> Next > 5. Change the "To archive file" to > "D:\apache-tomcat-7.0.34\webapps\TestTomcat.war.zip" -> Finish > 6. Opens the D:\apache-tomcat-7.0.34\webapps folder and renames the > "TestTomcat.war.zip" to "TestTomcat.war" > 7. Then I restart Tomcat and now a new folder "TestTomcat" has been > created in the webapps folder > > I run my app in a browser with this url: > http://localhost/TestTomcat/TestTomcat/war/TestTomcat.html > > The application starts as expected, but when I press the "Send" button > that is sending a name to the server I get an error message > "An error occurred while attempting to contact the server. Please check > your network connection and try again." > > My JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09 > > a) Why doesn't RPC work? > b) Is this the correct way to deploy GWT application in Tomcat? > > Any help is appreciated. > > Thanks > Jostein > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7ojqzJ3bhBgJ. 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.
