Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-930

Problems when using JCAMixIn in the application testing

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.5
    • Fix Version/s: 1.0
    • Component/s: test
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide
      1. add explicit dependency on jboss-logging 3.x into application pom.xml
      2. add environment variables into application pom.xml
      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      --- pom.xml.orig	2012-07-12 17:11:03.268374285 -0400
      +++ pom.xml	2012-07-12 16:27:17.798995317 -0400
      @@ -16,6 +16,11 @@
             <version>1.1</version>
           </dependency>
           <dependency>
      +      <groupId>org.jboss.logging</groupId>
      +      <artifactId>jboss-logging</artifactId>
      +      <version>3.1.0.GA</version>
      +    </dependency>
      +    <dependency>
             <groupId>org.switchyard.components</groupId>
             <artifactId>switchyard-component-bean</artifactId>
             <version>${switchyard.version}</version>
      @@ -96,6 +101,17 @@
                 <showDeprecation>true</showDeprecation>
               </configuration>
             </plugin>
      +      <plugin>
      +        <groupId>org.apache.maven.plugins</groupId>
      +        <artifactId>maven-surefire-plugin</artifactId>
      +        <version>2.6</version>
      +        <configuration>
      +          <environmentVariables>
      +            <HORNETQ_VERSION>2.2.13.Final</HORNETQ_VERSION>
      +            <NETTY_VERSION>3.2.6.Final</NETTY_VERSION>
      +          </environmentVariables>
      +        </configuration>
      +      </plugin>
           </plugins>
         </build>
       </project>
      
      Show
      add explicit dependency on jboss-logging 3.x into application pom.xml add environment variables into application pom.xml Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml --- pom.xml.orig 2012-07-12 17:11:03.268374285 -0400 +++ pom.xml 2012-07-12 16:27:17.798995317 -0400 @@ -16,6 +16,11 @@ <version>1.1</version> </dependency> <dependency> + <groupId>org.jboss.logging</groupId> + <artifactId>jboss-logging</artifactId> + <version>3.1.0.GA</version> + </dependency> + <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-bean</artifactId> <version>${switchyard.version}</version> @@ -96,6 +101,17 @@ <showDeprecation> true </showDeprecation> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.6</version> + <configuration> + <environmentVariables> + <HORNETQ_VERSION>2.2.13.Final</HORNETQ_VERSION> + <NETTY_VERSION>3.2.6.Final</NETTY_VERSION> + </environmentVariables> + </configuration> + </plugin> </plugins> </build> </project>

      Description

      There are 2 problems to use JCAMixIn in the application unit test:

      1. old jboss-logging-spi 2.x is used instead of jboss-logging 3.x somehow, causes NoSuchMethodError
      2. JCAMixIn depends on 2 environment variables(HORNETQ_VERSION,NETTY_VERSION) which are defined in switchyard-parent/pom.xml, but it isn't available unless the application pom.xml inherits the switchyard-parent/pom.xml.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                igarashitm tomohisa igarashi
                Reporter:
                igarashitm tomohisa igarashi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: