You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rohit Kumar <ro...@yahoo.com> on 2006/07/07 05:32:57 UTC

Tomcat intialization problem

Greetings everyone,
 i am having trouble initializing tomcat on Mandriva Linux.
 here's the output of catalina.out:
 
 <code>
 [root@localhost logs]# cat catalina.out
 Jul 7, 2006 8:48:40 AM 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.5.0_06/jre/lib/i386/client:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386
 Jul 7, 2006 8:48:40 AM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Jul 7, 2006 8:48:40 AM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 2198 ms
 Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
 Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Jul 7, 2006 8:48:43 AM org.apache.coyote.http11.Http11BaseProtocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Jul 7, 2006 8:48:44 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Jul 7, 2006 8:48:44 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/43  config=null
 Jul 7, 2006 8:48:44 AM org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Jul 7, 2006 8:48:44 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3712 ms
 Jul 7, 2006 8:48:44 AM org.apache.catalina.core.StandardServer await
 SEVERE: StandardServer.await: create[8005]:
 java.net.BindException: Cannot assign requested address
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
         at java.net.ServerSocket.bind(ServerSocket.java:319)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at org.apache.catalina.core.StandardServer.await(StandardServer.java:372)
         at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
         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.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
 [root@localhost logs]#                
 </code>
 
 As far as i understood it, its a firewall problem,i am unable to even ping localhost.
 please see http://mandrivausers.org/index.php?showtopic=33045 for more details.
 
 Please help resolve this problem.
 
 Thanks,
 rohit.
 

NAMASTE, i honour the spirit in you which is also in me.
```````````````````````````````````````````````````````
http://www.geocities.com/rohitsz2
http://rohitsz.blogspot.com
 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: Tomcat intialization problem

Posted by Martin Gainty <mg...@hotmail.com>.
You have correctly reconfigured your interfaces to accept traffic on Port 8080 from/to127.0.0.1-
You have also correctly configured DNS/BIND entry for localhost
The hard part will be to make sure your vendor doesnt muck with a working configuration..
Congratulations and Good Luck,
Martin -
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Rohit Kumar" <ro...@yahoo.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>; "Martin Gainty" <mg...@hotmail.com>
Sent: Friday, July 07, 2006 1:29 PM
Subject: Re: Tomcat intialization problem


> Dear Martin and David,
> 
> Thanks a lot for your help.
> I am a total newbie with firewalls.
> So what i did was the following:
> 
> <code>
> [root@localhost rohitsz]# service network restart
> Shutting down interface eth0:                                   [  OK  ]
> Shutting down loopback interface:                               [  OK  ]
> Setting network parameters:                                     [  OK  ]
> Bringing up loopback interface:                                 [  OK  ]
> Bringing up interface sit0:                                     [  OK  ]
> Bringing up interface ppp0:  pppd: unrecognized option 'No'
> pppd version 2.4.3
> Usage: pppd [ options ], where options are:
>         <device>        Communicate over the named device
>         <speed>         Set the baud rate to <speed>
>         <loc>:<rem>     Set the local and/or remote interface IP
>                         addresses.  Either one may be omitted.
>         asyncmap <n>    Set the desired async map to hex <n>
>         auth            Require authentication from peer
>         connect <p>     Invoke shell command <p> to set up the serial line
>         crtscts         Use hardware RTS/CTS flow control
>         defaultroute    Add default route through interface
>         file <f>        Take options from file <f>
>         modem           Use modem control lines
>         mru <n>         Set MRU value to <n> for negotiation
> See pppd(8) for more options.
>                                                                 [FAILED]
> [root@localhost rohitsz]# ping 127.0.0.1
> PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.086 ms
> 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.062 ms
> 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.063 ms
> 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.063 ms
> 64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.062 ms
> 64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.065 ms
> 64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.060 ms
> 64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.063 ms
> 64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.062 ms
> 
> --- 127.0.0.1 ping statistics ---
> 9 packets transmitted, 9 received, 0% packet loss, time 7999ms
> rtt min/avg/max/mdev = 0.060/0.065/0.086/0.008 ms
> [root@localhost rohitsz]# /usr/local/tomcat/bin/startup.sh
> Using CATALINA_BASE:   /usr/local/tomcat
> Using CATALINA_HOME:   /usr/local/tomcat
> Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> Using JRE_HOME:       /usr/java/jdk1.5.0_06
> [root@localhost rohitsz]#
> 
> </code>
> And so, ping worked :-)
> Also when i did http://localhost:8080 .. it also worked!
> I am absolutely thrilled at the output but i have no clue how it happened!
> could anyone explain..
> 
> regards,
> rohit.
> 
> 
> NAMASTE, i honour the spirit in you which is also in me.
> ```````````````````````````````````````````````````````
> http://www.geocities.com/rohitsz2
> http://rohitsz.blogspot.com
>  
> ---------------------------------
> Do you Yahoo!?
> Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: Tomcat intialization problem

Posted by Rohit Kumar <ro...@yahoo.com>.
Dear Martin and David,

 Thanks a lot for your help.
 I am a total newbie with firewalls.
 So what i did was the following:
 
 <code>
 [root@localhost rohitsz]# service network restart
 Shutting down interface eth0:                                   [  OK  ]
 Shutting down loopback interface:                               [  OK  ]
 Setting network parameters:                                     [  OK  ]
 Bringing up loopback interface:                                 [  OK  ]
 Bringing up interface sit0:                                     [  OK  ]
 Bringing up interface ppp0:  pppd: unrecognized option 'No'
 pppd version 2.4.3
 Usage: pppd [ options ], where options are:
         <device>        Communicate over the named device
         <speed>         Set the baud rate to <speed>
         <loc>:<rem>     Set the local and/or remote interface IP
                         addresses.  Either one may be omitted.
         asyncmap <n>    Set the desired async map to hex <n>
         auth            Require authentication from peer
         connect <p>     Invoke shell command <p> to set up the serial line
         crtscts         Use hardware RTS/CTS flow control
         defaultroute    Add default route through interface
         file <f>        Take options from file <f>
         modem           Use modem control lines
         mru <n>         Set MRU value to <n> for negotiation
 See pppd(8) for more options.
                                                                 [FAILED]
 [root@localhost rohitsz]# ping 127.0.0.1
 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.086 ms
 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.062 ms
 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.063 ms
 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.063 ms
 64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.062 ms
 64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.065 ms
 64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.060 ms
 64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.063 ms
 64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.062 ms
 
 --- 127.0.0.1 ping statistics ---
 9 packets transmitted, 9 received, 0% packet loss, time 7999ms
 rtt min/avg/max/mdev = 0.060/0.065/0.086/0.008 ms
 [root@localhost rohitsz]# /usr/local/tomcat/bin/startup.sh
 Using CATALINA_BASE:   /usr/local/tomcat
 Using CATALINA_HOME:   /usr/local/tomcat
 Using CATALINA_TMPDIR: /usr/local/tomcat/temp
 Using JRE_HOME:       /usr/java/jdk1.5.0_06
 [root@localhost rohitsz]#
 
 </code>
And so, ping worked :-)
 Also when i did http://localhost:8080 .. it also worked!
 I am absolutely thrilled at the output but i have no clue how it happened!
 could anyone explain..
 
 regards,
 rohit.


NAMASTE, i honour the spirit in you which is also in me.
```````````````````````````````````````````````````````
http://www.geocities.com/rohitsz2
http://rohitsz.blogspot.com
 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: Tomcat intialization problem

Posted by Martin Gainty <mg...@hotmail.com>.
(assuming your configs are backed up)
check out modify configs at
/etc/rc.d/init.d/network 
*AND*
/etc/sysconfig/network-scripts/ifup
*then do*
service network restart
*then ICMP ping*
ping WhateverHostYouWantToPing

HTH,
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "David Smith" <dn...@cornell.edu>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, July 07, 2006 8:06 AM
Subject: Re: Tomcat intialization problem


>I think you need to fix your networking issues before trying to setup 
> tomcat.  If the link you supplied is your support case, the lo network 
> interface isn't working or properly configured.  ifconfig on a console 
> logged in as root should show the active network interfaces including at 
> least eth0 and lo.  lo should have a inet addr of 127.0.0.1.  Tomcat 
> binds it's shutdown port specifically to 127.0.0.1.  If that address 
> doesn't exist on the local system, the error below will occur.
> 
> --David
> 
> Rohit Kumar wrote:
> 
>>Greetings everyone,
>> i am having trouble initializing tomcat on Mandriva Linux.
>> here's the output of catalina.out:
>> 
>> <code>
>> [root@localhost logs]# cat catalina.out
>> Jul 7, 2006 8:48:40 AM 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.5.0_06/jre/lib/i386/client:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386
>> Jul 7, 2006 8:48:40 AM org.apache.coyote.http11.Http11BaseProtocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> Jul 7, 2006 8:48:40 AM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 2198 ms
>> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
>> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> Jul 7, 2006 8:48:43 AM org.apache.coyote.http11.Http11BaseProtocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> Jul 7, 2006 8:48:44 AM org.apache.jk.common.ChannelSocket init
>> INFO: JK: ajp13 listening on /0.0.0.0:8009
>> Jul 7, 2006 8:48:44 AM org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/43  config=null
>> Jul 7, 2006 8:48:44 AM org.apache.catalina.storeconfig.StoreLoader load
>> INFO: Find registry server-registry.xml at classpath resource
>> Jul 7, 2006 8:48:44 AM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 3712 ms
>> Jul 7, 2006 8:48:44 AM org.apache.catalina.core.StandardServer await
>> SEVERE: StandardServer.await: create[8005]:
>> java.net.BindException: Cannot assign requested address
>>         at java.net.PlainSocketImpl.socketBind(Native Method)
>>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>>         at java.net.ServerSocket.bind(ServerSocket.java:319)
>>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>         at org.apache.catalina.core.StandardServer.await(StandardServer.java:372)
>>         at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
>>         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.start(Bootstrap.java:294)
>>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>> [root@localhost logs]#                
>> </code>
>> 
>> As far as i understood it, its a firewall problem,i am unable to even ping localhost.
>> please see http://mandrivausers.org/index.php?showtopic=33045 for more details.
>> 
>> Please help resolve this problem.
>> 
>> Thanks,
>> rohit.
>> 
>>
>>NAMASTE, i honour the spirit in you which is also in me.
>>```````````````````````````````````````````````````````
>>http://www.geocities.com/rohitsz2
>>http://rohitsz.blogspot.com
>> 
>>---------------------------------
>>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.
>>  
>>
> 
> 
> ---------------------------------------------------------------------
> 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: Tomcat intialization problem

Posted by David Smith <dn...@cornell.edu>.
I think you need to fix your networking issues before trying to setup 
tomcat.  If the link you supplied is your support case, the lo network 
interface isn't working or properly configured.  ifconfig on a console 
logged in as root should show the active network interfaces including at 
least eth0 and lo.  lo should have a inet addr of 127.0.0.1.  Tomcat 
binds it's shutdown port specifically to 127.0.0.1.  If that address 
doesn't exist on the local system, the error below will occur.

--David

Rohit Kumar wrote:

>Greetings everyone,
> i am having trouble initializing tomcat on Mandriva Linux.
> here's the output of catalina.out:
> 
> <code>
> [root@localhost logs]# cat catalina.out
> Jul 7, 2006 8:48:40 AM 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.5.0_06/jre/lib/i386/client:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386
> Jul 7, 2006 8:48:40 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Jul 7, 2006 8:48:40 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2198 ms
> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> Jul 7, 2006 8:48:41 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Jul 7, 2006 8:48:43 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Jul 7, 2006 8:48:44 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Jul 7, 2006 8:48:44 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/43  config=null
> Jul 7, 2006 8:48:44 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Jul 7, 2006 8:48:44 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3712 ms
> Jul 7, 2006 8:48:44 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8005]:
> java.net.BindException: Cannot assign requested address
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>         at java.net.ServerSocket.bind(ServerSocket.java:319)
>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>         at org.apache.catalina.core.StandardServer.await(StandardServer.java:372)
>         at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
>         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.start(Bootstrap.java:294)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> [root@localhost logs]#                
> </code>
> 
> As far as i understood it, its a firewall problem,i am unable to even ping localhost.
> please see http://mandrivausers.org/index.php?showtopic=33045 for more details.
> 
> Please help resolve this problem.
> 
> Thanks,
> rohit.
> 
>
>NAMASTE, i honour the spirit in you which is also in me.
>```````````````````````````````````````````````````````
>http://www.geocities.com/rohitsz2
>http://rohitsz.blogspot.com
> 		
>---------------------------------
>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.
>  
>


---------------------------------------------------------------------
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