1 2 Previous Next 28 Replies Latest reply on Mar 28, 2007 3:33 PM by Jason Greene Go to original post
      • 15. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
        Gang Duan Newbie

        I had the same ERROR, and it cost me 1 day to figure out that it's something to do with the JDK version - JDK1.6.0. switched back to JDK1.5.0_11, and this ERROR was gone.

        All other portions of the application were working fine with JDK1.6.0, but just JBossWS piece.

        Hope this help.

        -g


        "dwin" wrote:
        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.


        • 16. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
          Meghana Joglekar Novice

          Hello,

          I am actually trying to deploy my BPEL process to JBPM as can be seen in this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023882#4023882

          In order to debug the problem, I thought of getting the source code myself and build the JBossWS jars. I followed http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstall step by step. Well I did not get JBoss 4.0.5 sources because I have that server running already.

          I followed from step 4. I modified ant.properties as follows

          # Optional JBoss Home
          #jboss50.home=/home/tdiesler/svn/jbossas/trunk/build/output/jboss-5.0.0.Beta2
          #jboss42.home=/home/tdiesler/svn/jbossas/branches/Branch_4_2/build/output/jboss-4.2.0.CR1
          jboss40.home=D:/jboss-4.0.5.GA
          
          # The JBoss server under test. This can be [jboss50|jboss42|jboss40|tomcat]
          jbossws.integration.target=jboss40
          


          When I run ant main I get following error -
          D:\jbossws\build\ant-import\build-setup.xml:88: exec returned: 1

          Looking at the svn-info.xml I found that my svn does not support '--xml' option on 'svn info'. Removing that argument created a properties like file instead of xml which obviously didn't work. So what do I need to do to get this working?

          My svn version is 1.0.5.9844.

          Thanks,
          Meghana

          • 18. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
            Meghana Joglekar Novice

            Ok now I have followed the instructions step by step. I got source code for JBoss 4.0.5 as per the instructions. Everything builds well but when I run 'ant tests' I get following exception for several tests.

            14:45:59,358 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.
            0.5.ejb3/build/output/jboss-4.0.5.GA-ejb3/server/default/tmp/deploy/tmp37641jaxr
            pc-jbws165.ear-contents/jaxrpc-jbws165-both.jar
            java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/TypeMappingRegistry
            at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpoi
            ntDeployer.java:84)
            at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEnd
            point(DeployerInterceptor.java:127)
            at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createService
            Endpoint(DeployerInterceptorEJB.java:43)
            at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerI
            nterceptor.java:78)
            at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
            create(SubDeployerInterceptorSupport.java:180)
            at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
            ptor.java:91)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:264)

            So which jar file am I missing? Where should it go?
            Notice in the stack trace 'org.jboss.ws.integration.jboss42.DeployerInterceptor' is called and I have JBoss 4.0.5 so is it right?

            Thank you,
            Meghana

            • 19. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
              Meghana Joglekar Novice

              I have jboss-jaxrpc.jar in my JBoss-4.0.5.GA.ejb3 client, all\lib and server\default\lib folders and that jar contains that class. Why am I getting 'NoClassDefFound' then? version mismatch?

              • 20. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                Meghana Joglekar Novice

                I apologize for flooding this thread with my posts but I really want to get my BPEL process working soon.

                I had to copy jboss-jaxrpc.jar file to jbossws.sar folder under default\deploy manually. Now my tests are running fine.

                • 21. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                  Sudarshan srivathsav Newbie

                  Hi guys...
                  when i try execute the ant file after following all the steps....but when i do a ANT....im getting lot of errors like this ,
                  [sudharsans@linux0064 jbossws-samples-1.2.0.GA]$ ant
                  Buildfile: build.xml

                  prepare:

                  [echo] -----------------------------------------------
                  [echo] jboss.home = /home/sudharsans/jboss-4.0.5.GA
                  [echo] tomcat.home = /usr/java/tomcat
                  [echo] java.home = /apps-es4/vendor/java/jdk1.5.0/jre
                  [echo] endorsed = /home/sudharsans/jboss-4.0.5.GA/lib/endorsed
                  [echo] excludesfile = tests-jboss40-noejb3-excludes.txt
                  [echo] -----------------------------------------------

                  thirdparty-get:

                  thirdparty-classpath:

                  thirdparty:

                  common-classpath:

                  jboss-classpath:

                  tomcat-classpath:

                  init:

                  wsconsume:

                  compile14:

                  compile15:
                  [javac] Compiling 215 source files to /home/sudharsans/jbossws-samples-1.2.0.GA/output/classes
                  [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTest.java:40: package org.jboss.logging does not exist
                  [javac] import org.jboss.logging.Logger;
                  [javac] ^
                  [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTest.java:56: cannot find symbol
                  [javac] symbol : class Logger
                  [javac] location: class org.jboss.test.ws.JBossWSTest
                  [javac] protected Logger log = Logger.getLogger(getClass().getName());
                  [javac] ^
                  [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTestHelper.java:33: package org.jboss.logging does not exist
                  [javac] import org.jboss.logging.Logger;
                  [javac] ^
                  [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTestHelper.java:45: cannot find symbol
                  [javac] symbol : class Logger
                  [javac] location: class org.jboss.test.ws.JBossWSTestHelper
                  [javac] private static Logger log = Logger.getLogger(JBossWSTestHelper.class);
                  [javac] ^
                  [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/TestDeployerTomcat.java:36: package org.jboss.util does not exist
                  [javac] import org.jboss.util.Base64;


                  There are many such errors....arounf 100 errors. IM a real newbie to it..can u guys pls help me to resolve it or atleast can u guys help me giving
                  a small HELLOWORLD WEBSERVICE example with build file..so that i can get more familiar. It would be so great if u guys could reply as soon as possible ..Since it is very urgent.

                  SUDARSHAN

                  • 22. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                    Sudarshan srivathsav Newbie

                    PLZ REPLY ME SOON..ANYONE WHO KNWS IT...IT IS VERY URGENT...:(

                    • 23. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                      Magesh Bojan Master

                      Delete the "thirdparty" directory and make force.thirdparty.get=true in the ant.properties and rebuild it!

                      • 24. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                        Sudarshan srivathsav Newbie

                        Hi thanks ..All the errors are gone now..But Im gettin some assertion error of junit like this.
                        compile15:
                        [javac] Compiling 215 source files to /home/sudharsans/jbossws-samples-1.2.0.GA/output/classes
                        [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTest.java:61: cannot find symbol
                        [javac] symbol : constructor TestCase()
                        [javac] location: class junit.framework.TestCase
                        [javac] {
                        [javac] ^
                        [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/jaxrpc/samples/jsr109ejb/RpcDIIConfiguredCallTestCase.java:78: cannot find symbol
                        [javac] symbol : method assertFalse(boolean)
                        [javac] location: class org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcDIIConfiguredCallTestCase
                        [javac] assertFalse(call.isParameterAndReturnSpecRequired(operationName));
                        [javac] ^
                        [javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/jaxrpc/samples/jsr109pojo/RpcDIIConfiguredCallTestCase.java:78: cannot find symbol
                        [javac] symbol : method assertFalse(boolean)
                        [javac] location: class org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcDIIConfiguredCallTestCase
                        [javac] assertFalse(call.isParameterAndReturnSpecRequired(operationName));
                        [javac] ^
                        [javac] Note: Some input files use unchecked or unsafe operations.
                        [javac] Note: Recompile with -Xlint:unchecked for details.
                        [javac] 3 errors

                        BUILD FAILED
                        /home/sudharsans/jbossws-samples-1.2.0.GA/build.xml:373: Compile failed; see the compiler error output for details.

                        Can u please tell me what is the problem

                        • 25. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                          Sudarshan srivathsav Newbie

                          After i made the force.thirdparty.get=true , deleted thirdparty and then rebuilded ant i got rid of all the errors . Thanks for the splendid help . Can u pls tell me what may be the reason of the above mentioned error??????PLZ HELP ME ON THIS TOOOO...:(

                          • 26. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                            Sudarshan srivathsav Newbie

                            Thanks for the help guys..after i manually copied the jar to third party it worked ...thanks a lot...WOW KEWL ...JBOSS FORUMS IS JUST GREAT

                            • 27. Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
                              Eric Ray Novice

                               

                              "thomas.diesler@jboss.com" wrote:
                              You have the SUN jaxrpc impl on your classpath. Make sure javax.xml.soap.SOAPMessage is pulled from jboss-jaxrpc.jar


                              I have this exact problem and it ocurred when I moved to JDK 1.6. How do I tell JBoss to use jboxx-jaxrpc.jar instead of the Sun jaxrpc-impl?

                              Thanks.

                              1 2 Previous Next