Re: Error running ./startup.sh
You have a service running on the port you're attempting to start tomcat on. Chances are it's another instance of tomcat. Use the shutdown.sh script to end it. On Tue, 24 Oct 2000 18:03:44 John Bateman wrote: Hi I'm getting an error when I try and run tomcat in stand alone mode. The logs don'e show anything wrong. Error: [root@opus bin]# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/ lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc al/lib/jconn2.jar [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386) at java.net.ServerSocket.init(ServerSocket.java:169) at java.net.ServerSocket.init(ServerSocket.java:120) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) I have all my environment variables set (and verified!) but I keep getting this error. I'll be happy to post any additional information needed, but I don't want to post everything if it's just going to take up the net's precious bandwidth. Thanks alot. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
Re: Error running ./startup.sh
I've run into the same problem running Tomcat 3.1 on RedHat7 with jdk1.2.2 Installing the updates from the Redhat Errata page cleared it up. - Original Message - From: Craig May [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 1:00 AM Subject: Re: Error running ./startup.sh You have a service running on the port you're attempting to start tomcat on. Chances are it's another instance of tomcat. Use the shutdown.sh script to end it. On Tue, 24 Oct 2000 18:03:44 John Bateman wrote: Hi I'm getting an error when I try and run tomcat in stand alone mode. The logs don'e show anything wrong. Error: [root@opus bin]# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/ lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc al/lib/jconn2.jar [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386) at java.net.ServerSocket.init(ServerSocket.java:169) at java.net.ServerSocket.init(ServerSocket.java:120) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) I have all my environment variables set (and verified!) but I keep getting this error. I'll be happy to post any additional information needed, but I don't want to post everything if it's just going to take up the net's precious bandwidth. Thanks alot. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
RE: Error running ./startup.sh
Title: RE: Error running ./startup.sh I got this error when I was just starting to configure tomcat. Turns out we had an installation of oracle 9i that had started the jserv listener on port 8007. The other problem was that the port tomcat was using for the stand alone web server was also in use. Try to shut down the tomcat server and check that the ports that are configured are not in use. I found tomcat did not always shut down after having this error. Check for processes matching something like below: /usr/java/bin/../bin/sparc/green_threads/java -Dtomcat.home=./.. org.apache.tom Once the ports are configured without any conflicts. startup.sh and shutdown.sh seem to work fine. Lee Blackburn Lead eWizard LastMinuteTravel.com 404.495.2079 (V) 404.495.2111 (F) -Original Message- From: John Bateman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 2:04 PM To: Tomcat-User (E-mail) Subject: Error running ./startup.sh Hi I'm getting an error when I try and run tomcat in stand alone mode. The logs don'e show anything wrong. Error: [root@opus bin]# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/ lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc al/lib/jconn2.jar [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386) at java.net.ServerSocket.init(ServerSocket.java:169) at java.net.ServerSocket.init(ServerSocket.java:120) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) I have all my environment variables set (and verified!) but I keep getting this error. I'll be happy to post any additional information needed, but I don't want to post everything if it's just going to take up the net's precious bandwidth. Thanks alot. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.