facebook

[Closed] Tomcat5 Server Status Stopped in MyEclipse

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #261904 Reply

    Mark Sanders
    Member

    System info
    Windows XP SP2
    ISS disabled
    MyEclipse 5.0.1 GA / eclipse 3.2
    Java JDK update 9 (jdk1.5.0_09, jre1.5.0_09)
    Tomcat 5.5.20

    Tomcat server shows as stopped in the in the Servers View. Tomcat is runnig on windows and I can open http://localhost/ and run the different JSP examples without any problems.

    I used the following website as my guide to configure Tomcat on XP. http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Java-Home

    I used the following to configure Tomcat in MyEclipse. ( Step 6 )
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/appservers/index.html

    I created a simple web project in MyEclipase called WebHello and copied the Hello.java file from the webiste above. This is the what I want to use to test through MyEclipse to make sure all is running.

    The console gives the following information when I try to start the server from within MyEclipse:
    thanks,
    ——————————————–
    Nov 15, 2006 10:59:20 AM org.apache.coyote.http11.Http11AprProtocol init
    SEVERE: Error initializing endpoint
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:575)
    at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:115)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
    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.load(Bootstrap.java:266)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
    Nov 15, 2006 10:59:20 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
    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.load(Bootstrap.java:266)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
    Nov 15, 2006 10:59:20 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1032 ms
    Nov 15, 2006 10:59:20 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Nov 15, 2006 10:59:20 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
    Nov 15, 2006 10:59:20 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Nov 15, 2006 10:59:21 AM org.apache.catalina.core.ApplicationContext log
    INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    Nov 15, 2006 10:59:21 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Nov 15, 2006 10:59:21 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Nov 15, 2006 10:59:22 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Nov 15, 2006 10:59:22 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Nov 15, 2006 10:59:22 AM org.apache.coyote.http11.Http11AprProtocol start
    SEVERE: Error starting endpoint
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:575)
    at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:685)
    at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:145)
    at org.apache.catalina.connector.Connector.start(Connector.java:1089)
    at org.apache.catalina.core.StandardService.start(StandardService.java:459)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    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)
    Nov 15, 2006 10:59:22 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): “Catalina”; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    at org.apache.catalina.connector.Connector.start(Connector.java:1096)
    at org.apache.catalina.core.StandardService.start(StandardService.java:459)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    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)
    Nov 15, 2006 10:59:22 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2173 ms
    Nov 15, 2006 10:59:22 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: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)
    Nov 15, 2006 10:59:22 AM org.apache.coyote.http11.Http11AprProtocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-80
    Nov 15, 2006 10:59:22 AM org.apache.coyote.ajp.AjpAprProtocol pause
    INFO: Pausing Coyote AJP/1.3 on ajp-8009

    #261906 Reply

    Riyad Kalla
    Member

    The problem is that when you installed Tomcat, you used the .exe installer and it installed as a System service. So Windows is actually running Tomcat, and MyEclipse cannot start it up because port 8080 is already bound to the running instance.

    Please go to Control Panel > Administrative Tools > Services, find Apache Tomcat, stop it, and set it to “Manual” start, otherwise it will restart every time you reboot.

    #261929 Reply

    Mark Sanders
    Member

    Ta Da! 😀

    As a newbie – I have just completed and tested my first JSP (ever) using Tomcat and MyEclipse.

    Thank you for your help!!!

    #261941 Reply

    Riyad Kalla
    Member

    Very cool, glad it’s working.

    #261944 Reply

    Mark Sanders
    Member

    Hope you don’t mind me asking this in this thread…

    When I build in the workbench folder and just copy the .class file to the install_dir/webapps/ROOT/WEB-INF/classes folder and run
    http://localhost/HelloServlet it works fine.

    When I use MyEclipse to deploy to
    install_dir/webapps/WebHello

    I don’t know why the site no longer works.

    #261950 Reply

    Mark Sanders
    Member

    Never Mind!

    I’m getting it. I just need to practice.

    thanks again.

    #261952 Reply

    Riyad Kalla
    Member

    I don’t know if this was a mistype, but in the Drag and Drop case, you are deploying to HelloServlet, but in the MyEclipse case, you are deploying to a folder called WebHello… so that’s two separate applications.

    Try:
    http://localhost:8080/WebHello

    (assuming you are running Tomcat on port 8080)

    #261954 Reply

    Mark Sanders
    Member

    I now understand that I was doing two different things.

    What I am doing now, and from this point forward, is using MyEclipse to deploy. I have created an index.html file and using that as my home page and creating links.

    All is working fine now. Sorry to bother you with the deployment issue. that’s my fault for not being a little more patient and doing a little more checking. 😳

    Thanks again. 😀

    #261955 Reply

    Riyad Kalla
    Member

    No problem, I’m glad you are up and running.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: [Closed] Tomcat5 Server Status Stopped in MyEclipse

You must be logged in to post in the forum log in