5 Replies Latest reply on Mar 9, 2007 5:56 AM by Heiko Braun

    Exception client / User guide Echo sample

    JOURNADE Valerie Newbie

      I exactly follow the user guide instructions and i have my WS Echo, the client and all the described classes.
      But, when running my EchoClient, i encounter the following exception :

      Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/FactoryLoader
      at javax.xml.ws.spi.Provider.provider(Provider.java:91)
      at javax.xml.ws.Service.(Service.java:83)
      at echo.EchoService.(EchoService.java:49)
      at echo.EchoClient.main(EchoClient.java:7)

      It seems to be a pb with the EchoService constructor but i don't understand why

      Thanks for helping

        • 1. Re: Exception client / User guide Echo sample
          Peter Johnson Master

          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.

          • 2. Re: Exception client / User guide Echo sample
            JOURNADE Valerie Newbie

            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)
            at echo.EchoClient.main(EchoClient.java:9)
            Caused by: javax.xml.soap.SOAPException: Could not transmit message
            at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnection Impl.java:221)
            at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:109)
            at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:309)
            at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:185)
            at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:163)
            at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:149)
            ... 2 more
            This is only a part of the exception... I use wsrunclient...
            Thanks for help.

            • 3. Re: Exception client / User guide Echo sample
              Peter Johnson Master

              That error I have not seen. Is the app server running?

              • 4. Re: Exception client / User guide Echo sample
                JOURNADE Valerie Newbie

                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)

                • 5. Re: Exception client / User guide Echo sample
                  Heiko Braun Master

                  It's in

                  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.