Tomcat is trying to bind to port 80 but doesn't have the permission to do so. Are you running these scripts as root?


Check /path/to/tomcat/conf/server.xml and make sure that CoyoteConnector is listening on port 8080 (the default) instead of 80. You can always change it later, and there are no permission restrictions on port 8080.

John

On Fri, 21 Mar 2003 12:16:38 -0500, Lisa Foister <[EMAIL PROTECTED]> wrote:

hmm... ok, here's what's in the log (this should be exactly one start and stop -- the first 2 or 3 entries are from the start, the rest from the stop). I don't seem to be getting any errors at all on startup. No clue what "Error initializing endpoint" means, but it seems to be my first actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo nnector.
java)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: LifecycleException: Protocol handler initialization failed: jav
a.net.BindException: Permission denied:80
LifecycleException: Protocol handler initialization failed: java.net.BindExcept
ion: Permission denied:80
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException: This server has not yet been started
LifecycleException: This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] wrote:
Look for /var/tomcat4/logs/catalina.out. There will be an error message
in there of what went wrong.

-Tim

Lisa Foister wrote:
> I'm very much a Linux newbie, so I may be missing something obvious
here,
> but I think I've got the J2SDK set up right, and I thought I had Tomcat
set
> up right. I've completely shut down my Apache server so I don't have
to
> deal with the interactions, and although I would prefer to be running
> Tomcat on port 80, at the moment I'd be happy to have it running on any > port.
>
> Every time I try to start Tomcat as a service (logged in as root, if it > makes a difference) I get "Starting tomcat4: OK ]" as if it were
> running, but then there is no process running with a name that even
> remotely makes me think it might be Tomcat running. Then when I stop
the
> service, I get the following:
>
> Stopping tomcat4: Using CATALINA_BASE: /var/tomcat4
> Using CATALINA_HOME: /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using JAVA_HOME: /usr/java/j2sdk1.4.1_02
> Catalina.stop: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:426)
> at java.net.Socket.connect(Socket.java:376)
> at java.net.Socket.<init>(Socket.java:291)
> at java.net.Socket.<init>(Socket.java:119)
> at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
> at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
> at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> FAILED]
>
> Any advice as to what might be causing my problem would be greatly
> appreciated.
>
> Lisa
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to