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
Related
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?
Our current environment has Tomcat containers sitting behind an Apache Web Server. Basically the web server has ProxyPass rules that we use to decide which Tomcat instance to route to based on the context root.
As part of our local gradle build, we are using the Cargo plugin to spin up a local tomcat container and deploying our war's to it. I haven't found anything that will let us spin up an Apache WebServer to test our apache config.
Our goal is to have two Tomcat containers, A and B, and one Apache WebServer C, such that C will route localhost/appA to tomcat A and localhost/appB to tomcat B.
This is all in an effort to run automated acceptance tests, but I have not found a gradle plugin like cargo that will do this.
Thanks!
You can use Gradle to deploy either an Apache http docker or a haproxy docker http://gitlove.us/p/million12/docker-haproxy to do the load balancing to your two appA and appB tomcat containers. You could also use docker for the tomcat containers. You could also use Amazon AWS for two Amazon Linux tomcat servers and either an elastic load balancer or a separate haproxy server for load balancing.
Actaully I am trying to use EJBCA as CA in my project wherein there is already apache tomcat deployed and I am not in favour of using any other webserver. So, Can we use Apache tomcat instead of JBOSS for EJBCA?
No you can not a full JEE server is needed.
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.
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.