Hi, i did have
java,
tomcat, etc installed and working fine. just recently i installed some SFTP software to setup a Virtual Machine with a similar setup, since returning to my
IDE (Eclipse Ganymede) i am unable to start a tomcat 6 server on localhost.
I've since uninstalled everything java and installed the following:
Java 6u7
Java SE Dev kit 6u7
Apache Tomcat 6
The following are set in my env variables:
BASEDIR c:\apache-tomcat-6.0.16\
CATALINA_BASE c:\apache-tomcat-6.0.16\
CATALINA_HOME c:\apache-tomcat-6.0.16\
CLASSPATH C:\Program Files\Java\jdk1.6.0_07;C:\Program Files\Java\jdk1.6.0_07\bin;C:\Program Files\Java\jdk1.6.0_07\lib;C:\Program Files\Java\jdk1.6.0_07\include; <other stuff removed>
JAVA_HOME C:\Program Files\Java\jdk1.6.0_07
JRE_HOME C:\Program Files\Java\jre1.6.0_07\bin
PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem ${ant.home}/bin;C:\Program Files\Java\jdk1.6.0_07\bin;
When i run "Tomcat Manager" (Start > programs > tomcat 6 > monitor tomcat) I get the icon in the taskbar, this tells me that service is manual startup and stopped (as i want it to be), if i tell this to start and check the logs it seems to have started successfully however i am unable to connect to it (windows firewall is disabled, no other firewalls) ie,
http://localhost/ does not do anything :-( of course i've edited the server.xml file to use port 80 not 8080 but this problem was there even before that.
What i am actually trying to do is to get this server to work again from within Eclipse. I created a new server within Eclipse (Apache Tomcat 6 on localhost), and then told the server to start. this results in the following (very unlike when i run it from tomcat manager):
20-Aug-2008 17:23:08 org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketException: select failed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:306)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:660)
at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:870)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Unknown Source)
This message is repeated until the Tomcat timeout is reached.
As a
test i tried starting the server from tomcat manager and then starting it again from eclipse, the following log shows tomcat manager starting tomcat just fine:
20-Aug-2008 17:29:01 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
20-Aug-2008 17:29:01 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
20-Aug-2008 17:29:01 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
20-Aug-2008 17:29:01 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:29:01 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1129 ms
20-Aug-2008 17:29:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
20-Aug-2008 17:29:02 org.apache.catalina.core.StandardEngine start
INFO: Starting
Servlet Engine: Apache Tomcat/6.0.18
20-Aug-2008 17:29:02 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
20-Aug-2008 17:29:02 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:29:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1006 ms
20-Aug-2008 17:32:39 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
20-Aug-2008 17:32:39 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:32:40 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
20-Aug-2008 17:32:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
20-Aug-2008 17:32:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:34:45 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
20-Aug-2008 17:34:45 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
20-Aug-2008 17:34:45 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
20-Aug-2008 17:34:45 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:34:45 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1223 ms
20-Aug-2008 17:34:45 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
20-Aug-2008 17:34:45 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
20-Aug-2008 17:34:46 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
20-Aug-2008 17:34:46 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
20-Aug-2008 17:34:46 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1015 ms
which of course, with this started i cannot start another instance of the server on the same ports, the error tells me that some of the ports are already in use.
Ok, so whats going on here?
problem 1) I cant connect to
http://localhost/ and view the Tomcat main pages when it has clearly started fine using tomcat manager
problem 2) I cant get Eclpse to start the Tomcat server successfully on its own.
Both of these are things that i could do before.
There are no unusual services running in windows services and no unusual tasks in taskmanager. there are definitely not any other web servers or similar running on this machine.
any help, much appreciated. PS> Winxp SP3 (it was SP3 before too so this cant be the issue)
Regards, George St. Clair
[ August 26, 2008: Message edited by: george st. clair ]
[ August 26, 2008: Message edited by: Bear Bibeault ]
[ August 28, 2008: Message edited by: george st. clair ]
[ August 28, 2008: Message edited by: george st. clair ]