RE: Problems stopping and starting tomcat server

2008-04-14 Thread Peter Crowther
 From: Toni Tortosa [mailto:[EMAIL PROTECTED]
[...]
 When I start tomcat 5.5.:
[...]
 java.net.BindException: Address already in use:8180

Something's hanging onto port 8180.  It's probably an old Tomcat instance that 
hasn't properly closed down, but it may be something else.  Find the process 
and kill it.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Toni Tortosa
Yes, that is the first I thougth. But 8180 port doesn't appear in my 
nmap localhost, even If tomcat status is running. I must to say that 
when I stop tomcat in my command line appears several dots . . . .  and 
at the end (Killing) twice. It seems that tomcat can't stop (as we see 
in the log) and It's killed. Bind seems to say that the address is 
current in use at 8180 port.


I'm thinking about to restart the server and/or reinstalling java jdk 
and tomcat server. I haven't done before because this server is an 
apache server hosting my webpage also.


Thank you, Peter



From: Toni Tortosa [mailto:[EMAIL PROTECTED]


[...]
  

When I start tomcat 5.5.:


[...]
  

java.net.BindException: Address already in use:8180



Something's hanging onto port 8180.  It's probably an old Tomcat instance that 
hasn't properly closed down, but it may be something else.  Find the process 
and kill it.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Toni Tortosa
I've removed Tomcat, including --purge with apt-get and I've 
reinstalled, but I still having the same problem.



Yes, that is the first I thougth. But 8180 port doesn't appear in my 
nmap localhost, even If tomcat status is running. I must to say that 
when I stop tomcat in my command line appears several dots . . . .  
and at the end (Killing) twice. It seems that tomcat can't stop (as we 
see in the log) and It's killed. Bind seems to say that the address is 
current in use at 8180 port.


I'm thinking about to restart the server and/or reinstalling java jdk 
and tomcat server. I haven't done before because this server is an 
apache server hosting my webpage also.


Thank you, Peter



From: Toni Tortosa [mailto:[EMAIL PROTECTED]


[...]
 

When I start tomcat 5.5.:


[...]
 

java.net.BindException: Address already in use:8180



Something's hanging onto port 8180.  It's probably an old Tomcat 
instance that hasn't properly closed down, but it may be something 
else.  Find the process and kill it.


- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

Acces a obertic.com http://www.obertic.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Toni Tortosa

Philip!!!

Thank you very much! It works fine. I can enter to my applications in 
Tomcat and the Index page of Tomcat.


Best regards!

 Are these connections the problem? How can I close them?



The top line shows a java process listening on port 8180. It has a PID
of 24027. So I would probably just murder it with a:-

kill -9 24027

and then you should be fine.

Cheers,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


--


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Toni Tortosa

This is the last output from catalina log when I start tomcat:

Apr 14, 2008 11:30:55 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/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/i386/server:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/../lib/i386

Apr 14, 2008 11:30:55 AM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8180
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
   at 
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138)
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)

   at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
   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.load(Bootstrap.java:266)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Apr 14, 2008 11:30:55 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.net.BindException: Address already in use:8180
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)

   at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
   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.load(Bootstrap.java:266)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Apr 14, 2008 11:30:55 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 720 ms
Apr 14, 2008 11:30:55 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 14, 2008 11:30:55 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Apr 14, 2008 11:30:55 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/webdav is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/admin is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/servlets-examples is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/jsp-examples is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/host-manager is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/tomcat-docs is unusable.

Apr 14, 2008 11:30:56 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/manager is unusable.

Apr 14, 2008 11:30:57 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/balancer is unusable.

Apr 14, 2008 11:30:57 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/var/lib/tomcat5.5/work/Catalina/localhost/_ is unusable.

Apr 14, 2008 11:30:57 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive opproject.war
Apr 14, 2008 11:30:57 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive openbravo.war
Apr 14, 2008 11:30:57 AM org.apache.catalina.loader.WebappClassLoader 
validateJarFile

Re: Problems stopping and starting tomcat server

2008-04-14 Thread Philip Wigg
  Are these connections the problem? How can I close them?

The top line shows a java process listening on port 8180. It has a PID
of 24027. So I would probably just murder it with a:-

kill -9 24027

and then you should be fine.

Cheers,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Toni Tortosa

Hello Philip.

When Tomcat is stopped. Netstat returns this:

tcp6   0  0 :::8180 :::*
LISTEN 24027/java 
tcp6 552  0 :::217.116.20.:8180 :::84.126.238.:1137 
CLOSE_WAIT -  
tcp6 592  0 :::217.116.20.:8180 :::84.126.238:56177 
CLOSE_WAIT -  
tcp6  64  0 :::217.116.20.:8180 :::84.126.238:35697 
CLOSE_WAIT -  
tcp6 548  0 :::217.116.20.:8180 :::84.126.238.:1136 
CLOSE_WAIT -  
tcp6  95  0 :::217.116.20.:8180 :::84.126.238:35696 
CLOSE_WAIT -  
tcp6 596  0 :::217.116.20.:8180 :::84.126.238:56183 
CLOSE_WAIT -  
tcp6 596  0 :::217.116.20.:8180 :::84.126.238:36726 
CLOSE_WAIT -  
tcp6 648  0 :::217.116.20.:8180 :::84.126.238:40805 
ESTABLISHED-  
tcp6 579  0 :::217.116.20.:8180 :::84.126.238:59751 
CLOSE_WAIT -  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:40806 
CLOSE_WAIT -  
tcp6 648  0 :::217.116.20.:8180 :::84.126.238:53096 
ESTABLISHED-  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:53099 
CLOSE_WAIT -  
tcp6 595  0 :::217.116.20.:8180 :::84.126.238:59756 
ESTABLISHED-  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:40797 
CLOSE_WAIT -  
tcp6 591  0 :::217.116.20.:8180 :::84.126.238:54348 
ESTABLISHED-  
tcp6 578  0 :::217.116.20.:8180 :::84.126.238:43040 
ESTABLISHED-  
tcp6 592  0 :::217.116.20.:8180 :::84.126.238:49198 
CLOSE_WAIT -  
tcp6 575  0 :::217.116.20.:8180 :::84.126.238:47891 
CLOSE_WAIT -  
tcp6 596  0 :::217.116.20.:8180 :::84.126.238:60675 
CLOSE_WAIT -  
tcp6 578  0 :::217.116.20.:8180 :::84.126.238:40699 
ESTABLISHED-  
tcp6 579  0 :::217.116.20.:8180 :::84.126.238:40698 
CLOSE_WAIT -  
tcp6   1  0 :::127.0.0.1:8180   :::127.0.0.1:54927  
CLOSE_WAIT -  
tcp6 579  0 :::217.116.20.:8180 :::84.126.238:40679 
CLOSE_WAIT -  
tcp6 696  0 :::217.116.20.:8180 :::83.33.13.2:55740 
CLOSE_WAIT -  
tcp6 579  0 :::217.116.20.:8180 :::84.126.238:60097 
CLOSE_WAIT -  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:35786 
CLOSE_WAIT -  
tcp6 575  0 :::217.116.20.:8180 :::84.126.238:40882 
CLOSE_WAIT -  
tcp6 592  0 :::217.116.20.:8180 :::84.126.238:59046 
CLOSE_WAIT -  
tcp6 631  0 :::217.116.20.:8180 :::84.126.238:57262 
ESTABLISHED-  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:42132 
CLOSE_WAIT -  
tcp6 648  0 :::217.116.20.:8180 :::84.126.238:57241 
ESTABLISHED-  
tcp6 638  0 :::217.116.20.:8180 :::84.126.238:42113 
CLOSE_WAIT -  
tcp6 632  0 :::217.116.20.:8180 :::84.126.238:42115 
CLOSE_WAIT -  
tcp6 649  0 :::217.116.20.:8180 :::84.126.238:57224 
CLOSE_WAIT -

84.126.238 is my external IP at home. The server is a dedicated server 
that rents an external company. At the moment of netstat, I have tomcat 
down, and I'm only connecting to the server via ssh.


Are these connections the problem? How can I close them?

Thanks Philip

I've removed Tomcat, including --purge with apt-get and I've reinstalled,
but I still having the same problem.



What's the result of running:-

netstat -tanp | grep 8180

as root. Surely something is holding that port open?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Philip Wigg
 I've removed Tomcat, including --purge with apt-get and I've reinstalled,
 but I still having the same problem.

What's the result of running:-

netstat -tanp | grep 8180

as root. Surely something is holding that port open?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]