4 Replies Latest reply on Apr 13, 2004 10:36 AM by Dmitry

    [XmlFileLoader] failed to load jboss.xml (second attempt)

    Dmitry Newbie

      I cant get my ejbs to work (this problem drives me crazy), everything looks normal to me in jboss.xml as well as in ejb-jar.xml but deploying results in following message:

      15:29:57,449 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error.
      org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean BusinessLogicControllerBean: 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)

      ejb-jar.xml---------------------------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
      <ejb-jar>
       <enterprise-beans>
       <session>
       <ejb-name>BusinessLogicControllerBean</ejb-name>
       <home>com.standardandpoors.framework.controller.IBusinessLogicControllerHome</home>
       <remote>com.standardandpoors.framework.controller.IBusinessLogicController</remote>
       <ejb-class>com.standardandpoors.framework.controller.BusinessLogicControllerBean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Bean</transaction-type>
       </session>
       <session>
       <ejb-name>PresentationControllerBean</ejb-name>
       <home>com.standardandpoors.framework.controller.IPresentationControllerHome</home>
       <remote>com.standardandpoors.framework.controller.IPresentationController</remote>
       <ejb-class>com.standardandpoors.framework.controller.PresentationControllerBean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Bean</transaction-type>
       </session>
       </enterprise-beans>
      </ejb-jar>
      


      jboss.xml ----------------------------------------------------------------------
      <?xml version="1.0"?>
      <!DOCTYPE jboss PUBLIC '-//JBoss//DTD JBOSS 3.2//EN' 'http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd'>
      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>BusinessLogicControllerBean</ejb-name>
       <jndi-name>ejb/BusinessLogicControllerBean</jndi-name>
       <method-attributes>
       </method-attributes>
       </session>
       <session>
       <ejb-name>PresentationControllerBean</ejb-name>
       <jndi-name>ejb/PresentationControllerBean</jndi-name>
       </session>
       </enterprise-beans>
       <resource-managers>
       </resource-managers>
      </jboss>