if you do "netstat -l" you should see that there is already an app using port 80. Either that or you are trying to run Tomcat not as root which will be denied since ports 0 - 1024 are restricted to root only.

Ramsay


Lisa Foister 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]




============================================================================
A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINT BASING VIEW BASINGSTOKE HAMPSHIRE RG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 ============================================================================
The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). ============================================================================
If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED] ============================================================================

Reply via email to