4 Replies Latest reply on Oct 4, 2005 5:23 PM by prasad_duggineni

    failed to load jboss.xml

    prasad_duggineni

      I am getting the following error when I try to deploy the entity bean.

      rg.jboss.deployment.DeploymentException: Error in jboss.xml for Bean ScheduleSession: ejb-local-ref ejb/ScheduleItemLocal found in jboss.xml but not in ejb-jar.xml
      at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:764)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:175)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)

      Need help to fix this problem

        • 1. Re: failed to load jboss.xml
          darranl

          The problem is JBoss thinks you have have defined an ejb-local-ref in the jboss.xml that you have not defined in the ejb-jar.xml

          Can you post both descriptors wrapped with [ code ][ / code ] tags without the spaces and use the preview button to make sure it displays correctly.

          • 2. Re: failed to load jboss.xml
            prasad_duggineni



            <![CDATA[A session bean named ScheduleSession]]>
            <display-name>ScheduleSession</display-name>

            <ejb-name>ScheduleSession</ejb-name>

            ejbs.ScheduleSessionHome
            ejbs.ScheduleSession
            <local-home>ejbs.ScheduleSessionLocalHome</local-home>
            ejbs.ScheduleSessionLocal
            <ejb-class>ejbs.ScheduleSessionSession</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>

            <ejb-local-ref >
            <ejb-ref-name>ejb/ScheduleItem</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>ejbs.ScheduleItemLocalHome</local-home>
            ejbs.ScheduleItemLocal
            <ejb-link>ScheduleItem</ejb-link>
            </ejb-local-ref>





            <ejb-name>ScheduleSession</ejb-name>
            <jndi-name>ScheduleSession</jndi-name>
            <local-jndi-name>ScheduleSessionLocal</local-jndi-name>
            <ejb-local-ref>
            <ejb-ref-name>ejb/ScheduleItemLocal</ejb-ref-name>
            <local-jndi-name>ejb/ejbs/ScheduleItemLocalHome</local-jndi-name>
            </ejb-local-ref>

            <method-attributes>
            </method-attributes>

            • 3. Re: failed to load jboss.xml
              prasad_duggineni

               

              <session>
               <ejb-name>ScheduleSession</ejb-name>
               <jndi-name>ScheduleSession</jndi-name>
               <local-jndi-name>ScheduleSessionLocal</local-jndi-name>
               <ejb-local-ref>
               <ejb-ref-name>ejb/ScheduleItemLocal</ejb-ref-name>
               <local-jndi-name>ejb/ejbs/ScheduleItemLocalHome</local-jndi-name>
               </ejb-local-ref>
               <method-attributes>
               </method-attributes>
               </session>
              

               <session>
               <ejb-name>ScheduleSession</ejb-name>
               <jndi-name>ScheduleSession</jndi-name>
               <local-jndi-name>ScheduleSessionLocal</local-jndi-name>
               <ejb-local-ref>
               <ejb-ref-name>ejb/ScheduleItemLocal</ejb-ref-name>
               <local-jndi-name>ejb/ejbs/ScheduleItemLocalHome</local-jndi-name>
               </ejb-local-ref>
               <method-attributes>
               </method-attributes>
               </session>
              



              • 4. Re: failed to load jboss.xml
                prasad_duggineni

                 

                <session >
                 <description><![CDATA[A session bean named ScheduleSession]]></description>
                 <display-name>ScheduleSession</display-name>
                 <ejb-name>ScheduleSession</ejb-name>
                 <home>ejbs.ScheduleSessionHome</home>
                 <remote>ejbs.ScheduleSession</remote>
                 <local-home>ejbs.ScheduleSessionLocalHome</local-home>
                 <local>ejbs.ScheduleSessionLocal</local>
                 <ejb-class>ejbs.ScheduleSessionSession</ejb-class>
                 <session-type>Stateless</session-type>
                 <transaction-type>Container</transaction-type>
                 <ejb-local-ref >
                 <ejb-ref-name>ejb/ScheduleItem</ejb-ref-name>
                 <ejb-ref-type>Entity</ejb-ref-type>
                 <local-home>ejbs.ScheduleItemLocalHome</local-home>
                 <local>ejbs.ScheduleItemLocal</local>
                 <ejb-link>ScheduleItem</ejb-link>
                 </ejb-local-ref>
                 </session>
                


                 <session>
                 <ejb-name>ScheduleSession</ejb-name>
                 <jndi-name>ScheduleSession</jndi-name>
                 <local-jndi-name>ScheduleSessionLocal</local-jndi-name>
                 <ejb-local-ref>
                 <ejb-ref-name>ejb/ScheduleItemLocal</ejb-ref-name>
                 <local-jndi-name>ejb/ejbs/ScheduleItemLocalHome</local-jndi-name>
                 </ejb-local-ref>
                 <method-attributes>
                 </method-attributes>
                 </session>