- This topic has 13 replies, 2 voices, and was last updated 17 years, 6 months ago by saif21.
-
AuthorPosts
-
saif21MemberHi 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.
Riyad KallaMembersaif21,
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?
saif21MemberThank 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.
Riyad KallaMemberI believe it should look like:
http://localhost:8080/Test/WebServices/TestWS?wsdl
saif21Memberthe 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/TestWSand 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.
Riyad KallaMemberDid 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?
saif21MemberYes i’m sure the ws is deployed.I find it under webapps folder.
i’m using Appache tomcat 5.
Riyad KallaMemberJust 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.
saif21MemberYou 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
saif21MemberHi 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.
Riyad KallaMembersaif21,
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.
saif21MemberMr 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.
Riyad KallaMembersaif21,
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.
saif21MemberI 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. -
AuthorPosts