facebook

SEVERE: Error initializing endpoint

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #311376 Reply

    Greg Soulsby
    Member

    Have tried for hours to get the contract first web service tutorial to work with no progress. Was under Ubunto so I thought I would try under windows.

    1) Create a new web project, no problem
    2) Import wsdl from your site, no problem
    3) myEclipse->Run as web service get the following in consol

    Thoughts?

    Regards

    17-Sep-2010 07:47:23 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:\Users\IBP\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Users\IBP\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.6.0.me201007231647\tomcat\bin
    17-Sep-2010 07:47:23 org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.SocketException: Unrecognized Windows Sockets error: 0: 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 java.net.ServerSocket.<init>(ServerSocket.java:141)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
    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)
    17-Sep-2010 07:47:23 org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    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)
    17-Sep-2010 07:47:23 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 420 ms
    17-Sep-2010 07:47:23 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    17-Sep-2010 07:47:23 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
    17-Sep-2010 07:47:28 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    No properties path set – looking for transactions.properties in classpath…
    transactions.properties not found – looking for jta.properties in classpath…
    Using init file: /C:/Users/IBP/Workspaces/MyEclipse%20for%20Spring%208.6/.metadata/.me_tcat/webapps/AAA2/WEB-INF/classes/jta.properties
    17-Sep-2010 07:47:40 org.apache.cxf.endpoint.ServerImpl initDestination
    INFO: Setting the server’s publish address to be /IGreeterEndpoint
    17-Sep-2010 07:47:41 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring FrameworkServlet ‘AAA2 Servlet’
    17-Sep-2010 07:47:41 org.apache.cxf.transport.servlet.CXFServlet updateContext
    INFO: Load the bus with application context
    2010-09-17 07:47:41,860 INFO [main] AbstractApplicationContext – Refreshing org.apache.cxf.bus.spring.BusApplicationContext@169a1c5: display name [org.apache.cxf.bus.spring.BusApplicationContext@169a1c5]; startup date [Fri Sep 17 07:47:41 BST 2010]; parent: org.springframework.web.context.support.XmlWebApplicationContext@fa39d7
    17-Sep-2010 07:47:42 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
    INFO: No cxf.xml configuration file detected, relying on defaults.
    2010-09-17 07:47:42,060 INFO [main] AbstractApplicationContext – Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@169a1c5]: org.springframework.beans.factory.support.DefaultListableBeanFactory@e29f36
    17-Sep-2010 07:47:42 org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory
    INFO: Servlet transport factory already registered
    17-Sep-2010 07:47:42 org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.SocketException: Unrecognized Windows Sockets error: 0: 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 java.net.ServerSocket.<init>(ServerSocket.java:141)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
    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)
    17-Sep-2010 07:47:42 org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): “Catalina”; Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    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)
    17-Sep-2010 07:47:42 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 18801 ms

    #311396 Reply

    davemeurer
    Member

    Hello,

    3) myEclipse->Run as web service get the following in consol

    Do you mean, Run As > MyEclipse Server Application? If not, I don’t see a Run as web service option – could you point me in the right direction, please?

    If you are following the tutorial, there is one hiccup I found:
    In Section 7, step 2 it mentions opening the JAX-WS tab and then opening the GreeterImpl.java file. Then Clicking the “Open Web Service Explorer” link. When tried the link, I received an error that it couldn’t open http://localhost:8080/HellowWorldApp/jaxws/GreeterImpl?wsdl. It looks like that link is loading the wrong URL, because the correct wsdl URL should be http://localhost:8080/HelloWorldApp/jaxws/IGreeterEndpoint?wsdl (which is specified later in the tutorial)

    So, if using the Web Services Explorer, paste the http://localhost:8080/HelloWorldApp/jaxws/IGreeterEndpoint?wsdl URL into the browse box and click go. That should show you the operations.

    Let me know if this helps.
    Dave

    #315285 Reply

    trevorns
    Member

    I had the same error which I had SKYPE running in the background. Disabled and server came back up.

    Trevor

    #315372 Reply

    jkennedy
    Member

    Trevor,
    Thanks for posting this we appreciate it.

    Jack

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: SEVERE: Error initializing endpoint

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