You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Raghavan_sat <sa...@gmail.com> on 2008/04/01 19:08:49 UTC

Re: Problem in running Tomcat



David Smith-2 wrote:
> 
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 




Apr 1, 2008 10:24:19 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/java/jdk1.6.0_05/jre/lib/i386/client:/usr/java/jdk1.6.0_05/jre/lib/i386:/usr/java/jdk1.6.0_05/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Apr 1, 2008 10:24:19 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Apr 1, 2008 10:24:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1613 ms
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 1, 2008 10:24:20 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Apr 1, 2008 10:24:21 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Apr 1, 2008 10:24:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 1, 2008 10:24:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/108  config=null
Apr 1, 2008 10:24:22 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 1, 2008 10:24:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3076 ms
in servlet
OS name:Linux
Before
After
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
-- 
View this message in context: http://www.nabble.com/Problem-in-running-Tomcat-tp16383891p16418736.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Problem in running Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: fredk2 [mailto:fredk2@gmail.com] 
> Subject: Re: Problem in running Tomcat
> 
> I always wonder: why do some applications have the servlet.jar in
> WEB-INF/lib when the 'curent' one is already in the ./common/lib ?

Because people throw it in there during development with NetBeans,
Eclipse, etc., just to get things to compile, not realizing that's an
inappropriate solution.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


Re: Problem in running Tomcat

Posted by fredk2 <fr...@gmail.com>.
Hi,

Delete WEB-INF/lib/servlet.jar.

I always wonder: why do some applications have the servlet.jar in
WEB-INF/lib when the 'curent' one is already in the ./common/lib ?

INFO:
validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class

Rgds - Fred
-- 
View this message in context: http://www.nabble.com/Problem-in-running-Tomcat-tp16383891p16421744.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem in running Tomcat

Posted by David Smith <dn...@cornell.edu>.

Raghavan_sat wrote:
>
> David Smith-2 wrote:
>   
>> 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: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>     
>
>
>
>
> Apr 1, 2008 10:24:19 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /usr/java/jdk1.6.0_05/jre/lib/i386/client:/usr/java/jdk1.6.0_05/jre/lib/i386:/usr/java/jdk1.6.0_05/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> Apr 1, 2008 10:24:19 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8085
> Apr 1, 2008 10:24:19 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1613 ms
> Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
> Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Apr 1, 2008 10:24:20 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> Apr 1, 2008 10:24:21 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8085
> Apr 1, 2008 10:24:22 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Apr 1, 2008 10:24:22 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/108  config=null
> Apr 1, 2008 10:24:22 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Apr 1, 2008 10:24:22 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3076 ms
> in servlet
> OS name:Linux
> Before
> After
> java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
>   

Don't include servlet.jar in your code -- it's already provided in 
tomcat's common/lib as servlet-api.jar.

As to the last line you posted, looks like a native library isn't 
responding as the JVM would expect.

--David

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