You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ljuba Veselinova <lj...@ling.su.se> on 2007/12/14 12:31:05 UTC

Tomcat does not stay on as a windows service

I am trying to get Tomcat going on a windows machine. There are
running and woking installations of

Java 2 Standard Edition Development Kit version 2, update 6, with JRE
and Java Web Start
Apache 2.0.58

Tomcat seems to install fine; I have created and checked the paths of
the system variables CATALINA_HOME and JAVA_HOME for spelling errors.

However, Tomcat does not stay on as a service. It starts and a second
later it is off again. I have consulted the log files and really need
help interpreting what they say

Thanks,
Ljuba

catalina-2007-12-14.log

2007-dec-14 12:14:08 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
2007-dec-14 12:14:08 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
2007-dec-14 12:14:08 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1594 ms
2007-dec-14 12:14:08 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2007-dec-14 12:14:08 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
2007-dec-14 12:14:09 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2007-dec-14 12:14:13 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2007-dec-14 12:14:14 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
2007-dec-14 12:14:14 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
2007-dec-14 12:14:14 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5734 ms
2007-dec-14 12:14:14 org.apache.catalina.core.StandardServer await
ALLVARLIG: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
	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)
2007-dec-14 12:14:14 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080

localhost-2007-12-14.log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

jakarta_service_20071214.log
2007-12-14 11:53:25] [info] Service Tomcat5 name Apache Tomcat
[2007-12-14 11:53:25] [info] Service Tomcat5 installed
[2007-12-14 11:53:25] [info] Procrun finished.
[2007-12-14 11:53:25] [info] Updating service...
[2007-12-14 11:53:25] [info] Service Tomcat5 updated
[2007-12-14 11:53:25] [info] Update service finished.
[2007-12-14 11:53:25] [info] Procrun finished.
[2007-12-14 11:53:36] [info] Updating service...
[2007-12-14 11:53:36] [info] Service Tomcat5 updated
[2007-12-14 11:53:36] [info] Update service finished.
[2007-12-14 11:53:36] [info] Procrun finished.
[2007-12-14 11:53:36] [info] Updating service...
[2007-12-14 11:53:36] [info] Service Tomcat5 updated
[2007-12-14 11:53:37] [info] Update service finished.
[2007-12-14 11:53:37] [info] Procrun finished.
[2007-12-14 11:53:42] [info] Running Service...
[2007-12-14 11:53:42] [info] Starting service...
[2007-12-14 11:53:43] [info] Service started in 1296 ms.
[2007-12-14 12:01:42] [info] Running Service...
[2007-12-14 12:01:42] [info] Starting service...
[2007-12-14 12:01:43] [info] Service started in 1296 ms.
[2007-12-14 12:06:48] [info] Running Service...
[2007-12-14 12:06:48] [info] Starting service...
[2007-12-14 12:06:50] [info] Service started in 1296 ms.

-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Martin Gainty <mg...@hotmail.com>.
netstat -a | grep 8005

Sverige Altid
Martin-
----- Original Message -----
From: "Ljuba Veselinova" <lj...@ling.su.se>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, December 14, 2007 7:18 AM
Subject: Re: Tomcat does not stay on as a windows service


> Apache is running but it uses port 80. As far as I can tell (via the
> Task manager panel) there are no other instances of tomcat running on
> the machine. How do I check what's running specifically on port 8005?
>
> Thanks a lot for answering!
>
> Ljuba
>
> On Dec 14, 2007 12:37 PM, dirk ooms <di...@onesparrow.com> wrote:
> > there is another process that already uses port 8005. check whether
there are
> > other servers (apache?) or instances of tomcat running on your machine.
> >
> > dirk
> >
> >
> > On Friday 14 December 2007 12:31, Ljuba Veselinova wrote:
> > > I am trying to get Tomcat going on a windows machine. There are
> > > running and woking installations of
> > >
> > > Java 2 Standard Edition Development Kit version 2, update 6, with JRE
> > > and Java Web Start
> > > Apache 2.0.58
> > >
> > > Tomcat seems to install fine; I have created and checked the paths of
> > > the system variables CATALINA_HOME and JAVA_HOME for spelling errors.
> > >
> > > However, Tomcat does not stay on as a service. It starts and a second
> > > later it is off again. I have consulted the log files and really need
> > > help interpreting what they say
> > >
> > > Thanks,
> > > Ljuba
> > >
> > > catalina-2007-12-14.log
> > >
> > > 2007-dec-14 12:14:08 org.apache.coyote.http11.Http11AprProtocol init
> > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > 2007-dec-14 12:14:08 org.apache.coyote.ajp.AjpAprProtocol init
> > > INFO: Initializing Coyote AJP/1.3 on ajp-8009
> > > 2007-dec-14 12:14:08 org.apache.catalina.startup.Catalina load
> > > INFO: Initialization processed in 1594 ms
> > > 2007-dec-14 12:14:08 org.apache.catalina.core.StandardService start
> > > INFO: Starting service Catalina
> > > 2007-dec-14 12:14:08 org.apache.catalina.core.StandardEngine start
> > > INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> > > 2007-dec-14 12:14:09 org.apache.catalina.core.StandardHost start
> > > INFO: XML validation disabled
> > > 2007-dec-14 12:14:13 org.apache.coyote.http11.Http11AprProtocol start
> > > INFO: Starting Coyote HTTP/1.1 on http-8080
> > > 2007-dec-14 12:14:14 org.apache.coyote.ajp.AjpAprProtocol start
> > > INFO: Starting Coyote AJP/1.3 on ajp-8009
> > > 2007-dec-14 12:14:14 org.apache.catalina.storeconfig.StoreLoader load
> > > INFO: Find registry server-registry.xml at classpath resource
> > > 2007-dec-14 12:14:14 org.apache.catalina.startup.Catalina start
> > > INFO: Server startup in 5734 ms
> > > 2007-dec-14 12:14:14 org.apache.catalina.core.StandardServer await
> > > ALLVARLIG: StandardServer.await: create[8005]:
> > > java.net.BindException: Address already in use: JVM_Bind
> > >       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:3
> > >9) at
> >
> > >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > >l.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)
> > > 2007-dec-14 12:14:14 org.apache.coyote.http11.Http11AprProtocol pause
> > > INFO: Pausing Coyote HTTP/1.1 on http-8080
> > >
> > > localhost-2007-12-14.log
> > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > > [org.apache.webapp.balancer.RuleChain:
> > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > > News / Redirect URL: http://www.cnn.com],
> > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> > > name: paramName / Target param value: paramValue / Redirect URL:
> > > http://www.yahoo.com],
> > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > > http://jakarta.apache.org]]
> > > 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextDestroyed()
> > > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextDestroyed()
> > > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextDestroyed()
> > > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextDestroyed()
> > >
> > > jakarta_service_20071214.log
> > > 2007-12-14 11:53:25] [info] Service Tomcat5 name Apache Tomcat
> > > [2007-12-14 11:53:25] [info] Service Tomcat5 installed
> > > [2007-12-14 11:53:25] [info] Procrun finished.
> > > [2007-12-14 11:53:25] [info] Updating service...
> > > [2007-12-14 11:53:25] [info] Service Tomcat5 updated
> > > [2007-12-14 11:53:25] [info] Update service finished.
> > > [2007-12-14 11:53:25] [info] Procrun finished.
> > > [2007-12-14 11:53:36] [info] Updating service...
> > > [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> > > [2007-12-14 11:53:36] [info] Update service finished.
> > > [2007-12-14 11:53:36] [info] Procrun finished.
> > > [2007-12-14 11:53:36] [info] Updating service...
> > > [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> > > [2007-12-14 11:53:37] [info] Update service finished.
> > > [2007-12-14 11:53:37] [info] Procrun finished.
> > > [2007-12-14 11:53:42] [info] Running Service...
> > > [2007-12-14 11:53:42] [info] Starting service...
> > > [2007-12-14 11:53:43] [info] Service started in 1296 ms.
> > > [2007-12-14 12:01:42] [info] Running Service...
> > > [2007-12-14 12:01:42] [info] Starting service...
> > > [2007-12-14 12:01:43] [info] Service started in 1296 ms.
> > > [2007-12-14 12:06:48] [info] Running Service...
> > > [2007-12-14 12:06:48] [info] Starting service...
> > > [2007-12-14 12:06:50] [info] Service started in 1296 ms.
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>
>
>
> --
>
===========================================================================
> Ljuba Veselinova
> Dept of Linguistics          Email: ljuba@ling.su.se
> Stockholm University      Phone: +46-8-16 2332
> 106 91 Stockholm          Fax  : +46-8-15 5389
> Sweden                         URL  : http://www.ling.su.se/staff/ljuba/
>
> "We learn by going where we want to go."
>                                           Julia Cameron
>
============================================================================
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: ljuba12@gmail.com [mailto:ljuba12@gmail.com] On Behalf 
> Of Ljuba Veselinova
> Subject: Re: Tomcat does not stay on as a windows service
> 
> However, after all this, I am still getting info about two instances
> of java.exe listening on several ports, one of which is 8005.

You have one or more applications installed that include their own JRE
and likely some version of Tomcat for internal use.  You'll need to find
these and either remove them or reconfigure your Tomcat to use a
different set of ports.

 - 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: Tomcat does not stay on as a windows service

Posted by Ljuba Veselinova <lj...@ling.su.se>.
Thank you Alan and Markus!

I followed the instructions of both you and I kept getting info (via
netstat) about a java.exe listening on port 8005 on localhost. I went
and uninstalled both Tomcat and java; made sure all references to them
are gone from the system variables and also deleted their keys from
the registry.

To make sure all java is gone from the computer I typed

java -version

at the command prompt and got a response that java is not a recognized command.

Then I rebooted the machine.

However, after all this, I am still getting info about two instances
of java.exe listening on several ports, one of which is 8005.

So I still need help.

Thanks,

Ljuba

On Dec 14, 2007 5:38 PM, Markus Schönhaber
<ma...@schoenhaber.de> wrote:
> Ljuba Veselinova wrote:
>
> > It looks like java is listening to port 8005; there appear to be two
> > instances of java.exe running and each one of them is listening to
> > several ports. I need java to run though. Is it safe to end the
> > instance of java.exe listening to port 8005?
>
> If you don't know what the already running instance of java.exe does,
> "safe" is the wrong word. But since you are experimenting with Tomcat,
> I'd call it a "safe" bet that it's a Tomcat instance that's already
> running. You could do a
> telnet localhost 8005
> If telnet is able to connect, type
> SHUTDOWN
> an press the Enter key (by default with Windows' telnet you won't get
> any visual feedback of what you type). Wait a few seconds and check
> whether the java.exe process bound to 8005 is still running.
>
>
> Regards
>   mks
>
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Ljuba Veselinova wrote:

> It looks like java is listening to port 8005; there appear to be two
> instances of java.exe running and each one of them is listening to
> several ports. I need java to run though. Is it safe to end the
> instance of java.exe listening to port 8005?

If you don't know what the already running instance of java.exe does,
"safe" is the wrong word. But since you are experimenting with Tomcat,
I'd call it a "safe" bet that it's a Tomcat instance that's already
running. You could do a
telnet localhost 8005
If telnet is able to connect, type
SHUTDOWN
an press the Enter key (by default with Windows' telnet you won't get
any visual feedback of what you type). Wait a few seconds and check
whether the java.exe process bound to 8005 is still running.

Regards
  mks


---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Alan Chaney <al...@compulsivecreative.com>.
I don't think that's the best solution. The java.exe which is bound to 
8005 is probably your tomcat service
started but not active. From previous emails I assume you are running 
under Windows.

Here's a suggestion (you may have tried this)

1. Go to the windows services manager and make sure that tomcat is set 
to 'manual start'
2. Reboot the machine.
3. Try the netstat to see if anything is bound to 8005. If so, 
investigate exactly what.
4. Start tomcat either from the task bar or the services manager
5. Check the logs to see if it started OK.

I'd guess that it is possible that tomcat was already running but not 
responding and when you attempted to start it again you were getting the 
'already bound' error message.

Regards

Alan

Ljuba Veselinova wrote:
> I have tried to kill java.exe that's listening to port 8005 several
> times now without success. How do I assign other ports to either
> java.exe or tomcat?
> 
> Thanks,
> Ljuba
> 
> On Dec 14, 2007 2:48 PM, David Smith <dn...@cornell.edu> wrote:
>> I've also found the TcpDump tool available from Microsoft's website
>> extremely helpful  in looking at this stuff.
>>
>> I would say it should be safe to stop the instance of java.exe holding
>> on to 8005, but you should try to be sure it's not used for anything.
>> Various third party software companies have been known to leverage
>> tomcat in their own products.
>>
>> --David
>>
>>
>> Ljuba Veselinova wrote:
>>
>>> I found info about netstat in the windows help files. I apologize for
>>> this simple question. I'm looking at the results produced by netstat
>>> and tasklist right now.
>>>
>>> It looks like java is listening to port 8005; there appear to be two
>>> instances of java.exe running and each one of them is listening to
>>> several ports. I need java to run though. Is it safe to end the
>>> instance of java.exe listening to port 8005?
>>>
>>> Ljuba
>>>
>>> On Dec 14, 2007 2:03 PM, Markus Schönhaber
>>> <ma...@schoenhaber.de> wrote:
>>>
>>>
>>>> Ljuba Veselinova wrote:
>>>>
>>>>
>>>>
>>>>> Apache is running but it uses port 80. As far as I can tell (via the
>>>>> Task manager panel) there are no other instances of tomcat running on
>>>>> the machine. How do I check what's running specifically on port 8005?
>>>>>
>>>>>
>>>> If you're using XP or better
>>>> netstat -ano
>>>> will show you which process id listens on what address and port.
>>>> Or you could use something like TcpView:
>>>> http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
>>>>
>>>> Regards
>>>>  mks
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
> 
> 
> 

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Ljuba Veselinova <lj...@ling.su.se>.
I have tried to kill java.exe that's listening to port 8005 several
times now without success. How do I assign other ports to either
java.exe or tomcat?

Thanks,
Ljuba

On Dec 14, 2007 2:48 PM, David Smith <dn...@cornell.edu> wrote:
> I've also found the TcpDump tool available from Microsoft's website
> extremely helpful  in looking at this stuff.
>
> I would say it should be safe to stop the instance of java.exe holding
> on to 8005, but you should try to be sure it's not used for anything.
> Various third party software companies have been known to leverage
> tomcat in their own products.
>
> --David
>
>
> Ljuba Veselinova wrote:
>
> >I found info about netstat in the windows help files. I apologize for
> >this simple question. I'm looking at the results produced by netstat
> >and tasklist right now.
> >
> >It looks like java is listening to port 8005; there appear to be two
> >instances of java.exe running and each one of them is listening to
> >several ports. I need java to run though. Is it safe to end the
> >instance of java.exe listening to port 8005?
> >
> >Ljuba
> >
> >On Dec 14, 2007 2:03 PM, Markus Schönhaber
> ><ma...@schoenhaber.de> wrote:
> >
> >
> >>Ljuba Veselinova wrote:
> >>
> >>
> >>
> >>>Apache is running but it uses port 80. As far as I can tell (via the
> >>>Task manager panel) there are no other instances of tomcat running on
> >>>the machine. How do I check what's running specifically on port 8005?
> >>>
> >>>
> >>If you're using XP or better
> >>netstat -ano
> >>will show you which process id listens on what address and port.
> >>Or you could use something like TcpView:
> >>http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
> >>
> >>Regards
> >>  mks
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by David Smith <dn...@cornell.edu>.
I've also found the TcpDump tool available from Microsoft's website 
extremely helpful  in looking at this stuff. 

I would say it should be safe to stop the instance of java.exe holding 
on to 8005, but you should try to be sure it's not used for anything.  
Various third party software companies have been known to leverage 
tomcat in their own products.

--David

Ljuba Veselinova wrote:

>I found info about netstat in the windows help files. I apologize for
>this simple question. I'm looking at the results produced by netstat
>and tasklist right now.
>
>It looks like java is listening to port 8005; there appear to be two
>instances of java.exe running and each one of them is listening to
>several ports. I need java to run though. Is it safe to end the
>instance of java.exe listening to port 8005?
>
>Ljuba
>
>On Dec 14, 2007 2:03 PM, Markus Schönhaber
><ma...@schoenhaber.de> wrote:
>  
>
>>Ljuba Veselinova wrote:
>>
>>    
>>
>>>Apache is running but it uses port 80. As far as I can tell (via the
>>>Task manager panel) there are no other instances of tomcat running on
>>>the machine. How do I check what's running specifically on port 8005?
>>>      
>>>
>>If you're using XP or better
>>netstat -ano
>>will show you which process id listens on what address and port.
>>Or you could use something like TcpView:
>>http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
>>
>>Regards
>>  mks
>>
>>
>>---------------------------------------------------------------------
>>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
>>
>>
>>    
>>
>
>
>
>  
>


---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Ljuba Veselinova <lj...@ling.su.se>.
I found info about netstat in the windows help files. I apologize for
this simple question. I'm looking at the results produced by netstat
and tasklist right now.

It looks like java is listening to port 8005; there appear to be two
instances of java.exe running and each one of them is listening to
several ports. I need java to run though. Is it safe to end the
instance of java.exe listening to port 8005?

Ljuba

On Dec 14, 2007 2:03 PM, Markus Schönhaber
<ma...@schoenhaber.de> wrote:
> Ljuba Veselinova wrote:
>
> > Apache is running but it uses port 80. As far as I can tell (via the
> > Task manager panel) there are no other instances of tomcat running on
> > the machine. How do I check what's running specifically on port 8005?
>
> If you're using XP or better
> netstat -ano
> will show you which process id listens on what address and port.
> Or you could use something like TcpView:
> http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
>
> Regards
>   mks
>
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Ljuba Veselinova wrote:

> Apache is running but it uses port 80. As far as I can tell (via the
> Task manager panel) there are no other instances of tomcat running on
> the machine. How do I check what's running specifically on port 8005?

If you're using XP or better
netstat -ano
will show you which process id listens on what address and port.
Or you could use something like TcpView:
http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx

Regards
  mks

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by Ljuba Veselinova <lj...@ling.su.se>.
Apache is running but it uses port 80. As far as I can tell (via the
Task manager panel) there are no other instances of tomcat running on
the machine. How do I check what's running specifically on port 8005?

Thanks a lot for answering!

Ljuba

On Dec 14, 2007 12:37 PM, dirk ooms <di...@onesparrow.com> wrote:
> there is another process that already uses port 8005. check whether there are
> other servers (apache?) or instances of tomcat running on your machine.
>
> dirk
>
>
> On Friday 14 December 2007 12:31, Ljuba Veselinova wrote:
> > I am trying to get Tomcat going on a windows machine. There are
> > running and woking installations of
> >
> > Java 2 Standard Edition Development Kit version 2, update 6, with JRE
> > and Java Web Start
> > Apache 2.0.58
> >
> > Tomcat seems to install fine; I have created and checked the paths of
> > the system variables CATALINA_HOME and JAVA_HOME for spelling errors.
> >
> > However, Tomcat does not stay on as a service. It starts and a second
> > later it is off again. I have consulted the log files and really need
> > help interpreting what they say
> >
> > Thanks,
> > Ljuba
> >
> > catalina-2007-12-14.log
> >
> > 2007-dec-14 12:14:08 org.apache.coyote.http11.Http11AprProtocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > 2007-dec-14 12:14:08 org.apache.coyote.ajp.AjpAprProtocol init
> > INFO: Initializing Coyote AJP/1.3 on ajp-8009
> > 2007-dec-14 12:14:08 org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 1594 ms
> > 2007-dec-14 12:14:08 org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > 2007-dec-14 12:14:08 org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> > 2007-dec-14 12:14:09 org.apache.catalina.core.StandardHost start
> > INFO: XML validation disabled
> > 2007-dec-14 12:14:13 org.apache.coyote.http11.Http11AprProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > 2007-dec-14 12:14:14 org.apache.coyote.ajp.AjpAprProtocol start
> > INFO: Starting Coyote AJP/1.3 on ajp-8009
> > 2007-dec-14 12:14:14 org.apache.catalina.storeconfig.StoreLoader load
> > INFO: Find registry server-registry.xml at classpath resource
> > 2007-dec-14 12:14:14 org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 5734 ms
> > 2007-dec-14 12:14:14 org.apache.catalina.core.StandardServer await
> > ALLVARLIG: StandardServer.await: create[8005]:
> > java.net.BindException: Address already in use: JVM_Bind
> >       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:3
> >9) at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> >l.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)
> > 2007-dec-14 12:14:14 org.apache.coyote.http11.Http11AprProtocol pause
> > INFO: Pausing Coyote HTTP/1.1 on http-8080
> >
> > localhost-2007-12-14.log
> > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > [org.apache.webapp.balancer.RuleChain:
> > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > News / Redirect URL: http://www.cnn.com],
> > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> > name: paramName / Target param value: paramValue / Redirect URL:
> > http://www.yahoo.com],
> > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > http://jakarta.apache.org]]
> > 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextDestroyed()
> > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextDestroyed()
> > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextDestroyed()
> > 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextDestroyed()
> >
> > jakarta_service_20071214.log
> > 2007-12-14 11:53:25] [info] Service Tomcat5 name Apache Tomcat
> > [2007-12-14 11:53:25] [info] Service Tomcat5 installed
> > [2007-12-14 11:53:25] [info] Procrun finished.
> > [2007-12-14 11:53:25] [info] Updating service...
> > [2007-12-14 11:53:25] [info] Service Tomcat5 updated
> > [2007-12-14 11:53:25] [info] Update service finished.
> > [2007-12-14 11:53:25] [info] Procrun finished.
> > [2007-12-14 11:53:36] [info] Updating service...
> > [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> > [2007-12-14 11:53:36] [info] Update service finished.
> > [2007-12-14 11:53:36] [info] Procrun finished.
> > [2007-12-14 11:53:36] [info] Updating service...
> > [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> > [2007-12-14 11:53:37] [info] Update service finished.
> > [2007-12-14 11:53:37] [info] Procrun finished.
> > [2007-12-14 11:53:42] [info] Running Service...
> > [2007-12-14 11:53:42] [info] Starting service...
> > [2007-12-14 11:53:43] [info] Service started in 1296 ms.
> > [2007-12-14 12:01:42] [info] Running Service...
> > [2007-12-14 12:01:42] [info] Starting service...
> > [2007-12-14 12:01:43] [info] Service started in 1296 ms.
> > [2007-12-14 12:06:48] [info] Running Service...
> > [2007-12-14 12:06:48] [info] Starting service...
> > [2007-12-14 12:06:50] [info] Service started in 1296 ms.
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
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 does not stay on as a windows service

Posted by dirk ooms <di...@onesparrow.com>.
there is another process that already uses port 8005. check whether there are 
other servers (apache?) or instances of tomcat running on your machine.

dirk

On Friday 14 December 2007 12:31, Ljuba Veselinova wrote:
> I am trying to get Tomcat going on a windows machine. There are
> running and woking installations of
>
> Java 2 Standard Edition Development Kit version 2, update 6, with JRE
> and Java Web Start
> Apache 2.0.58
>
> Tomcat seems to install fine; I have created and checked the paths of
> the system variables CATALINA_HOME and JAVA_HOME for spelling errors.
>
> However, Tomcat does not stay on as a service. It starts and a second
> later it is off again. I have consulted the log files and really need
> help interpreting what they say
>
> Thanks,
> Ljuba
>
> catalina-2007-12-14.log
>
> 2007-dec-14 12:14:08 org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 2007-dec-14 12:14:08 org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> 2007-dec-14 12:14:08 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1594 ms
> 2007-dec-14 12:14:08 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 2007-dec-14 12:14:08 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> 2007-dec-14 12:14:09 org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> 2007-dec-14 12:14:13 org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 2007-dec-14 12:14:14 org.apache.coyote.ajp.AjpAprProtocol start
> INFO: Starting Coyote AJP/1.3 on ajp-8009
> 2007-dec-14 12:14:14 org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> 2007-dec-14 12:14:14 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 5734 ms
> 2007-dec-14 12:14:14 org.apache.catalina.core.StandardServer await
> ALLVARLIG: StandardServer.await: create[8005]:
> java.net.BindException: Address already in use: JVM_Bind
> 	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:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.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)
> 2007-dec-14 12:14:14 org.apache.coyote.http11.Http11AprProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
>
> localhost-2007-12-14.log
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> News / Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> name: paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
> 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> 2007-dec-14 12:14:12 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> 2007-dec-14 12:14:13 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextDestroyed()
> 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextDestroyed()
> 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextDestroyed()
> 2007-dec-14 12:14:15 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextDestroyed()
>
> jakarta_service_20071214.log
> 2007-12-14 11:53:25] [info] Service Tomcat5 name Apache Tomcat
> [2007-12-14 11:53:25] [info] Service Tomcat5 installed
> [2007-12-14 11:53:25] [info] Procrun finished.
> [2007-12-14 11:53:25] [info] Updating service...
> [2007-12-14 11:53:25] [info] Service Tomcat5 updated
> [2007-12-14 11:53:25] [info] Update service finished.
> [2007-12-14 11:53:25] [info] Procrun finished.
> [2007-12-14 11:53:36] [info] Updating service...
> [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> [2007-12-14 11:53:36] [info] Update service finished.
> [2007-12-14 11:53:36] [info] Procrun finished.
> [2007-12-14 11:53:36] [info] Updating service...
> [2007-12-14 11:53:36] [info] Service Tomcat5 updated
> [2007-12-14 11:53:37] [info] Update service finished.
> [2007-12-14 11:53:37] [info] Procrun finished.
> [2007-12-14 11:53:42] [info] Running Service...
> [2007-12-14 11:53:42] [info] Starting service...
> [2007-12-14 11:53:43] [info] Service started in 1296 ms.
> [2007-12-14 12:01:42] [info] Running Service...
> [2007-12-14 12:01:42] [info] Starting service...
> [2007-12-14 12:01:43] [info] Service started in 1296 ms.
> [2007-12-14 12:06:48] [info] Running Service...
> [2007-12-14 12:06:48] [info] Starting service...
> [2007-12-14 12:06:50] [info] Service started in 1296 ms.

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