your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name.
I'm having the same problem with jboss-4.2.2.GA + jbossws-cxf-3.0.2.GA and my path doesn't contain any space.
diego@localhost:~/bin/jboss-4.2.2.GA/client$ ../bin/wsconsume.sh -k -p ar.com.selenca.ws.client -o /home/diego/dev/java/examples-workspace/jbossws-client-example/src/main/java/ http://127.0.0.1:8080/jbossws-server-example-1.0-SNAPSHOT/ProfileMgmtBean?wsdl /home/diego/bin/jboss-4.2.2.GA/client Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl ... Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl ...
looking at wsconsume.sh it loads into the classpath some libraries that doesn't exist in the 'client' folder from the AS. It looks for
and I've had to rename jbossws-metro-client.jar to jbossws-metro-client.jar in that script.
Should those libraries be in the jbossws-cxf distribution?
Yo lo solucioné corrigiendo seteando correctamente la variable que indica donde está el jboss, a saber, set JBOSS_HOME=C:\servers\jboss-eap-5.0\jboss-as
Luego de esto se invoca al wsConsume