Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6585

JBossWS Native testsuite depends on aop version not compatible with EAP aop version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • TBD EAP 5
    • EAP_EWP 5.1.1 ER2
    • Web Services
    • None

      I have 4 tests [1] failing because testsuite is using aop not compatible with one used in EAP (2.1.1.GA versus 2.1.6.GA_CP02).
      Exception I received is: java.lang.NoSuchMethodError: org/jboss/aop/AspectManager.instance(Ljava/lang/Class;)Lorg/jboss/aop/AspectManager;
      I noticed these failures in ER1 testing but I thought the reason for was different - JBPAPP-6320.

      There are no maven artefacts for EAP so testsuite can't be easily changed

      Possible solutions:

      • do no changes in testsuite, there is workaroud [2] to pass these tests
      • add failing tests into excluded list

      What do you suggest?

      [1] list of failing tests
      org.jboss.test.ws.jaxrpc.samples.jmstransport.JMSTransportTestCase.testSOAPMessageToEndpointQueue
      org.jboss.test.ws.jaxws.samples.dar.JMSClientTestCase.test
      org.jboss.test.ws.jaxws.samples.jmstransport.JMSTransportTestCase.testJMSEndpointPort
      org.jboss.test.ws.jaxws.samples.jmstransport.JMSTransportTestCase.testMessagingClient

      [2] workaroud to exclude aop 2.1.1.GA and use EAP based jars
      Install custom version into local repository:

      mvn install:install-file -DgroupId=org.jboss.aop -DartifactId=jboss-aop-aspects -Dversion=2.1.6.GA_CP02-rsvoboda -Dfile=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as/server/all/deployers/jboss-aop-jboss5.deployer/jboss-aop-aspects.jar -Dpackaging=jar -DgeneratePom=true
      mvn install:install-file -DgroupId=org.jboss.aop -DartifactId=jboss-aop-asintegration-core -Dversion=2.1.6.GA_CP02-rsvoboda -Dfile=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as/lib/jboss-aop-asintegration-core.jar -Dpackaging=jar -DgeneratePom=true
      mvn install:install-file -DgroupId=org.jboss.aop -DartifactId=jboss-aop-asintegration-jmx -Dversion=2.1.6.GA_CP02-rsvoboda -Dfile=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as/lib/jboss-aop-asintegration-jmx.jar -Dpackaging=jar -DgeneratePom=true
      mvn install:install-file -DgroupId=org.jboss.aop -DartifactId=jboss-aop-asintegration-mc -Dversion=2.1.6.GA_CP02-rsvoboda -Dfile=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as/lib/jboss-aop-asintegration-mc.jar -Dpackaging=jar -DgeneratePom=true
      mvn install:install-file -DgroupId=org.jboss.aop -DartifactId=jboss-aop -Dversion=2.1.6.GA_CP02-rsvoboda -Dfile=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as/lib/jboss-aop.jar -Dpackaging=jar -DgeneratePom=true
      

      Modify pom.xml for testsuite to exclude original aop jars and use EAP based jars

      <dependencies>
      ...
              <dependency>
                <groupId>org.jboss.jbossas</groupId>
                <artifactId>jboss-as-ejb3</artifactId>
                <version>${jboss.version}</version>
      <!-- NEW  -->
            <exclusions>
              <exclusion>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-aspects</artifactId>
              </exclusion>
              <exclusion>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-core</artifactId>
              </exclusion>
              <exclusion>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-jmx</artifactId>
              </exclusion>
              <exclusion>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-mc</artifactId>
              </exclusion>
              <exclusion>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop</artifactId>
              </exclusion>
            </exclusions>
      <!-- END NEW  -->
              </dependency>
              <dependency>
                <groupId>org.jboss.jbossas</groupId>
                <artifactId>jboss-as-security</artifactId>
                <version>${jboss.version}</version>
              </dependency>
              <dependency>
                <groupId>org.hornetq</groupId>
                <artifactId>hornetq-jms-client</artifactId>
                <version>${hornetq.version}</version>
              </dependency>
      <!-- NEW  -->
              <dependency>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-aspects</artifactId>
                <version>2.1.6.GA_CP02-rsvoboda</version>
              </dependency>
              <dependency>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-core</artifactId>
                <version>2.1.6.GA_CP02-rsvoboda</version>
              </dependency>
              <dependency>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-jmx</artifactId>
                <version>2.1.6.GA_CP02-rsvoboda</version>
              </dependency>
              <dependency>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop-asintegration-mc</artifactId>
                <version>2.1.6.GA_CP02-rsvoboda</version>
              </dependency>
              <dependency>
                <groupId>org.jboss.aop</groupId> 
                <artifactId>jboss-aop</artifactId>
                <version>2.1.6.GA_CP02-rsvoboda</version>
              </dependency>
      <!-- END NEW  -->
      </dependencies>
      

              rsvoboda@redhat.com Rostislav Svoboda
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: