- This topic has 5 replies, 2 voices, and was last updated 16 years, 6 months ago by Loyal Water.
-
AuthorPosts
-
wavstudioMemberhi,
i have create a web service project with xfire,in tomcat 5.5,it works fine.
now i want to deploy this project to websphare,but xfire can’t start,the log is
Error initializing XFireServlet,i find some method from internet and try to solve
this problem.i think this caused by jdom of websphare,and i find that if i replace
jdom.jar of websphare with jdom1.0.jar,the project works fine,but in my project,
the replacement is not allowed.i also try to solve this problem by set the classload
method of application to PARENT_LAST according the statement in manual of xfire
,but always i get the same error message in log of websphare.my environment is:
windows xp,jdk 1.4,myeclipse 5.5.1 GA,websphare 6.x,xfire 1.2.6can you tell me what can i do to solve this problem?
Loyal WaterMemberCan you upgrade to MyEclipse Eclipse 6.0.1 and test this again. I just checked the XFire Libraries in MyEclipse 6.0.1 and saw the jdom1.0.jar in the list. I guess upgrading to MyEclipse 6.0.1 should fix this issue.
wavstudioMemberi don’t think your solution can solve this problem,because the key point of the problem is version conflict between jdom.jar of websphare and jdom1.0.jar,if i replace jdom.jar of websphare with jdom1.0 or simply remove jdom.jar of
websphare,my project works fine,but these change are not allowed in my project.
Loyal WaterMemberIm sorry you ran into this issue but I just checked with my dev team and it seems like this is an XFire/WebSphere issue and the workaround that you have tried is the only one we are aware of. A while ago another user had the same issue and changing the classloader priority (like you did) DID fix the problem… so you might have just typed it wrong or something? You should double check the settings in websphere again.
wavstudioMemberthanks for your help,i have solved this issue.my solution is:
1.set the class load policy of application to PARENT_LAST
2.add two shared library named jdom1.0 and jaxen and set their class path to the absolutely path of jar file
3.set library reference of application to these two shared library.
Loyal WaterMemberThank you for posting the solution.
-
AuthorPosts