1 2 Previous Next 28 Replies Latest reply on Mar 28, 2007 3:33 PM by Jason Greene

    Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.5

    Thomas Diesler Master

      Folks,

      last week I succeded to implement porting layers for jboss50, jboss42, jboss40 on a common jbossws code base. This means that from now on we can work on jbossws/trunk again, which should reduce code maintenance significantly (branch/jbossws-1.0. is dead)

      jbossws-1.2.0.CR2 was release over the weekend and I updated

      http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstall

      to describe the new deployment procedure.

      In JIRA I moved all 1.0.5 and 2.0.0.CR3 issues to 1.2.0, which is due 1-Feb-2007.
      I will send a more detailed mail related to the 1.2.0 release later today.

      cheers

        • 1. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
          Darran Lofthouse Master

          I can get JBossWS to deploy to JBoss 5 and JBoss 4.2 and run the testsuite with a high test success rate but for JBoss 4.0 I am getting a lot of failures.

          I am using the JBoss 4.0.5 release and I am getting this error logged for a lot of the tests: -

          2007-01-08 12:13:21,026 ERROR [org.jboss.ws.core.soap.SOAPMessageUnMarshaller:80] Cannot unmarshall SOAPMessage
          javax.xml.soap.SOAPException: Cannot find SOAPFactory implementation
          at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:96)
          at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:113)
          at org.jboss.ws.core.soap.SAAJPayloadBuilderDOM.build(SAAJPayloadBuilderDOM.java:86)
          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:254)
          at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:75)
          at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
          at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
          at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
          at org.jboss.remoting.Client.invoke(Client.java:525)
          at org.jboss.remoting.Client.invoke(Client.java:488)


          It looks like an old version of 'javax.xml.soap.SOAPFactory' is being used from the JBoss jars instead of the latest version from JBossWS.


          • 2. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
            Thomas Diesler Master

            Yes, jbossall-client.jar is the culprit. Please try this

             <!-- The test client classpath -->
             <path id="test.client.classpath">
             <path refid="jbossws.client.classpath"/>
             <pathelement location="${jboss.client}/jbossall-client.jar"/>
            


            • 4. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
              David Win Newbie

              Hey guys

              I am following exactly step by step as described in the FAQ, except I use anonymous access to SVN as opposed to the committer access to SVN

              I get the following build errors, I don't really want to mess with the class path build paths because it obviously worked for some people. I am obviously missing some jars in my classpath or I have an outdated build.xml file (I checked out the code about two days ago)

              Buildfile: build.xml
              
              prepare:
               [echo] jboss50.home = ${jboss50.home}
               [echo] jboss42.home = C:\examples\jboss-4.2.x\build\output\jboss-4.2.0.CR1-ejb3
               [echo] jboss40.home = C:\examples\jboss-4.0.5\build\output\jboss-4.0.5.GA-ejb3
               [echo] tomcat.home = ${tomcat.home}
              
              
              thirdparty-get:
              
              thirdparty-classpath:
              
              thirdparty:
              
              init:
              
              core-init:
              
              core-compile-classes:
               [javac] Compiling 77 source files to C:\examples\jbossws\jbossws-core\output\classes14
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\JAXRPCException.java:24: package org.jboss.util.id does not exist
               [javac] import org.jboss.util.id.SerialVersion;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceException.java:24: package org.jboss.util.id does not exist
               [javac] import org.jboss.util.id.SerialVersion;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceFactory.java:31: package org.jboss.logging does not exist
               [javac] import org.jboss.logging.Logger;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceFactory.java:49: cannot find symbol
               [javac] symbol : class Logger
               [javac] location: class javax.xml.rpc.ServiceFactory
               [javac] private static Logger log = Logger.getLogger(ServiceFactory.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:33: package org.jboss.logging does not exist
               [javac] import org.jboss.logging.Logger;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:34: package org.jboss.util.id does not exist
               [javac] import org.jboss.util.id.SerialVersion;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:57: cannot find symbol
               [javac] symbol : class Logger
               [javac] location: class javax.xml.rpc.soap.SOAPFaultException
               [javac] private static Logger log = Logger.getLogger(SOAPFaultException.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPException.java:24: package org.jboss.util.id does not exist
               [javac] import org.jboss.util.id.SerialVersion;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPMessage.java:29: package javax.activation does not exist
               [javac] import javax.activation.DataHandler;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\AttachmentPart.java:27: package javax.activation does not exist
               [javac] import javax.activation.DataHandler;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPMessage.java:108: cannot find symbol
               [javac] symbol : class DataHandler
               [javac] location: class javax.xml.soap.SOAPMessage
               [javac] public AttachmentPart createAttachmentPart(DataHandler datahandler)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\AttachmentPart.java:182: cannot find symbol
               [javac] symbol : class DataHandler
               [javac] location: class javax.xml.soap.AttachmentPart
               [javac] public abstract DataHandler getDataHandler() throws SOAPException;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\AttachmentPart.java:284: cannot find symbol
               [javac] symbol : class DataHandler
               [javac] location: class javax.xml.soap.AttachmentPart
               [javac] public abstract void setDataHandler(DataHandler dataHandler);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\server\ServletEndpointContext.java:26: package javax.servlet does not exist
               [javac] import javax.servlet.ServletContext;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\server\ServletEndpointContext.java:27: package javax.servlet.http does not exist
               [javac] import javax.servlet.http.HttpSession;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\server\ServletEndpointContext.java:60: cannot find symbol
               [javac] symbol : class HttpSession
               [javac] location: interface javax.xml.rpc.server.ServletEndpointContext
               [javac] public HttpSession getHttpSession();
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\server\ServletEndpointContext.java:78: cannot find symbol
               [javac] symbol : class ServletContext
               [javac] location: interface javax.xml.rpc.server.ServletEndpointContext
               [javac] public ServletContext getServletContext();
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\FactoryLoader.java:34: package org.jboss.logging does not exist
               [javac] import org.jboss.logging.Logger;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\FactoryLoader.java:47: cannot find symbol
               [javac] symbol : class Logger
               [javac] location: class javax.xml.soap.FactoryLoader
               [javac] private static Logger log = Logger.getLogger(MessageFactory.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPConnection.java:24: package org.jboss.util does not exist
               [javac] import org.jboss.util.NotImplementedException;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPConnectionFactory.java:27: package org.jboss.logging does not exist
               [javac] import org.jboss.logging.Logger;
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPConnectionFactory.java:43: cannot find symbol
               [javac] symbol : class Logger
               [javac] location: class javax.xml.soap.SOAPConnectionFactory
               [javac] private static Logger log = Logger.getLogger(SOAPConnectionFactory.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\JAXRPCException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.JAXRPCException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\JAXRPCException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.JAXRPCException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.ServiceException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.ServiceException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\ServiceFactory.java:49: cannot find symbol
               [javac] symbol : variable Logger
               [javac] location: class javax.xml.rpc.ServiceFactory
               [javac] private static Logger log = Logger.getLogger(ServiceFactory.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:57: cannot find symbol
               [javac] symbol : variable Logger
               [javac] location: class javax.xml.rpc.soap.SOAPFaultException
               [javac] private static Logger log = Logger.getLogger(SOAPFaultException.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:68: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.soap.SOAPFaultException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\rpc\soap\SOAPFaultException.java:68: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.rpc.soap.SOAPFaultException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.soap.SOAPException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPException.java:36: cannot find symbol
               [javac] symbol : variable SerialVersion
               [javac] location: class javax.xml.soap.SOAPException
               [javac] if (SerialVersion.version == SerialVersion.LEGACY)
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\FactoryLoader.java:47: cannot find symbol
               [javac] symbol : variable Logger
               [javac] location: class javax.xml.soap.FactoryLoader
               [javac] private static Logger log = Logger.getLogger(MessageFactory.class);
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPConnection.java:69: cannot find symbol
               [javac] symbol : class NotImplementedException
               [javac] location: class javax.xml.soap.SOAPConnection
               [javac] throw new NotImplementedException();
               [javac] ^
               [javac] C:\examples\jbossws\jbossws-core\src\main\java\javax\xml\soap\SOAPConnectionFactory.java:43: cannot find symbol
               [javac] symbol : variable Logger
               [javac] location: class javax.xml.soap.SOAPConnectionFactory
               [javac] private static Logger log = Logger.getLogger(SOAPConnectionFactory.class);
               [javac] ^
               [javac] 35 errors
              


              Here is my ant.properties file
              jboss42.home=C:\\examples\\jboss-4.2.x\\build\\output\\jboss-4.2.0.CR1-ejb3
              jboss40.home=C:\\examples\\jboss-4.0.5\\build\\output\\jboss-4.0.5.GA-ejb3
              
              # The JBoss server under test. This can be [jboss50|jboss42|jboss40|tomcat]
              jbossws.integration.target=jboss42


              I am running under Windows XP

              • 6. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                David Win Newbie

                This is the setup, I am trying to run:

                jboss-4.0.5, jaxws, jaxrpc, ejb3, jsr181, jdk-1.5

                Instructions found here:

                http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstallJBoss40xEJB3

                • 7. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                  Thomas Diesler Master

                  The classes that are missing in your build should come from build/thirdparty. You can delete that dir to trigger a fetch

                  • 8. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                    David Win Newbie

                    In the words of Borat: Nice!

                    Also, just a heads up...

                    the property jboss.repository=http://repository.jboss.com

                    needs to be there, in order to get a fetch of the latest jars.

                    • 9. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                      David Win Newbie

                      Sorry to be a newbie about this, I am not too familiar with the build environment of JBossWS

                      The tests fail for me, it doesn't compile. It seems to be another class path issue where Junit.jar cannot be found (the only instance of junit.jar is in jbossws/build/thirdparty). I even put a force get in my ant.properties in the build folder.

                      I get the following output, it appears to fail at the "main" task. It all fails on Junit classes but it stops at 100 errors. I am guessing even if I do manually junit.jar to the classpath, there will be other dependency errors to deal with. I am guessing there is something wrong with my ant.properties or something did not check out right (via SVN).

                      Buildfile: build.xml
                      
                      prepare:
                       [echo] -----------------------------------------------
                       [echo] jboss.home = C:\examples\jboss-4.2.x\build\output\jboss-4.2.0.CR1-ejb3
                       [echo] tomcat.home = ${tomcat.home}
                       [echo] java.home = C:\Sun\AppServer\jdk\jre
                       [echo] endorsed.dirs = C:\examples\jboss-4.2.x\build\output\jboss-4.2.0.CR1-ejb3/lib/endorsed
                       [echo] -----------------------------------------------
                      .
                      .
                      .
                      .
                      . (taken out for the sake of keeping the post short)
                      
                       [unzip] Expanding: C:\examples\jbossws\build\thirdparty\ejb3.deployer.zip into C:\examples\jbossws\build\thirdparty
                      
                      thirdparty-classpath:
                      
                      thirdparty:
                      
                      init:
                       [echo] excludefile = tests-jboss42-excludes.txt
                      
                      compile14:
                      
                      compile15:
                       [javac] Compiling 1006 source files to C:\examples\jbossws\jbossws-tests\output\classes
                       [javac] C:\examples\jbossws\jbossws-tests\src\main\java\org\jboss\test\ws\JBossWSTest.java:34: package junit.framework does not exist
                       [javac] import junit.framework.TestCase;
                       [javac] ^
                       [javac] C:\examples\jbossws\jbossws-tests\src\main\java\org\jboss\test\ws\JBossWSTest.java:48: cannot find symbol
                       [javac] symbol: class TestCase
                       [javac] public abstract class JBossWSTest extends TestCase
                       [javac] ^
                       [javac] C:\examples\jbossws\jbossws-tests\src\main\java\org\jboss\test\ws\JBossWSTestSetup.java:24: package junit.extensions does not exist
                       [javac] import junit.extensions.TestSetup;
                       [javac] ^
                       [javac] C:\examples\jbossws\jbossws-tests\src\main\java\org\jboss\test\ws\JBossWSTestSetup.java:25: package junit.framework does not exist
                       [javac] import junit.framework.TestSuite;
                       [javac] ^
                       [javac]
                      .
                      .
                      .
                      .
                      .
                      .(taken out for the sake of keeping the post short)
                      
                       [javac] 100 errors
                      
                      compile:
                      
                      copy-resources:
                      
                      generate-sources:
                       [wstools] log4j:ERROR setFile(null,false) call failed.
                       [wstools] java.io.FileNotFoundException: \test.log (Access is denied)
                       [wstools] at java.io.FileOutputStream.open(Native Method)
                       [wstools] at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
                       [wstools] at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
                       [wstools] at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
                       [wstools] at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
                       [wstools] at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:206)
                       [wstools] at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
                       [wstools] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
                       [wstools] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
                       [wstools] at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
                       [wstools] at org.jboss.logging.log4j.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:80)
                       [wstools] at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:393)
                       [wstools] at org.jboss.logging.Logger.<init>(Logger.java:119)
                       [wstools] at org.jboss.logging.Logger.getLogger(Logger.java:357)
                       [wstools] at org.jboss.ws.tools.WSTools.<clinit>(Unknown Source)
                       [wstools] at org.jboss.ws.tools.ant.wstools.execute(Unknown Source)
                       [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                       [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
                       [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
                       [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
                       [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
                       [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
                       [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
                       [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
                       [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:668)
                       [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:187)
                       [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
                       [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
                       [wstools] log4j:ERROR Either File or DatePattern options are not set for appender [FILE].
                       [wstools] java.lang.NullPointerException
                       [wstools] at java.lang.System.arraycopy(Native Method)
                       [wstools] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source)
                       [wstools] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(Unknown Source)
                       [wstools] at org.jboss.ws.tools.JavaToXSD.parseSchema(Unknown Source)
                       [wstools] at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(Unknown Source)
                       [wstools] at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(Unknown Source)
                       [wstools] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(Unknown Source)
                       [wstools] at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(Unknown Source)
                       [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(Unknown Source)
                       [wstools] at org.jboss.ws.tools.WSTools.process(Unknown Source)
                       [wstools] at org.jboss.ws.tools.WSTools.generate(Unknown Source)
                       [wstools] at org.jboss.ws.tools.ant.wstools.execute(Unknown Source)
                       [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                       [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
                       [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
                       [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
                       [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
                       [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
                       [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
                       [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
                       [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:668)
                       [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:187)
                       [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
                       [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
                      
                      


                      Any help would be much apperciated.

                      • 12. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                        David Win Newbie

                        hey guys

                        thanks for the help, adding junit.jar to the ant/lib fixed it (although ant already has an ant-junir.jar in its classpath already) and upgrading to ant 1.7 fixed the xerces bug. Perhaps, you guys could put ant 1.7 as a requirement for building JBossWS on the Wiki to avoid future confusion with other developers.

                        However, the tests are failing for me.

                        On the server side, I am regularly getting these exceptions which all basically relate to the "setProperty must be overridden by all subclasses of SOAPMessage" message. Every test seems to fail because of these exceptions.

                        14:10:57,445 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
                        java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
                         at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(Unknown Source)
                         at org.jboss.ws.core.soap.MessageFactoryImpl.createMessageInternal(Unknown Source)
                         at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(Unknown Source)
                         at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(Unknown Source)
                         at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(Unknown Source)
                         at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(Unknown Source)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                         at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(Unknown Source)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                         at java.lang.Thread.run(Thread.java:619)
                        14:10:57,477 ERROR [AbstractServiceEndpointServlet] Error processing web service request
                        java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
                         at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(Unknown Source)
                         at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(Unknown Source)
                         at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.toSOAPMessage(Unknown Source)
                         at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessage(Unknown Source)
                         at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.createFaultMessageFromException(Unknown Source)
                         at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(Unknown Source)
                         at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(Unknown Source)
                         at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(Unknown Source)
                         at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(Unknown Source)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                         at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(Unknown Source)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                        


                        The vast majority of my unit tests fail (but not all fail, a minute portion of them do pass).

                        I am guessing that my environment is not setup as the rest of the JBoss team.

                        • 13. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                          Thomas Diesler Master

                          You have the SUN jaxrpc impl on your classpath. Make sure javax.xml.soap.SOAPMessage is pulled from jboss-jaxrpc.jar

                          ant 1.6.5 works fine for us. We have however updated xerces,xalan with the versions from build/thirdparty

                          All tests should pass against jboss50

                          • 14. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                            David Win Newbie

                            thanks,

                            another issue that I had was a class not found exception of ParameterMode but that was fixed when I manually moved over the jboss-rpc.jar to the third party lib folder and the lib folder for the app server.

                            Not all tests passed but the vast majority of them did (99% to be exact)

                            Just a question, when do you guys think there will be a stable binary release (beyond beta) for JBossWS (JAXWS) with JBoss 4.0.5?

                            Also, there isn't much documentation for using JAXWS with wstools. I am trying to decipher it whether wstool supports wsimport and wsgen (like the GlassFish implementation) but I am guessing its not entirely there yet.

                            again, thanks for the help

                            1 2 Previous Next