1 Reply Latest reply on Mar 16, 2011 8:26 AM by Per Lilja

    Problem connection with EJBProcessor to JBoss AS 6

    Per Lilja Newbie

      Hi,

       

      I'm having aproblem figure out what libraries I need to connect with a EJBProcessor in a JBoss ESB 4.9 Server to a JBoss AS 6.0, with JNDI.

       

      The EJB's are deployed correctly, and I have tested with at stand alone application that manage to connect to the EJB on the AS side (by using the libraries in the client directory).

       

      But I can't figure out which libraries I need in the ESB. I'm using maven to build, and I have tried with the following dependency:

       

      <dependency>

                                    <groupId>org.jboss.jbossas</groupId>

        <artifactId>jboss-as-client</artifactId>

        <version>6.0.0.Final</version>

        <type>pom</type>

      </dependency>

       

      But it includes a lot, and gives me errors.

       

      Any ideas?

        • 1. Re: Problem connection with EJBProcessor to JBoss AS 6
          Per Lilja Newbie

          Ok, so I managed to get a little bit further, the pom looks like this now:

           

          But I'm gettings some NullPointer now instead:

           

          Caused by: java.lang.NullPointerException

                    at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:345)

                    at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                    at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                    at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

           

           

          <dependency>
               <groupId>oswego-concurrent</groupId>
               <artifactId>concurrent</artifactId>
               <version>1.3.4-jboss-update1</version>
          </dependency>
          <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>ejb3-persistence</artifactId>
               <version>1.0.2.GA</version>
          </dependency>
          <dependency>
               <groupId>org.jboss</groupId>  
               <artifactId>jboss-common-core</artifactId>
               <version>2.2.17.GA</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3</groupId>
               <artifactId>jboss-ejb3-proxy-clustered</artifactId>
               <version>1.0.5-alpha-1</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3</groupId>
               <artifactId>jboss-ejb3-proxy-impl</artifactId>
               <version>1.0.11</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3</groupId>
               <artifactId>jboss-ejb3-proxy-spi</artifactId>
               <version>1.0.0</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3</groupId>
               <artifactId>jboss-ejb3-security</artifactId>
               <version>1.0.2</version>
               <exclusions>
                    <exclusion>
                         <artifactId>jboss-aop</artifactId>
                         <groupId>org.jboss.aop</groupId>
                    </exclusion>
               </exclusions>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3.async</groupId>
               <artifactId>jboss-ejb3-async-impl</artifactId>
               <version>1.0.0-alpha-9</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.ejb3</groupId>
               <artifactId>jboss-ejb3-core</artifactId>
               <version>1.7.17</version>
               <exclusions>
                    <exclusion>
                         <artifactId>jboss-aop</artifactId>
                          <groupId>org.jboss.aop</groupId>
                    </exclusion>
               </exclusions>
          </dependency>
          <dependency>
               <groupId>org.jboss.integration</groupId>
               <artifactId>jboss-integration</artifactId>
               <version>6.0.0.CR1</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.logging</groupId>
               <artifactId>jboss-logging-spi</artifactId>
               <version>2.2.0.CR1</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.aspects</groupId>
               <artifactId>jboss-remoting-aspects</artifactId>
               <version>1.0.2</version>
               <exclusions>
                    <exclusion>
                         <artifactId>jboss-aop</artifactId>
                         <groupId>org.jboss.aop</groupId>
                    </exclusion>
               </exclusions>
          </dependency>
          <dependency>
               <groupId>org.jboss.remoting</groupId>
               <artifactId>jboss-remoting</artifactId>
               <version>2.5.3</version>
          </dependency>
          <dependency>
               <groupId>org.picketbox</groupId>
               <artifactId>jboss-security-spi</artifactId>
               <version>3.0.0.CR2</version>
          </dependency>
          <dependency>
               <groupId>org.picketbox</groupId>
               <artifactId>jbosssx</artifactId>
               <version>3.0.0.CR2</version>
          </dependency>
          <dependency>
               <groupId>org.jboss.aspects</groupId>
               <artifactId>jboss-transaction-aspects</artifactId>
               <version>1.0.0.GA</version>
               <exclusions>
                    <exclusion>
                         <artifactId>jboss-aop</artifactId>
                         <groupId>org.jboss.aop</groupId>
                    </exclusion>
               </exclusions>
          </dependency>
          <dependency>
               <groupId>org.jboss.naming</groupId>
               <artifactId>jnpserver</artifactId>
               <version>5.0.5.Final</version>  
          </dependency>
          <dependency>
               <groupId>org.jboss.security</groupId>
               <artifactId>jbosssx</artifactId>
               <version>2.0.3.SP1</version>
          </dependency>