Discussion:
Tomcat ports for web services
(too old to reply)
Jo
2007-04-30 08:47:09 UTC
Permalink
hi there:

i m trying to build a very simple web service and it s all fine,
except i cant start the server, i get an error regarding the ports
used by Tomcat 8005 8080 and 8009, so i went to <tomcat instal>/conf/
server.xml
however I still get the same errors.
then i searched for all existing server.xml files, found one in the
eclipse folder
changed it and now I get an error saying that the files dont match,
even thou
they are copies (as in copy an paste)
Any ideas?

Cheers

jo
Jo
2007-04-30 09:35:36 UTC
Permalink
Post by Jo
i m trying to build a very simple web service and it s all fine,
except i cant start the server, i get an error regarding the ports
used by Tomcat 8005 8080 and 8009, so i went to <tomcat instal>/conf/
server.xml
however I still get the same errors.
then i searched for all existing server.xml files, found one in the
eclipse folder
changed it and now I get an error saying that the files dont match,
even thou
they are copies (as in copy an paste)
Any ideas?
Cheers
jo
also with all the test i ve been doing, I cant get other websites to
work
please helpl

jo
Jo
2007-04-30 09:52:38 UTC
Permalink
could it be related to the sysdeo plugin?
the error i get is this:

SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:
258)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:
275)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:
177)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
1500)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
485)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed:
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
1502)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
485)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5625 ms
StandardServer.await: create[8005]: java.net.BindException: Address
already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:
487)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Apr 30, 2007 10:46:30 AM org.apache.coyote.tomcat5.CoyoteConnector
pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:
1417)
at org.apache.catalina.core.StandardService.stop(StandardService.java:
517)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:
2332)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at org.apache.catalina.startup.Catalina
$CatalinaShutdownHook.run(Catalina.java:648)


however I run a netstat and 8080 is NOT in use at the time of start
Jo
2007-05-01 11:35:57 UTC
Permalink
I got the WS working, the problem was the port numbers
and they ahd to e configured in server.xml but not in
the instalation directory, but inside eclipse in the project Explorer
in the server -> Tomcat v5.0 Server @localhost-conf

Cheers

jo
Post by Jo
could it be related to the sysdeo plugin?
SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
258)
at
275)
177)
at
1500)
at
485)
2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.catalina.startup.Catalina start
java.net.BindException: Address already in use: JVM_Bind:8080
at
1502)
at
485)
2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5625 ms
StandardServer.await: create[8005]: java.net.BindException: Address
already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
487)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Apr 30, 2007 10:46:30 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Apr 30, 2007 10:46:30 AM org.apache.coyote.tomcat5.CoyoteConnector
pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at
1417)
517)
2332)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at org.apache.catalina.startup.Catalina
$CatalinaShutdownHook.run(Catalina.java:648)
however I run a netstat and 8080 is NOT in use at the time of start
g***@gmail.com
2014-05-06 13:10:37 UTC
Permalink
Can you write the name of the file that you change to solve?
tnx

Loading...