facebook

lifecycle exception error

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #313886 Reply

    Sumithra
    Member

    Sir,
    I’m sumithra. For my academic porject i’m ME ide. I’ve created RESTful web services using JAX-RS support in ME. It was working well with your forum support.
    but now i’m getting the below said error ,which i didnt encounter earlier.

    “LifecycleException: service.getName(): “Catalina”; Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind”

    I couldnt proceed with my work further because of this error.. So kindly help me as soon as possible..

    Thank u in advance…

    #313888 Reply

    support-swapna
    Moderator

    Sumithra,

    The only reason the exception above would be thrown is if Tomcat is being blocked from starting by another process. Things like permission issues can also prevent it from running.

    1. I assume you are working with Tomcat to run the Webservice. Right?
    2. Can you make sure that the ports for Tomcat are not already in use (by VMware for example)?. Use netstat -ano and check the port.
    3. Can you check your Windows firewall to make sure those ports are available.
    4. Can you also check if the permissions on the folders have been changed?It might be that Tomcat is unable to write to the data or work folders .

    Let us know it works for you.

    #313900 Reply

    Sumithra
    Member

    hi…

    I changed the port no to 80 and the server got started without error… but as i’m doing restful services… i’m getting the uri as http://localhost:8080/Services/.. for the restful services i’m creating
    where should i change that default port no in ME ide.
    I’m using standalone Tomcat 6.0 and not myeclipse Tomcat…

    thank u..

    #313901 Reply

    Sumithra
    Member

    hi…

    I changed the port no to 80 and the server got started without error… but as i’m doing restful services… i’m getting the uri as http://localhost:8080/Services/.. for the restful services i’m creating
    where should i change that default port no in ME ide.
    I’m using standalone Tomcat 6.0 and not myeclipse Tomcat…

    thank u..

    #313931 Reply

    support-swapna
    Moderator

    Sumithra,

    Here is how you can change the default port of Tomcat :

    1. Locate the server.xml in {Tomcat installation folder}\ conf \
    2. Locate the following statement :

    <!– Define a non-SSL HTTP/1.1 Connector on port 8080 –>
    <Connector port=”8080″ … />
    By changing this 8080 value of port attribute, server would start listening on new port number.

    <Connector port=”8081″ … />

    3. After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to activate the change.

    Hope this helps.

    #313933 Reply

    Sumithra
    Member

    Hi,
    As I mentioned earlier I’ve changed the default port no of standalone tomcat in the installation folder. The problem is the RESTful services I’ve created using JAX-RS(built-in support in ME(Myeclipse) providing the automatical Wadl uri as http://localhost:8080/Services/&#8230;.wadl.
    so that i couldnt run the services. how to change the port no in ME.

    #313936 Reply

    support-swapna
    Moderator

    Sumithra,

    Sorry for the confusion.
    Here is a post which discusses about changing the port for webservices. Please try to work on the lines discussed in it.
    http://www.myeclipseide.com/PNphpBB2-printview-t-25576-start-0.html

    Let us know how it helps you.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: lifecycle exception error

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