7 Replies Latest reply on Nov 30, 2011 12:12 AM by Kavan Desai

    Not able to deploy the ejb jar in JBOSS AS 7.1.0 Beta

    Kavan Desai Newbie

      Hi

      I am getting following ear when trying to deploy ejb jar in AS 7

       

      JBAS014775:New missing/unsatisfied dependencies:

      service jboss.naming.context.java.comp.DayTraderEJB.DayTraderEJB.TradeSLSBBean.env.jms.QueueConnectionFactory (missing) dependents: [service jboss.deployment.unit."DayTraderEJB.jar".component.TradeSLSBBean.START]

      service jboss.naming.context.java.comp.DayTraderEJB.DayTraderEJB.TradeSLSBBean.env.jms.TopicConnectionFactory (missing) dependents: [service jboss.deployment.unit."DayTraderEJB.jar".component.TradeSLSBBean.START]

      service jboss.naming.context.java.jboss.java:jdbc.TradeDataSource (missing) dependents: [service jboss.persistenceunit."DayTraderEJB.jar#daytrader"]

       

      I have attached the jboss.xml. I have created datasource in the following way

       

      <datasource jndi-name="java:jboss/jdbc/TradeDataSource" pool-name="MySqlDS" enabled="true">

                          <connection-url>jdbc:mysql://localhost:3306/tradedb</connection-url>

                          <driver>com.mysql</driver>

                          <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>

                          <pool>

                              <min-pool-size>10</min-pool-size>

                              <max-pool-size>100</max-pool-size>

                              <prefill>true</prefill>

                          </pool>

                          <security>

                              <user-name>daytrader</user-name>

                              <password>daytrader</password>

                          </security>

                          <statement>

                              <prepared-statement-cache-size>32</prepared-statement-cache-size>

                              <share-prepared-statements/>

                          </statement>

                      </datasource>

       

                      <drivers>

                          <driver name="com.mysql" module="com.mysql">

                              <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>

                          </driver>

                      </drivers>

       

      in standalone-full.xml file. I am starting jboss like standalone.bat --server-config=standalone-full.xml

       

      I have set

      boss-deployment-structure>

        <!-- Make sub deployments isolated by default, so they cannot see each others classes without a Class-Path entry -->

        <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

      </jboss-deployment-structure>

      in jboss-deployment-structure.xml and placed it in /META-INF of my the jar.

       

      Can any one give me guidance what I am missing here?