Should we have application server like Glassfish or Apache Tomcat for running Apex 2.0 on Apex 4.2 with Oracle 11g XE?. (I know we don't need an app server for running APEX on Oracle Express Edition 10g onwards, but not sure for Apex Listener).For Production environments it is advisable to deploy ApexListener in a JEE Container/Appserver like OC4J/GF/WLS/Tomcat. See documentation for officially supported JEE Containers.
I understand from the documentation that Java servlet specification 2.3 needs to be deployed in order to use RESTful services.The Standalone mode uses Grizzly, which runs the ApexListener Servlet . So, RESTful should work if the setup is right.
However I couldn't find a place to deploy the servlet. I tried to keep servlet.jar in the WEB-INF or WEB-INF/lib directory of apex listener configuration folder and expected that servlet be invoked, but as soon as the listener is started the servlet.jar file is automatically deleted. Is this a problem for not working for the RESTful services?, if so, what way I can deploy the servlet or should I have a application server and then to deploy the servlet?.If you want to deploy your own servlets then you would be better off using a JEE Container. Deploy your servlets on the JEE Container along with ApexListener and you will be ok.
"RESTful ought to work with Standalone mode."And if i choose to deploy ApexListener with Glassfish for example, RESTful will not work?>
Thanks again Probodh. I understand and by knowing the listener with GF is success for RESTful services, it makes me to think again to go for GF, so that at least I can see log reports on apex listener and I can see where it fails with the RESTful service. One question again, Shall I configure the same Listener to configure on GF or should I start afresh?If GF is on the same machine where you have been running it in Standalone mode then you can use the same apex.war. You will additionally need to create the i.war for deploying on GF.