[jboss-user] [JBoss Web Services] New message: "Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu"

Neil McFarlane do-not-reply at jboss.com
Tue Mar 2 21:45:59 EST 2010

User development,

A new message was posted in the thread "WS-RM Exception: cannot be cast to org.jboss.ws.core.StubExt":


Author  : Neil McFarlane
Profile : http://community.jboss.org/people/Oberiko

It's almost certainly because of endorsement issues; JBossWS clients w/ WS-RM have a bit of a "gotcha" in this regard. 
It is an easy fix though, you need to endorse the JBoss AS "endorsed" JARs.  Assuming you're using Eclipse...
1. *Properties > Run/Debug Settings > (select your project) > Edit > Arguments > VM arguments* 
2. Add the following: -Djava.endorsed.dirs=${JBOSS_HOME}\lib\endorsed 
Note that ${JBOSS_HOME} is just a placeholder, you'll have to use your actual path to the endorsed JARs.


To reply to this message visit the message page: http://community.jboss.org/message/529518#529518

More information about the jboss-user mailing list