Which version of JBoss AS are you using? I assume you are using JBoss WS 1.2, and that you are using wsrunclient to run the client. Most likely, there is a missing jar from the classpath (I found that the wsdl4j.jar was missing, I'm using JBoss AS 5.0 beta 2 (or actually, the svn trunk from Monday). Anyway, the missing file is in jboss-saaj.jar, or at least that is where I found it.
Thanks Peter for your help.
I use JBoss 4.0.5 GA and WS 1.2.
I try with saaj.jar but i always have an exception, a soap exception:
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at $Proxy15.echo(Unknown Source)
Caused by: javax.xml.soap.SOAPException: Could not transmit message
at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnection Impl.java:221)
... 2 more
This is only a part of the exception... I use wsrunclient...
Thanks for help.
That error I have not seen. Is the app server running?
I don't understand your point : i have only jboss running (eclipse 3.2 closed) and i always have this exception...
It seems to be a soap transmission message pb.
As for the syntax for the wsrunclient with jboss-saaj.jar
I only use wsrunclient echo.EchoClient because
when i try -classpath jboss-saaj.jar, i have a NoClassDefFoundError
(i have jboss-saaj.jar in my path)
JBOSS_HOME/client/jboss-saaj.jar javax/xml/soap/FactoryLoader$PropertyAccessAction.class javax/xml/soap/FactoryLoader$PropertyFileAccessAction.class javax/xml/soap/FactoryLoader.class
Do you execute wsrunclient from the JBOSS_HOME/bin directory.
If not you'd need to export JBOSS_HOME.