Wednesday, February 22, 2012

iDempiere GWT on Tomcat7


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:

<servlet-name>GWTLoader</servlet-name>
<url-pattern>/*.html</url-pattern>
That will trap all htmls into the CompiereService extending HttpServlet which hits the illegal super.doGet method giving
HTTP Status 405 - HTTP method GET is not supported by this URL
and 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> i quickly guessed that this html redirecting is redundant and turned it off to allow the entry point class taking over.

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/)

Tuesday, February 14, 2012

How To GWT RequestFactory in Eclipse



Google is the present universe of cyberspace and whatever it does will hit something. So you might want to master some stuff like i am doing here. It is a work in progress and I will edit this blog to further illustrate what happens to me and my self-esteem.

What i did thus far was:
0. Launch my Eclipse in my cool MacBook
1. Create a new GWT project with 2 clicks
2. Adjust over the files or content from here to my workspace.
3. Tweak around until the app runs from Eclipse onto my browser
4. Upload this into my repository so you can get the same shown in the first image.

I managed to get it showing up on a browser as you can see on the 2nd image. That is all i can show at the moment, so please do check in again say, a week's time. :)

Monday, February 13, 2012

ADempiere SourceForge Admin War

This is not for a peaceful read as it concerns the war which everyone knows how it ended with not just the popular contest ignored but the beauty queen called a Nazi.

Anyway my recent exodus around Europe and Latin America gave a good smell of the roses and a last visit to Sao Paulo gave me some inspiration. No, I do not mean the hooter queen but this poll thread here.
 
SourceForge.net Logo