How to deploy j2ee application on apache http server? - apache

I want to deploy my j2ee application on apache http server. can anyone provide me a reference on how to set up and deploy j2ee application war in Apache http server?
is it possible to deploy war file to AHS?
Thanks,
Ezhil

No, Apache doesn't have a Web Container.

Related

Apache Error While Import .war file. "Error: FAIL - Application at context path [/folder] could not be started"

After deploying the war file from apache server it shows the Running status fail. Then I deploying the .war file its shows error like FAIL - Application at context path [/folder] could not be started. How can I solve this issue and how can I run my war file in Apache server. Kindly guide me to solve this issue.
You need a java server to run war files. A common way to integrate this with Apache is to run your war file in a java server such as tomcat or wildfly, then with apache, reverse proxy to your java server using a virtual host. This way apache works as your gateway interface, then the java server actually handles your logic for your specific application.
Unless you are using Apache Tomcat? If so, please provide more context. What server are using and what are the logs?

How to install Tomcat on Apache HTTP Server

I am playing around GeoServer and I have a Apache HTTP Server
I want to put GeoServer on my Apache HTTP Server, but we can only download a WAR file of GeoServer for Tomcat.
Is it possible to install Tomcat on Apache HTTP server?
Tomcat is seperate product which has nothing to do with the Apache Web Server and has to be installed separately,
Apache Tomcat has nothing to do with Apache HTTP Server. If you are trying to deploy some java webapps with JSPs and Servlets (and may be other web framework that uses these two) you just need to install tomcat server only. You can download it from here.
If you want to know the difference b/w Tomcat and HTTP server its given in this question
Hope this is useful. If any mistakes pardon me.

how to deploying the war into (Apache + Glassfish)

I gonna use Glassfish behind the Apache Http Server, my question is how should I deploy my war into these servers? deploy on Apache? or seprate the contents of war to static and servlets/JPS(java) and deploy statics on Apache and other dynamic java into Glassfish?
RGDS

Can Struts 2 run on Apache2 server without Tomcat?

Please help! I got very frustrated with this assignment to demonstrate Apache and Java Struts. I cannot make struts apps run in the Apache web directory. They only work under Tomcat.
Can I use Struts only under Apache without Tomcat? ... Thanks very much!
Apache and Tomcat serve different purposes. You cannot use Apache to run Struts because it's just a web server, not a java web container.
What you could do is to setup Apache as a reverse proxy to a tomcat instance, so the "Internet" would talk to your Apache, but still Tomcat would be serving your requests in the end.

How to separate J2EE web application for apache and tomcat

I want to setup and Apache and Tomcat together and deploy my war file on the this setup. My question is how I separate my application for apache and tomcat ?Please give me example.
Thanks
Kumara
Generally I place static files as well as rewriting, AJP, and other customization filters at the Apache layer, pass through necessary URLs over to Tomcat and Servlet processing.
If you are completely contained in the .war and don't have a need for the features of a web server, Tomcat is perfectly happy serving HTTP directly.