Apache httpd Java Application?

Solution 1:

Apache HTTPD is not a Java application server. If you want to run a Java application, you need Tomcat, or another application server like JBoss or GlassFish.

Another cool thing is that there's a module for Apache called "mod_jk" which allows you to create a bridge between Tomcat and HTTPD, by defining workers. You can keep your Tomcat installation running on a different port and still access it through your main web server.

Solution 2:

Java applications built using a Servlet specification require a container that implements such standards. Hence, that java application must be deployed in a web container like Apache Tomcat.

Apache HTTP merely serves files, which your browser can't parse as, for example, the jsp(jspx) files are to be compiled before being served, delivering an HTML document to the client.

Solution 3:

Your JSPs need a servlet container to process, like Tomcat, Jetty, Glassfish etc... Once you have that up and running, you can just reverse proxy to it with httpd.