View Full Version : JSP and Apache together?
Hi,
Lets share our ideas/experiences about running Apache/JSP together for mass virtual hosting. Infact what I want to do is, to have JSP, Servlets, Beans and run together with Apache. I have currently many sites hosted with my apache server and most of the customers need JSP. So what would be a quick solution?
I have tried Macromedia JRun, Tomcat, JBoss, IBM Web Sphere, Oracle 9i Application Server and BEA Weblogic for testing. I personally like Macromedia JRun as It has a nice administration interface. As working with Macromedia JRun I have to create each server on a different port and have to work with it, but if I want to do mass hosting with plesk, what would be the reliable solution? As plesk removes ane addition in httpd.include. Setting all .jsp files redirected to tomcat or jboss and get them virtual hosted with tomcat or jboss would be a solution?
Let me know your ideas and experiences.
Goni
allan 06-08-2002, 04:21 PM Why not use WARP to integrate Tomcat with Apache? Or, am I misunderstanding your question?
bbi-linux 06-08-2002, 04:43 PM there is a good guide on the plesk forums for integrating tomcat with plesk, we do this and it works fine, search the 2.5 forum for 'tomcat'
yes, there is a guide there. The one works with tomcat 3.x
http://forums.rackshack.net/showthread.php?threadid=4216&highlight=Tomcat
and
http://forum.plesk.com/showthread.php?threadid=3300&highlight=tomcat
infact both are same. What about building tomcat 4.x ? I am currently working with it and like to have it installed. Currently I am trying to install it but with no success.
What about WARP ? I never heard of it. What is that thing ?
ok the solution I am thinking around is that, to redirect all .jsp traffic from httpd.conf to tomcat and tomcat will handle it. I have implemented it before but can't remember how I messed up with httpd.conf :) jsp works fine this way, what about servlets ? How to redirect them. May be the only solution left is to use mod_jk.
Is'nt there any solution other than that ?
Theres another solution:)
The ApacheJServ module from http://java.apache.org
Jedito 06-08-2002, 09:58 PM Did you tried mod_Webapp ?
HostInspect 06-09-2002, 02:36 AM mod_jk works good too.
Robert C, works for Eryxma too, but the reason we have stopped offering Tomcat is because it is such a memory hog, we didn't like it very much ;)
Well it was Tomcat 3.3a and Tomcat 4, I have heard Tomcat 4 had a memory leak.
cyansmoker 06-09-2002, 05:27 AM We use Tomcat, however only one instance for all sites for memory usage reasons, therefore a cron job restarts Tomcat regularly to read updated web-inf contents...not exactly "high-tech" :rolleyes:
NetGeek 06-09-2002, 06:18 AM I have read some where that ensin is very good Servelt/JSP engin for shared hosting.
Jedito 06-09-2002, 06:48 AM Originally posted by A A
I have read some where that ensin is very good Servelt/JSP engin for shared hosting.
Huh? Ensim a servlet/JSP engine?
First time that I hear something like that.
I am not infact a Java Guru, but as being a system administrator I should have some know how about the language and that is a bit I have. I have heard that one has to restart Tomcat after making new servlets or .war files. Correct me if I am wrong. Is there any possibility to use Jrun with Apache ?
There must be many companies out there supporting JSP/Servlets with Apache. I want them to share out their experiences with the forums so that other can take advantage.
ckpeter 06-09-2002, 11:15 AM Originally posted by Jedito
Huh? Ensim a servlet/JSP engine?
First time that I hear something like that.
I think he meant resin.
Which brings me to the question: Is resin's performance much better than tomcat? In terms of memory usage and execution speed?
Thanks,
Peter
ScottD 06-09-2002, 11:25 AM Resin (www.caucho.com) is a very good JSP/Servlet engine, perhaps one of the best out there. As far as performance is concerned, I'm not sure there is anything else that compares right now.
It supports shared hosing with private or shared JVM's, configuration is simply done via an XML file and updated WAR files / web applications are consumed instantly without a restart.
Ok, Resin is good as far as JSP and Servlets are consirned but what about the database connectivity ? I tried using mysql with it but failed. Resin don't supports mysql ?
ckpeter 06-09-2002, 04:08 PM Resin does support mysql. (any JVM with JDBC will support databsae access).
In fact, resin has their own mysql JDBC driver which is much faster than the standard one. It comes bundled with resin.
Peter
tinhnho 10-20-2004, 04:40 PM hi everyone
i just wonder if after update my Cpanel then Resin in my cpanel said "failed". What should i do ? download resin from caucho.com and install it in my server ?thanks
|