lunedì 12 novembre 2007

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a403ebd45c94c77e/06f12f38c1381add?lnk=gst&q=tomcat+deployable+user+jar#06f12f38

Dal google group di GWT, per far girare l'applicazione su Tomcat (web mode)

OK got it running on Tomcat. Here are the steps

1. Strip the javax.* packages from gwt-user.jar . You can do it with
winzip/winrar etc. Open the jar in such tools and delete all files in
javax folder including the folder

2. Copy the stripped jar in your webapps/YourApp/WEB-INF/lib. Copy the
compiled classes (e.g copy the folder "com" in samples/dynatable/bin )
to webapps/YourApp/WEB-INF/classes

3. Modify your Service Entry point code (if required). Note the text
you put in place /calendar line. You will use this text in web.xml
later
ServiceDefTarget target = (ServiceDefTarget) calService;
String staticResponseURL = GWT.getModuleBaseURL();
staticResponseURL += "/YourApp/calendar";
target.setServiceEntryPoint(staticResponseURL);
4. Run DynaTable-compile.cmd (replace dynatable with app name). File
will be generated in www\com.google.gwt.sample.dynatable.DynaTable\ .
Copy all files within this folder to webapps/YourApp/

5. Create modify web.xml and place it in WEB-INF




SchoolCalendarService

com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl



SchoolCalendarService
/calendar



5. Launch tomcat (...tomcat5.5/bin/startup.sh). Open browser e.g.
localhost:8181/YourApp/DynaTable.html

Nessun commento: