mithilesh
10-24-2001, 12:49 PM
I want to install java servelet on my linux server .Please help me.
![]() | View Full Version : Servlet installation mithilesh 10-24-2001, 12:49 PM I want to install java servelet on my linux server .Please help me. jks 10-24-2001, 01:33 PM Originally posted by mithilesh I want to install java servelet on my linux server .Please help me. Try being a bit more exact in your questions. Open a webbrowser and go to Google and start searching for servlet engines. The easiest one to install and use is probably the Resin engine. A free alternative would be TomCat, but it's not quite up to the same standard as Resin. Synergy 10-24-2001, 11:45 PM I'm assuming that you are running a linux server with cpanel :) Redhat 6.2 or 7.1 (this is the Java Servlet Plugin for CPanel) First Log into Root via SSH check your bash: It should be something like (root@yourservername) then enter wget http://layer1.cpanel.net/jsp-install-3.x.tar.gz You will see some percentange and bytes transfer stuff... Wait a minute (depending on your server connection) and when it reached 100% enter: tar xfzv jsp-install-3.x.tar.gz jsp-install After its done then enter: cd jsp-install and then enter .install and you will see a bunch of activity on the screen.... Don't close your SSH just wait till its done.... After everything is complete, log on the ROOT Web Host Manager and you can add Servlets to individual domains. Please note that this is a high cpu resource hog (you can only have about 100 servlets). I hope this help :) mithilesh 10-25-2001, 01:13 PM I want to say thanks synergy for your help.You are correct I am running a linux server with cpanel Redhat 6.2 or 7.1 (this is the Java Servlet Plugin for CPanel) But I want to know one more thing will I need any path setting for running the java servelet for different domain. mpkapadia 10-25-2001, 03:22 PM your jdk should be installed and should be in classpath, In all probability you would also want to put mysql jdbc drivers, javamail and java activation framework too for basic java servlet hosting support, These will also needed to be added to classpath . I am not sure if your jsp installation of cpanel would include thise, Most likely you would have to seperately install those, Secondly the installation would mostly be tomcat standalone installation, You would have to edit your file server.xml for supporting the same on individual virtualhosts. I may not be correct, bcos i have never used cpanel based machine, Hope this helps Regards Atif Munir 06-26-2002, 02:09 AM Installation of Tomcat: 1- Download JDK(SDK) For Linux from the site http://java.sun.com/products/jdk/1.2/download.html 2-tar -xzvf jdk-1_2_2_012-linux-i386\[1\].tar.gz 3-Most Important thing is to set the JAVA_HOME env variable, Set it by the command export JAVA_HOME=/home/munir/jdk/jdk1.2.2 Now second thing is to install Tomcat: 1-First download it from the site http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/bin/jakarta-tomcat-4.0.4.tar.gz 2-tar -xzvf jakarta-tomcat-4.0.4.tar.gz 3-cd jakarta-tomcat-4.0.4 4-cd bin 5-./startup.sh Test: http://localhost:8080 If Tomcat default page with logo is there then its up, You may enjoy. roly 06-26-2002, 03:55 AM Instead of Tomcat I prefer ApacheJServ (mod_jserv) from http://java.apache.org Esr Tek 04-30-2003, 02:31 PM LOL - Your recommending one, that itself recommends Tomcat on thier site :laugh: rimuhosting 04-30-2003, 05:29 PM A word of advice: Check out jpackage.org and save yourself hours of grief. e.g. download and install the JBoss package (with either Jetty or Tomcat). It will prompt you for all the other packages you need. Once you have installed them all, it will have set up /etc/rc.d/init.d scripts for you. Put the logs in the 'proper' /var/log location. etc. Regards, Peter @ http://rimuhosting.com - VPS Hosting Specialists. With JSP and EJB (on JBoss) hosting support. hololi 05-01-2003, 04:11 AM welcome to java ... long live jsp !!! hololi Esr Tek 05-01-2003, 08:59 AM Is tomcat safe in shared enviorment? |