3 Replies Latest reply on Apr 12, 2004 3:24 PM by Dmitry

    [XmlFileLoader] failed to load jboss.xml

    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)


      Here is my 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'>

      <enterprise-beans>

      <ejb-name>BusinessLogicControllerBean</ejb-name>
      <jndi-name>ejb/BusinessLogicControllerBean</jndi-name>
      <method-attributes>
      </method-attributes>


      <ejb-name>PresentationControllerBean</ejb-name>
      <jndi-name>ejb/PresentationControllerBean</jndi-name>

      </enterprise-beans>
      <resource-managers>
      </resource-managers>



      an also 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>

      <ejb-name>BusinessLogicControllerBean</ejb-name>
      com.standardandpoors.framework.controller.IBusinessLogicControllerHome
      com.standardandpoors.framework.controller.IBusinessLogicController
      <ejb-class>com.standardandpoors.framework.controller.BusinessLogicControllerBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>


      <ejb-name>PresentationControllerBean</ejb-name>
      com.standardandpoors.framework.controller.IPresentationControllerHome
      com.standardandpoors.framework.controller.IPresentationController
      <ejb-class>com.standardandpoors.framework.controller.PresentationControllerBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      </enterprise-beans>
      </ejb-jar>


      Any help is much appreciated!

        • 1. Re: [XmlFileLoader] failed to load jboss.xml
          Dmitry Newbie

          Some of the tags in ejb-jar didn't show up correctly, reposting the ejb-jar.xml with html disabled:


          <?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>

          <ejb-name>BusinessLogicControllerBean</ejb-name>
          com.standardandpoors.framework.controller.IBusinessLogicControllerHome
          com.standardandpoors.framework.controller.IBusinessLogicController
          <ejb-class>com.standardandpoors.framework.controller.BusinessLogicControllerBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Bean</transaction-type>


          <ejb-name>PresentationControllerBean</ejb-name>
          com.standardandpoors.framework.controller.IPresentationControllerHome
          com.standardandpoors.framework.controller.IPresentationController
          <ejb-class>com.standardandpoors.framework.controller.PresentationControllerBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Bean</transaction-type>

          </enterprise-beans>
          </ejb-jar>

          • 2. Re: [XmlFileLoader] failed to load jboss.xml
            Dmitry Newbie

            well, can't figure out how to post the ejb-jar file on this forum, for some reason it chewes up home and remote tags, they don't show up here but they are present in my files.

            So, has anyone experienced similar problem? I tried to search the jboss forum and found no similar topics. Running out of ideas, can someone suggest what should i do next.

            • 3. Re: [XmlFileLoader] failed to load jboss.xml
              Dmitry Newbie

              Oh my!
              I just noticed that in my post everything is badly messed up, the session tag would not show up too. Maybe i need to create a new message and repost the whole thing.