Tomcat intialization problem

2006-07-06 Thread Rohit Kumar
Greetings everyone,
 i am having trouble initializing tomcat on Mandriva Linux.
 here's the output of catalina.out:
 
 
 [EMAIL PROTECTED] 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.(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)
 [EMAIL PROTECTED] logs]#
 
 
 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

2006-07-07 Thread Rohit Kumar
Dear Martin and David,

 Thanks a lot for your help.
 I am a total newbie with firewalls.
 So what i did was the following:
 
 
 [EMAIL PROTECTED] 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:
 Communicate over the named device
  Set the baud rate to 
 : Set the local and/or remote interface IP
 addresses.  Either one may be omitted.
 asyncmap Set the desired async map to hex 
 authRequire authentication from peer
 connect  Invoke shell command  to set up the serial line
 crtscts Use hardware RTS/CTS flow control
 defaultrouteAdd default route through interface
 file Take options from file 
 modem   Use modem control lines
 mru  Set MRU value to  for negotiation
 See pppd(8) for more options.
 [FAILED]
 [EMAIL PROTECTED] 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
 [EMAIL PROTECTED] 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
 [EMAIL PROTECTED] rohitsz]#
 
 
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.