
After upgrading to iDempiere GWT, we can deploy it to work outside Eclipse on its own under Tomcat. I did it today with the latest Tomcat 7. But there is a small error in the web.xml's servlet mapping which is:
That will trap all htmls into the CompiereService extending HttpServlet which hits the illegal super.doGet method giving
<servlet-name>GWTLoader </servlet-name>
<url-pattern>/*.html</url-pattern>
HTTP Status 405 - HTTP method GET is not supported by this URLand does not allow the Entry Point Class to come into effect. By commenting the above away solved it. I found the answer as i thought it was strange that this runs in Eclipse but not out there under Tomcat. Then I remember that the /*.html is an invalid URL pattern to Tomcat and i have to remove the /. So that made me look closer at what it is doing which tells me it is forcing the html calls there. But when i see that the servlet class has a <load-on-startup>
To fully deploy, with your Tomcat 7 running, just drop the contents of the war from the project-space under the WebApp folder with any suitable name - iDempiereGWT.
Now, I have made a WarBuilder.xml that creates iDempiereGWT.war to make life easier. Put that iDempiereGWT.war under WebApp with Tomcat 7 running and you will see it extrating itself and appearing in its Manager panel.
All artifacts and a similar tutorial are in the forum. Just base this on your present ADempiere instance. It will look for your present properties files which access your database. Copy your ADempiere.jar and AdempiereCLIB.jar onto WEB-INF/lib and everything should work.
If you do not use your own jars but the ones already given, then your ADempiere instance has to be the latest in my SourceForge. You need to use the database dump given so there be no error as those binary jars has Fixed Assets included.
To go further from here, we probably have to migrate a few more jars from JBoss to Tomcat, such as those that handle Accounting or Java WebStart deployment. If you know something that i don't do drop me a line and whatever help it maybe the community will be equally grateful.
(The Russians has joined in by donating a bunker here http://demo.idempiere.info/iDempiereGWT/)


