java - Can't deploy GWT application on Tomcat 7 and Jboss 7 -
i have deployed gwt application, , works fine on dev mode, when try upload on tomcat, or jboss, 404 page despide server on. tried enter: http://localhost:8080/gwtexample , http://localhost:8080/gwtexample/index.html and
127.0.0.1:8080/gwrexample` without succes.
i put war file under jboss/standalone/deployment , under c:\program files\apache software foundation\tomcat 7.0\webapps\root
and here web.xml <?xml version="1.0" encoding="utf-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <servlet> <servlet-name>requestfactoryservlet</servlet-name> <servlet-class>com.google.web.bindery.requestfactory.server.requestfactoryservlet</servlet-class> <init-param> <param-name>symbolmapsdirectory</param-name> <param-value>web-inf/classes/symbolmaps/</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>requestfactoryservlet</servlet-name> <url-pattern>/gwtrequest</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>bfiwebtop.html</welcome-file></welcome-file-list> </web-app>
the war-file should placed directly webapps c:\program files\apache software foundation\tomcat 7.0\webapps
folder. root-folder webapplication well.
please take @ warfile:
warfile/<hostpage>.html //maybe index.html warfile/webtop/ * //lots of html or js files silly names (gwt stongnames) warfile/web-inf/web.xml warfile/web-inf/classes/ * //your compiled server classes warfile/web-inf/lib/ * //your libraries (including gwt)
Comments
Post a Comment