facebook

Problem with ws URL

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

    saif21
    Member

    Hi evry body,
    i had developped a web service project with myeclipse 5.0 and it worked well.
    I tried to do a simple example with myeclipse 5.1.1 but i had probleme with the web service explorer. Firstly, when i click the WSDL MAIN i don’t see the tree that existed before.Secondly, in the right side of the WS explorer when i tape the ws url he told me that the URL is not found.when i explore to find it automatically the window that appear don’t give me the URL when i choose my project.
    Can you help me pleaze.
    thank you in advance.

    #270232 Reply

    Riyad Kalla
    Member

    saif21,
    When you deploy your web service, can you access it from your browser with the URL and adding the ?wsdl argument do you get back the correct WSDL?

    #270257 Reply

    saif21
    Member

    Thank you Mr For your answer.
    Can you write me the hole url that i should tape in my explorer.In fact i never invoked my ws from the explorer.
    the url of my ws is the following :
    http://localhost:8080/Test/WebServices/TestWS
    whath should i add.
    Thank you.

    #270260 Reply

    Riyad Kalla
    Member
    #270291 Reply

    saif21
    Member

    the exception that i have when i try to use the ws explorer is the following :

    IWAB0379E Unable to open http://localhost:8080/SolutionWS/WebServices/TestWS.
    IWAB0135E An unexpected error has occurred.
    WSDLException
    WSDLException: faultCode=OTHER_ERROR: http://localhost:8080/SolutionWS/WebServices/TestWS

    and the one that i have when i access my ws from my browser is :

    La ressource demandée (/SolutionWS/WebServices/TestWS) n’est pas disponible.

    Thank you support-rkalla for your answers.

    #270338 Reply

    Riyad Kalla
    Member

    Did you make sure to deploy your web service? Did you look in the console after the app server deployed it for a URL to access it? What app server are you using?

    #270349 Reply

    saif21
    Member

    Yes i’m sure the ws is deployed.I find it under webapps folder.
    i’m using Appache tomcat 5.

    #270355 Reply

    Riyad Kalla
    Member

    Just because it’s under webapps doesn’t mean the app server is successfully deploying it. TO double check, you can start up Tomcat and paste the *entire* contents of the startup log here for me to see.

    Additionally you can setup the Tomcat manager and login to it and make sure your WS app is loaded and running. Please see the tomcat docs on how to do that.

    #270425 Reply

    saif21
    Member

    You have reason Mr support-rkalla, there was an exception that i didn’t make attention to :

    org.apache.catalina.loader.StandardClassLoader@12d8ecd
    org.codehaus.xfire.transport.http.XFireConfigurableServlet
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    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)
    21 mai 2007 09:26:12 org.apache.catalina.core.StandardContext loadOnStartup
    GRAVE: La servlet /TestWS a généré une exception “load()”
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    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)
    21 mai 2007 09:26:13 org.apache.catalina.loader.WebappClassLoader validateJarFile

    #270427 Reply

    saif21
    Member

    Hi again Mr support-rkalla,
    i had installed tamcat 6 and there was no exception while running it.
    but i had the same problem : i coudn’t invoke my ws.i used tamcat manager and i verified that the project is well deployed. To be more sure, i created a jsp page and i redeployed the project. I coud acces to it but not to tha ws.
    Thank you very much for your answers.

    #270435 Reply

    Riyad Kalla
    Member

    saif21,
    It looks like you are missing the XFire HTTP libraries. Try and open your project properties, go to Java Build Path, then the Libraries tab. From there click “Add Library”, select MyEclipse Library, then scroll down and check the XFire HTTP Library. Hit OK, and shut down Tomcat, then redeploy your project and restart Tomcat and see if the project works now.

    #270443 Reply

    saif21
    Member

    Mr support-rkalla we don’t need http library because i don’t use yet a client.
    I added all the libraries of xFires and i had the same excption.If there is a class that was not found it must be one of the classes added automaticly by Myeclipse.
    But the question is why it didn’t worked even with tomcat 6.i didn’t have an exception with it but i coudn’t invoke my ws.

    #270452 Reply

    Riyad Kalla
    Member

    saif21,
    Sorry for the confusion. I discussed the issue with another developer and we had a few more ideas.

    1) The class that is marked as missing is from the library “XFire 1.2 Core Libraries” in the xfire-spring-1.2.6.jar file, double check that is on your build path.

    2) If you did an upgrade or used an existing Project/Workspace, it’s possible that the library paths are corrupted. Try and go to Window > Prefs > MyEclipse > Project Capabilities > Web Services, and select the different libraries from the drop down, and hit “Restore Defaults”, then hit OK. Then try and redeploy your project and restart Tomcat and see if that fixes the issue.

    #270537 Reply

    saif21
    Member

    I verified that the servlet class exist in the xFire Core Library.
    For your second suggestion it coud not be the cause of the probleme in my case because i tried many time to deploy and invoke new ws and not existed one in the workspace.
    thank you again.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Problem with ws URL

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