tomcat 中部署GWT的问题解决方案
2008-03-25 20:08
351 查看
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
<?xml version="1.0" encoding="UTF-8"?>
SchoolCalendarServicecom.google.gwt.sample.dynatable.server.SchoolCalendarService-ImplSchoolCalendarService/calendar
5. Launch tomcat. Open browser e.g.
localhost:8080/YourApp/DynaTable.html
6. Enjoy
该文章的原文地址为:http://javava.blogspot.com/2006/11/gwttomcat.html
相关文章推荐
- tomcat 中部署GWT的问题解决方案
- 关于Tomcat部署项目时部署两次问题的解决方案
- eclipse中tomcat插件部署遇到的几个问题和解决方案
- tomcat 部署站点时遇到的部分问题以及解决方案
- Vue项目webpack打包部署到Tomcat刷新报404错误问题的解决方案
- MyEclipse中部署Heritrix到tomcat遇到的Failed to load properties file问题个人解决方案
- 错误:VS部署解决方案时,出现ID已存在的问题。
- Tomcat中部署后JspFactory报异常的解决方案
- Python3+Django+uwsgi+nginx部署及遇到的问题解决方案
- 解决在Tomcat中同时部署两个项目问题
- Eclipse部署项目到tomcat加载两次的问题
- Jenkins部署Maven项目时提示找不到JDK问题的解决方案
- Servlet/JSP中的路径,Tomcat部署项目时问题
- web项目部署到tomcat 遇到ClassNotFound问题
- linux idea14 maven 部署 tomcat. 遇到的问题
- Tomcat部署问题
- MyEclipse修改项目名称后,部署到tomcat问题 显示旧的项目名称
- tomcat部署项目问题总结
- Nginx+Tomcat+pcre 安装过程和出现的问题以及解决方案
- Spring with Tomcat 中文编码问题的解决方案