0 Replies Latest reply on Mar 12, 2002 4:19 PM by Joshua Becker

    Error when trying to deploy MDB -- instance cache

    Joshua Becker Newbie

      I have configured my jboss.xml and ejb-jar files in order to created a topic called LessonTopic from which my LessonDetails MDB is activated. When deploying my application (which involves 3 other beans that are properly deployed), I get the following error:

      Error adding container to application,
      Invalid or missing instance cache (in jboss.xml or standardjboss.xml).

      My jboss.xml reads:

      <?xml version="1.0" encoding="UTF-8"?>

      false
      <resource-managers>
      <resource-manager>
      <res-name>TopicFactory</res-name>
      <res-jndi-name>java:/JmsXA</res-jndi-name>
      </resource-manager>
      <resource-manager>
      <res-name>Topic</res-name>
      <res-jndi-name>topic/LessonTopic</res-jndi-name>
      </resource-manager>
      </resource-managers>
      <enterprise-beans>

      <ejb-name>HorseEJB</ejb-name>
      <jndi-name>ejb/HorseEJB</jndi-name>


      <ejb-name>RiderEJB</ejb-name>
      <jndi-name>ejb/RiderEJB</jndi-name>


      <ejb-name>LessonEJB</ejb-name>
      <jndi-name>ejb/LessonEJB</jndi-name>
      <configuration-name>Standard Message Driven Bean <configuration-name>
      <resource-ref>
      <res-ref-name>jms/TopicFactory</res-ref-name>
      <resource-name>TopicFactory</resource-name>
      </resource-ref>
      <resource-ref>
      <res-ref-name>jms/LessonTopic</res-ref-name>
      <resource-name>Topic</resource-name>
      </resource-ref>

      <message-driven>
      <ejb-name>LessonDetailEJB</ejb-name>
      <destination-jndi-name>topic/LessonTopic</destination-jndi-name>
      </message-driven>
      </enterprise-beans>



      And I have added the following to the jbossmq-service.xml file:


      <mbean-ref name="JBossMQService">JBossMQ:service=Server</mbean-ref>


      What am I doing incorrectly?