jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Tomcat 6 startup error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6 startup error " Watch "Tomcat 6 startup error " New topic
Author

Tomcat 6 startup error

pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
Tomcat 6 startup error

when I'm starting tomcat from eclipse , i'm seeing this error in the eclipse console:
please help me to fix this problem at the earliest thank You


18, 2012 11:29:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_06\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
Jul 18, 2012 11:29:49 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:7070
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Jul 18, 2012 11:29:49 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:7070
at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Jul 18, 2012 11:29:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 881 ms
Jul 18, 2012 11:29:49 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 18, 2012 11:29:49 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 18, 2012 11:29:55 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace17July2012\paysoham\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 18, 2012 11:29:58 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace05JUL2012\sohamLife_PREINT_10JUL12\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 18, 2012 11:30:01 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace05JUL2012\sohamPay05JUL2012\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 18, 2012 11:30:04 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace03May2012\sohamPay27JUN2012\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 18, 2012 11:30:07 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 18, 2012 11:30:07 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 18, 2012 11:30:07 AM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:7070
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
at org.apache.catalina.connector.Connector.start(Connector.java:1132)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 18, 2012 11:30:07 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:7070
at org.apache.catalina.connector.Connector.start(Connector.java:1139)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 18, 2012 11:30:07 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17911 ms
Jul 18, 2012 11:30:07 AM org.apache.catalina.core.StandardServer await
SEVERE: 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:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 18, 2012 11:30:07 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-7070
Jul 18, 2012 11:30:07 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:679)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659)


harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

This means your port is used by some other process
find out using
netstat -tanp | grep 7070
either kill this process and restart your server or change tomcat port in server.xml

<Connector port="7070" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
thanks for quick reply harshvardhan ojha but

where do I type "netstat -tanp | grep 7070 " to check who's using it or
how do I kill.

i'm using windows XP SP2, tomcat 6, eclipse 3.2.1

I'm new to tomcat n eclipe thank you
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

first run
netstat -a -o -n this will give all active ports list
next get the process id which is listening on 7070, from fifth column
then do
taskkill /f /pid 1234(this is process id in windows),
I hope this will solve your problem.
pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
@harshvardhan ojha

try to kill PID " TCP 0.0.0.0:7070 0.0.0.0:0 LISTENING 3728" but its throwing error in windows "the application failed to start because framedyn.dll was not found. Re-installing the application may fix this problem"

I guess this is the issue with OS ?

is there any other way to kill this process ?
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

%SYSTEMROOT%\System32\Wbem\Framedyn.dll file might be missing or damaged.
take support from here - support.microsoft.com/kb/319114
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

Instead of trying to kill things, which you may or may not need, just change the port you are starting up on. That is just a config change.


Please ignore post, I have no idea what I am talking about.
pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
I changed the port no. to 7071 , still getting the following error below:




Jul 19, 2012 10:00:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_06\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
Jul 19, 2012 10:00:49 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-7071
Jul 19, 2012 10:00:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 956 ms
Jul 19, 2012 10:00:49 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 19, 2012 10:00:49 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 19, 2012 10:00:55 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace17July2012\paysoham\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 19, 2012 10:00:58 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace05JUL2012\sohamLife_PREINT_10JUL12\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 19, 2012 10:01:01 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace05JUL2012\sohamPay05JUL2012\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 19, 2012 10:01:04 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\workspace03May2012\sohamPay27JUN2012\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Jul 19, 2012 10:01:07 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 19, 2012 10:01:07 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 19, 2012 10:01:07 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-7071
Jul 19, 2012 10:01:07 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 19, 2012 10:01:07 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63 config=null
Jul 19, 2012 10:01:07 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18468 ms
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

What error?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
after changing the port no to 7071 i'm still not able to login to my application, in eclipse console it's showing the this message. not able to understand what might be the problem ???
pradeepn pradeep
Greenhorn

Joined: Jul 18, 2012
Posts: 6
thanks for all your support. problem fixed.

The problem was in connecting to DATABASE
 
jQuery in Action, 2nd edition
 
subject: Tomcat 6 startup error
 
Similar Threads
404 error when application is runned on tomcat server.
Tomcat Server Won't Start
Apache Tomcat 6.0 for Windows error
HTTP Status 404 - am I on the right port: 8080?
java.net.BindException: Address already in use: JVM_Bind:8080