facebook

basic web service startup & access error(s)

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

    Created a basic web service and client – Started the service under tomcat.
    BTW : We’re Running jre 1.6 – web service says that it needs JRE 1.5….. (Is there a work around.)

    ON starting the web service :

    com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
    at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:103)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1182)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:161)
    at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:698)

    Accessed the web service from the client and got the following :

    Exception in thread “main” com.sun.xml.ws.client.ClientTransportException: HTTP Status-Code 404: Not Found – /fvisbt_w2/TestWSPort
    at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:219)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:149)
    at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:118)
    at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
    at com.sun.xml.ws.client.Stub.process(Stub.java:248)
    at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
    at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
    at $Proxy34.getData(Unknown Source)
    at com.idc.fvisbt.test.WebServiceClient.main(WebServiceClient.java:13)

    Suggestions /
    Let me know if you need more info.
    Thx
    G

    #322989 Reply

    support-swapna
    Moderator

    gmumford,

    Sorry that you are seeing this issue with MyEclipse.

    Can you answer some more questions for us ?

    1) Can you share the Build ID from Help > About MyEclipse Enterprise Edition > Build ID?

    2) Are you deploying to MyEclipse Tomcat or external tomcat ? Can you check if you see the same issue when publishing to external tomcat ?

    3) Can you build the project first before publishing it and check if the issue persists?

    4) Please list out exact steps you followed for us to be able to replicate the issue at our end.

    #323003 Reply

    —- Build info :
    MyEclipse Enterprise Workbench

    Version: 9.1
    Build id: 9.1-20110701

    (c) Copyright Genuitec, L.L.C. 2000-2011. All rights reserved.
    Visit http://www.myeclipseide.com/

    This product includes software developed by the following
    Eclipse Foundation http://www.eclipse.org/
    Apache Software Foundation http://www.apache.org/

    —- Yes, deploying to the internal tomcat.

    —– Project builds properly with 1 warming :
    Description Resource Path Location Type
    No grammar constraints (DTD or XML schema) detected for the document. sun-jaxws.xml /fvisbt_w2/WebRoot/WEB-INF line 1 XML Problem

    Followed the tutorial :
    http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/

    Jaxws 2.1 libraries added….

    Bottom up web service creation.
    Run as Myeclipse Server application

    Web service Client creation.
    Run as Java application

    Hope that gives you what you need….

    #323039 Reply

    support-swapna
    Moderator

    gmumford,

    Thank you for the details. I could not replicate the issue at my end following the tutorial.

    1) Can you share the installation details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.

    2) Can you clarify if you tried to follow the REST tutorial, instead, given the error message (it refers to jersey, which is Sun’s reference implementation for REST) ?

    3) Did you deviate from the tutorial at any point ? If yes then please let us know what exactly you did.

    4) Take a look at this thread which discusses the same problem :
    http://www.coderanch.com/t/465479/Web-Services/java/Deployment-Client-Simple-Jax-ws

    If you have an external Tomcat, can you please deploy the project to it and check if you still see the issue ?

    5) For the JRE 1.5 issue, the work around is to remove the Java EE 6 libraries from the project > Build Path > Libraries and add Java EE 5 libraries from Add Library > MyEclipse Libraries. Close and Open the project.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: basic web service startup & access error(s)

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