tomcat 5 w/ gcj -- either get rid of it or take this conversation to the yum folks. We support tomcat as provided by Apache using primarily Sun Java although I'm sure people have had success with IBM's jvm. Other packaging methods introduce lot's of symlinks and at times alterations in the source to match those packaging schemes.

Regarding tomcat5 and sun jvm 1.6, I'm not seeing any jvm 1.6 in your stack trace below. On the contrary, it indicates tomcat 5.5.26 and jdk 1.5.0_14. Can you post what's in your catalina.out file as found in the logs directory of your tomcat install? I think we've asked for this before and you didn't reply.

--David


Raghavan_sat wrote:
Hi,
   I installed tomcat5 using yum and it installed lot of dependencies...
This tomcat uses gcj java to run and is running fine.. But my Servlet
program cannot be compiled with this gcj java....So i installed JDK1.6 and
changed the java using alternatives command and compiled it.... But with
this java being selected my tomcat is not running... its showing "lock file
found but no process running for pid XXXX".....  So i downloaded separate
tomcat - apache tomcat 5 and extracted it... it starts fine with jdk 1.6 but
when i use my servlet it just goes off.. Following that if i shutdown tomcat
it shows Using CATALINA_BASE: /root/apache-tomcat-5.5.26
Using CATALINA_HOME:   /root/apache-tomcat-5.5.26
Using CATALINA_TMPDIR: /root/apache-tomcat-5.5.26/temp
Using JRE_HOME:       /usr/java/jdk1.5.0_14/
Mar 29, 2008 6:53:57 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.<init>(Socket.java:367)
        at java.net.Socket.<init>(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)

So my problem is tomcat5(yum) with gcj java is not compiling my servlet and
tomcat5(downloaded) with jdk1.6 is not at all running.. what can i do to run
my servlet :(


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to