- This topic has 7 replies, 2 voices, and was last updated 16 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
dynowebMemberI’m trying to run through the Xfire sample at
http://www.myeclipseide.com/documentation/quickstarts/webservices/
and when I try to deploy it’s not able to find the classjava.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
Is there a missing step to get that jar included in a WebService project?
Or is this example not compatible with my environment?
I’m running java version “1.6.0_04”
MyEclipse Enterprise Workbench Version: 6.0.1 GAThanks
Rick
Riyad KallaMemberRick,
There was a bug in previous release of MyEclipse that forgot to add the HTTP XFire libs. You can fix that by opening your project properties, going to Java Build Path then Libraries, clicking Add Library, selecting MyEclipse then adding the XFire HTTP library.Then you should probably redeploy.
dynowebMemberRiyad, I added XFire 1.2 HTTP Client Libraries, JAXB2 Libraries, Security Libraries & Miscellaneous Libraries and still get the same error.
org.apache.catalina.loader.StandardClassLoader@11e1e67
org.codehaus.xfire.transport.http.XFireConfigurableServlet
java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)I have created another XFire project. In this project I include the MyEclipse Library – XFire 1.2 Core Libraries, in addition to that library, I have added an external reference to these jar files: xbean-spring-2.8.jar, xfire-all-1.2.6.jar and xfire-core-1.2.6.jar. With these added jar files, I can get the services to publish to Tomcat 6 and I am able to see the services. I couldn’t find those jar files in the MyEclipse XFire libraries.
Riyad KallaMemberIn the first project, did you make sure to deploy it after changing up the libraries? (also make sure Tomcat was shut down before you redeployed it?)
Also, I believe “publish” is a WTP term, are you using WTP to handle deployment or are you using MyEclipse? (this might explain some of the inconsistency if you were)
dynowebMemberI used the “Deploy MyEclipse J2EE Project To Server” button the toolbar. I also, stopped Tomcat, undployed the application, verified that the web application was no longer in the webapps folder, then deployed the project, then started Tomcat 6.
There are not any jar files in the project that have this path: org.codehaus.xfire
Nor a class in any jar named XFireConfigurableServlet
What MyEclipse Library and Jar are you expecting to include this class?
I have 5 XFire Libraries included as part of the project.
<?xml version=”1.0″ encoding=”UTF-8″?>
<classpath>
<classpathentry kind=”src” path=”src”/>
<classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_CORE”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_HTTP_CLIENT”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_JAXB2″/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_XMLBEANS”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_SECURITY”/>
<classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.ws.xfire.MYECLIPSE_XFIRE_MISC”/>
<classpathentry kind=”output” path=”WebContent/WEB-INF/classes”/>
</classpath>
Riyad KallaMemberI used the “Deploy MyEclipse J2EE Project To Server” button the toolbar. I also, stopped Tomcat, undployed the application, verified that the web application was no longer in the webapps folder, then deployed the project, then started Tomcat 6.
Perfect, that all sounds good.
There are not any jar files in the project that have this path: org.codehaus.xfire
You should be able to expand XFire core and see all the codehaus classes, like below:
If this doesn’t look like yuor project, can you export your project using File > Export > Archive and send it to me to review?
Please email it to support@genuitec.com ATTN Riyad, with a liink to this thread for reference. I’ll see what is going on with it.
Attachments:
You must be logged in to view attached files.
dynowebMemberThat would explains the differences we have, I don’t have any of the xfire jar files in that library except for xfire-jsr181-api-1.0-M1.jar. I’m not sure how this got out of sync. I’ve updated my Library and that took care of it.
Thanks for your help
Riyad KallaMemberAhhh. If that happens again, you can nav back to Window > Prefs > MyEclipse > Project Caps > XFire, and hit the “Restore Defaults” button, that will fix it all back up to the default shipping libraries.
-
AuthorPosts