Tomcat 5.5 help needed
Hello, I install Apache 5.5 on Ubuntu as super user. I also do following: I also create executable tomcat in /etc/init.d with following contents: export JAVA_HOME=/sw/jdk1.5.0_16 export PATH=$JAVA_HOME/bin:$PATH export CATALINA_HOME=/sw/tomcat55 cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap --- I create rc2.d/S31tomcat and rc6.d/S31tomcat to point to above executable and the tomcat comes up when machine reboots. Till now I have no issues. Now when I try to start / shutdown the tomcat process I see jsvc is unable to shut it down. I use following command to shut it down: - /sw/tomcat55/bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -stop -pidfile /var/run/jsvc.pid -- Now the .logs.catalina.err has following error: --- 19/07/2008 13:06:43 6455 jsvc.exec error: Still running according to PID file /var/run/jsvc.pid, PID is 6300 19/07/2008 13:06:43 6454 jsvc.exec error: Service exit with a return value of 122 - Any idea wht's going wrong here. Please let me know how to start and stop this server like we do for other daemons. e.g /etc/init.d/httpd start /etc/init.d/httpd stop etc. Any help is appreciated. Thank you. -suman
tomcat 5.5 help needed in start-stop
Hello, I install Apache 5.5 on Ubuntu as super user. I also do following: I also create executable tomcat in /etc/init.d with following contents: export JAVA_HOME=/sw/jdk1.5.0_16 export PATH=$JAVA_HOME/bin:$PATH export CATALINA_HOME=/sw/tomcat55 cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap --- I create rc2.d/S31tomcat and rc6.d/S31tomcat to point to above executable and the tomcat comes up when machine reboots. Till now I have no issues. Now when I try to start / shutdown the tomcat process I see jsvc is unable to shut it down. I use following command to shut it down: - /sw/tomcat55/bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -stop -pidfile /var/run/jsvc.pid -- Now the .logs.catalina.err has following error: --- 19/07/2008 13:06:43 6455 jsvc.exec error: Still running according to PID file /var/run/jsvc.pid, PID is 6300 19/07/2008 13:06:43 6454 jsvc.exec error: Service exit with a return value of 122 - Any idea wht's going wrong here. Please let me know how to start and stop this server like we do for other daemons. e.g /etc/init.d/httpd start /etc/init.d/httpd stop etc. Any help is appreciated. Thank you. -suman
How to do CGI programming in Tomcat5.5
Gi, Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Thank you. -suman
How to do CGI programming in Tomcat5.5
Hi, Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Thank you. -suman
Re: How to do CGI programming in Tomcat5.5
This is part of a learning program, so I need this for assignments. I know CGIs are bad. Thank you. -suman On Tue, Jul 22, 2008 at 4:07 PM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: > suman wrote: > >> Can you please point me to a link where it clearly says in step by step >> way >> how to do cgi programming with tomcat5.5 with some examples. >> The Documentation of tomcat 5.5 is not that much helpful, very brief >> without >> any examples. >> >> Also I am unable to make cgi-servlet up. I tried the steps mentioned in >> apache 5.5 documentation. >> Can anyone please tell me if CGI server is must to be deployed to do CGI >> programming? >> If you need error messages, I'll give you. >> >> > Do you really need CGIs? > > -- > Mikolaj Rydzewski <[EMAIL PROTECTED]> > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: tomcat 5.5 help needed in start-stop
Hi, I made the script as told by you. Now I can run it. But it ends up with following error: pwd is /sw/tomcat55 Using CATALINA_BASE: /sw/tomcat55 Using CATALINA_HOME: /sw/tomcat55 Using CATALINA_TMPDIR: /sw/tomcat55/temp Using JRE_HOME: /sw/jdk1.5.0_16 23 Jul, 2008 11:10:37 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.(Socket.java:367) at java.net.Socket.(Socket.java:180) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435) -- Why the Connection refused error is here? Any idea? I am running the service by root user and trying to stop it also as a root user. Thank you. -suman On Mon, Jul 21, 2008 at 11:22 PM, Deepak Mishra <[EMAIL PROTECTED]> wrote: > Any idea wht's going wrong here. Please let me know how to start and stop >> this server like we do for other daemons. e.g >> /etc/init.d/httpd start >> /etc/init.d/httpd stop >> etc. >> >> Any help is appreciated. >> Thank you. >> -suman >> > > if you installed tomcat through the repositories , you should have got a > start-stop script as /etc/init.d/tomcat5.5 > if you have compiled and installed tomcat, you can make the above file like > this :(this is for java1.6 and tomcat6,adjust the parameters). > > export JAVA_HOME=/usr/lib/jvm/java-6-sun > case $1 in > start) >sh /usr/local/apache-tomcat-6.0.14/bin/startup.sh;; > stop) >sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh;; > restart) >sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh&& sleep 5 && sh > /usr/local/apache-tomcat-6.0.14/bin/startup.sh;; > esac > exit 0 > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
How to enable SSI servlet
Hello, I enabled SSI servlet in CATALINA_HOME/conf/web.xml by uncommenting it. I restarted the tomcat server. Still I see the SSI directives in a x.shtml are not executed.I see no error in catalina.log. Any idea how to check if at all the servelet is loaded in the tomcat container? Any idea what else i need to do to get SSI working? Please do not ask why i need this, this is a part of an assignment so I need to complete it. Thank you. -suman
How to stop getting emails from Tomcat in my inbox but to remain subscribed
Hi, I get lots of emails from tomcat-apace mailing list and it's difficult to live with them. I preferred a digest version everday/perweek. Is it possible to stop getting emails but to remain subscribed in tomcat-apache mailing list? Thank you. -suman