7 Replies Latest reply on Feb 23, 2012 2:08 AM by jaikiran pai

    java.lang.ClassNotFoundException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6

    Prasad Deshpande Expert

      Hi Guys,

       

      I'm injecting a remote interface into another bean, & was trying to call method on remote bean when I got this error. I've attached full stack with the class.

       

      Here is the relevant code

       

      @Stateless(name = Names.CPC_BEAN_NAME, mappedName = Names.CPC_REMOTE_REF, description = "CPC Session Bean")

      @TransactionAttribute(TransactionAttributeType.REQUIRED)

      @Remote(CPC.class)

      @Resources({ @javax.annotation.Resource(authenticationType = AuthenticationType.CONTAINER, type = DataSource.class, name = Names.JDBC_EFP_DATASOURCE, mappedName = Names.JDBC_EFP_DATASOURCE_REF),

              @javax.annotation.Resource(authenticationType = AuthenticationType.CONTAINER, type = TopicConnectionFactory.class, name = JMSConstants.TOPIC_FACTORY_REF, mappedName = JMSConstants.JMS_XA_CONNECTION_FACTORY),

              @javax.annotation.Resource(name = JMSConstants.ERROR_TOPIC_REF, type = Queue.class, mappedName = JMSConstants.ERROR_TOPIC_JNDI) })

      public class CPCBean extends PC implements CPC {

       

       

      thought it was little strange.. later I tried to add dependency on <module name="org.jboss.ironjacamar.jdbcadapters" /> to jboss-deployment-structure.xml in ear/meta-inf that didn't help. I'm still wondering why would I get this class not found exception just on injection..

       

      Thanks,

      Prasad