- This topic has 8 replies, 2 voices, and was last updated 18 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
Mark SandersMemberSystem 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.20Tomcat 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.htmlI 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
Riyad KallaMemberThe 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.
Mark SandersMemberTa Da! 😀
As a newbie – I have just completed and tested my first JSP (ever) using Tomcat and MyEclipse.
Thank you for your help!!!
Riyad KallaMemberVery cool, glad it’s working.
Mark SandersMemberHope 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/WebHelloI don’t know why the site no longer works.
Mark SandersMemberNever Mind!
I’m getting it. I just need to practice.
thanks again.
Riyad KallaMemberI 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)
Mark SandersMemberI 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. 😀
Riyad KallaMemberNo problem, I’m glad you are up and running.
-
AuthorPosts