Five simple steps to debug ADempiere running on Glassfish
Debugging ADempiere running on Glassfish
Perhaps, remote debugging can't get any simpler than this. Apart from introducing the debugging aspects, this blog also demonstrates the seamless integration of ADempiere, Glassfish and Netbeans. Currently, ADempiere supports only JBoss. Hopefully, this will change and going forward Glassfish too might be supported. Anyways, here are the short steps to start your debugging journey.
Step 0: Open Netbeans.
Step 1: Follow the instructions given in previous blog
Step 2: Download and install Glassfish. Deploy ADempiere to Glassfish. ADempiere on Glassfish is currently not available from sourceforge.net. This is sure to change very shortly. Till that happens, you will have to do minor modifications in code to make ADempiere run on Glassfish. I'll explain this in next blog.
Step 3: Inside Netbeans, go to Window -> Services -> Servers and add your Glassfish server.
Step 4: Right click your Glassfish server and say "Start in debug mode"
Step 5: Now inside your ADempiere project go to Run -> Attach Debugger -> and add port number 9009
That's all to it!!
Now you can place breakpoints, watches and start debugging ADempiere deployed on Glassfish by accessing the standard url http://<hostname>:<portname>/adempiere.
My Glassfish running at port 8080.So which port to use at http://<hostname>:<portname>/adempiere ???
8080 or 9009 ?
Posted by syzuhdi on July 24, 2008 at 06:05 PM TPT #
If Glassfish is running on 8080, you got to be using 8080 in the URL.
9009 is just for connecting your debugger to the remote jvm.
Posted by 192.18.43.225 on July 24, 2008 at 06:53 PM TPT #