3 Replies Latest reply on Apr 23, 2007 1:29 PM by thomas.diesler

    how to run the jbossws samples?

    danielmesser

      Hi,

      I am running JBoss-4.0.5.GA on linux Suse 10.0.
      I installed jbossws-1.2.0-SP1 using the instructions in the user guide.
      To build the samples I dis the following:
      - unziped the jbossws-samples-1.2.0.SP1.zip file
      - cd jbossws-samples-1.2.0.SP1
      - cp ant.properties.example ant.properties
      - in the ant.properties file:
      - set jboss40.home
      - set jbossws.integration.target=jboss40

      I then ran ant.
      It got most of the third party libraries but failed to compile because the junit library was missing.
      I downloaded junit4.1 and installed it in the thirdparty directory.
      I was then able to build the samples.

      Now, my general question is:
      what do I do to run the tests?

      I am most interested in running the jaxws/webresult sample.

      I tried to run:
      - ant tests
      but I don't see any web services deployed in my $JBOSS_HOME/server/default/deploy directory and I don't see any services in
      http://localhost:8080/jbossws/services

      I also get the following exceptions:
      tests-main:
      [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/reports
      [junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase
      [junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
      [junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
      [junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
      [junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      [junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      [junit] at java.security.AccessController.doPrivileged(Native Method)
      [junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      [junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      [junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      [junit] at java.lang.Thread.run(Thread.java:595)
      [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      [junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      [junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
      [junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      [junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      [junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
      [junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      [junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
      [junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      [junit] at $Proxy0.invoke(Unknown Source)
      [junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
      [junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
      [junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
      [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
      [junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
      [junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.921 sec
      [junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase FAILED
      [junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase
      [junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
      [junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
      [junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
      [junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      [junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      [junit] at java.security.AccessController.doPrivileged(Native Method)
      [junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      [junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      [junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      [junit] at java.lang.Thread.run(Thread.java:595)
      [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      [junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      [junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
      [junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      [junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      [junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
      [junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      [junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
      [junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      [junit] at $Proxy0.invoke(Unknown Source)
      [junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
      [junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
      [junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
      [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
      [junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
      [junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.688 sec
      [junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase FAILED


      Just FYI, here is the output of the build process:
      Buildfile: build.xml

      prepare:
      [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log
      [touch] Creating /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log/test.log
      [echo]
      [echo] -----------------------------------------------
      [echo] jboss.home = /opt/jboss/jboss-4.0.5.GA
      [echo] tomcat.home = /usr/java/tomcat
      [echo] java.home = /usr/java/jdk1.5.0_11/jre
      [echo] endorsed = /opt/jboss/jboss-4.0.5.GA/lib/endorsed
      [echo] excludesfile = tests-jboss40-excludes.txt
      [echo] -----------------------------------------------

      thirdparty-get:

      thirdparty-classpath:

      thirdparty:

      common-classpath:

      jboss-classpath:

      tomcat-classpath:

      init:

      wsconsume:

      compile14:

      compile15:
      [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
      [javac] Compiling 230 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.

      compile:

      copy-resources:
      [copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
      [copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
      [copy] Copying 169 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
      [copy] Copying 28 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
      [copy] Copied 24 empty directories to 11 empty directories under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources

      servicegen:
      [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
      [zip] Building zip: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-process.zip
      [copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
      [servicegen] Apr 2, 2007 11:44:44 AM org.jbpm.JbpmConfiguration getInstance
      [servicegen] INFO: using jbpm configuration resource 'jbpm.cfg.xml'
      [servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
      [servicegen] Apr 2, 2007 11:44:46 AM org.jbpm.bpel.xml.BpelReader readWsdlDocument
      [servicegen] INFO: read wsdl definitions: hello.wsdl
      [servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
      [servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.xml.BpelReader read
      [servicegen] INFO: read bpel process: hello.bpel
      [servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator writeImportedDefinition
      [servicegen] INFO: wrote interface definition: locationURI=hello.wsdl, basePath=/home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl
      [servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
      [servicegen] INFO: wrote binding definition: hello-binding-1.wsdl
      [servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
      [servicegen] INFO: wrote service definition: hello-service.wsdl

      wstools:
      [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
      [move] Moving 2 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
      [copy] Copying 51 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
      [copy] Copying 10 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples
      [copy] Copied 18 empty directories to 1 empty directory under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples

      wsprovide:

      generate-resources:
      [javac] Compiling 2 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes

      main:

      build-samples-jaxrpc:
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder-client.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.sar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc-client.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle-client.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt-client.jar

      build-samples-jaxws:
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-asynchronous.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context-jboss4x.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-exception.war
      [copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes/org/jboss/test/ws/jaxws/samples/handlerchain
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain-client.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181ejb.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-source.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-jaxb.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-oneway.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-jaxb.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-message.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-payload.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-soapbinding.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webmethod.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webparam.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webresult.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-jse.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-jse.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-jse.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-ejb3.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-ejb3.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-ejb3.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-servlet-client.war
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-ejb3-client.jar
      [jar] Warning: skipping jar archive /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar because no files were included.
      [jar] Building MANIFEST-only jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure-client.jar
      [jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-override-client.jar
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wsaddressing.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wseventing.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-encrypt.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-sign.war
      [war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-xop-doclit.war

      BUILD SUCCESSFUL
      Total time: 21 seconds


      Thanks,

      Daniel Messer


        • 1. Re: how to run the jbossws samples?
          thomas.diesler

           

          ant -Dtest=jaxws/samples/webresult test
          


          • 2. Re: how to run the jbossws samples?
            centecbertl

             

            "danielmesser" wrote:
            Hi,
            I also get the following exceptions:
            tests-main:
            [mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/reports
            [junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase
            [junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console



            the JBossWS samples do not work when JMX authentication is activated (as it is when using the JBoss AS 4.0.5 installer per default, and as it anyway should always be!). For using the samples I had to disable JMX Authentication:
            $ diff -u $JBOSS_HOME/server/default/deploy/jmx-invoker-service.xml~ jmx-invoker-service.xml
            --- C:\Programme\jboss-4.0.5.GA/server/default/deploy/jmx-invoker-service.xml~ 2006-12-13 09:27:32.578125000 +0100
            +++ jmx-invoker-service.xml 2007-03-07 19:52:39.132619900 +0100
            @@ -102,8 +102,8 @@
             <return-type>java.lang.Object</return-type>
             <descriptors>
             <interceptors>
            - <interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor"
            - securityDomain="java:/jaas/jmx-console"/>
            + <!-- interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor"
            + securityDomain="java:/jaas/jmx-console"/-->
             </interceptors>
             </descriptors>
             </operation>
            


            • 3. Re: how to run the jbossws samples?
              thomas.diesler