Link to home
Start Free TrialLog in
Avatar of yapsing
yapsingFlag for Malaysia

asked on

Setting up Tomcat: Log report included.

hi all,

I have a problem running tomcat on a notebook pc. it was able to run on my home desktop. all the settings are similar but i'm not able to run it. i checked the log and this is what is shows me. your kind attention is greatly appreciated.

Jul 4, 2006 2:57:04 PM 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: C:\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel
Jul 4, 2006 2:57:04 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 4, 2006 2:57:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1402 ms
Jul 4, 2006 2:57:04 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 4, 2006 2:57:04 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jul 4, 2006 2:57:05 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 4, 2006 2:57:07 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 4, 2006 2:57:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 4, 2006 2:57:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40  config=null
Jul 4, 2006 2:57:08 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 4, 2006 2:57:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4356 ms
Jul 4, 2006 2:57:09 PM 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:372)
      at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
      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.start(Bootstrap.java:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

thanks
Avatar of tang_tzuchi
tang_tzuchi
Flag of Malaysia image

Did your notebook pc have another webservice run on the same port as the Tomcat Common port or others program which running the same port as Tomcat catalina default port? (Exp: IIS, etc).

Avatar of yapsing

ASKER

no, but my company server is. and i'm connected to it as long i'm in the company. i tried using different ports like 8081
I think that if you change the port of your Tomcat, it should be okay. Am I right?

David
Avatar of pankilmpatel
pankilmpatel

Hi,

Well, obviously, port is in use... On Windows XP type "netstat -a -n -o" to find out which PID is using this port. Then find the PID in the TaskManager... Then kill the process :)

Regards,
Pankil Patel
Hi continue to previous answer..

After killing process which use your port no. Then you start tomcat.

or

You can change the port no which is not used in the OS.
Avatar of yapsing

ASKER

hi all,

sori for the late reply. i don't have internet connection at home.

the server which all the PCs in the building need to set proxy settings for faster surfing and access the intranet application or something like that. we have to use proxy server settings and the port is set to 8080. if not we will not be able to access the app in the local server.

one of my colleague used the same settings and still able to load the welcome page. he used the initial port value determined during tomcat installation and his works just fine. both using port 8080. any particular reason for that?

he is using ver 5.5.15, i'm using ver 5.5.17 at home. i do not have internet at home thats why i need to setup a developing server. i also need to test the app before loading.any website i can refer to?

can i change the port number directly by accessing the server.xml? what other changes i need to make after i change the port number? sorry for the long explaination. some of you might not be clear about the situaton. what are the port numbers i could use? as i know some of the port are reserved for some app. i did change the port in server.xml but it still wouldn't load.

its my 1st time encountering this kind of problem.
Yes,

You can just change your Tomcat port from server.xml. Let me know if you need some helps on it.

David
Avatar of yapsing

ASKER

David: after doing the netstat scan, i found that many stations is using the same ip address 127.0.0.1 will that affect anything? i changed the port un server.xml and during installation saperately but it still wouldn't work. i also checked the website u supplied and its still not helping.
ASKER CERTIFIED SOLUTION
Avatar of Acton Wang
Acton Wang
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, I was busy in recent day. Try what Acton suggests you and get back to us if it is still not working

Thanks Acton

David
Avatar of yapsing

ASKER

thanks acton. its working fine now.