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

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

    dmitry_ame

      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>
      


        • 1. Re: [XmlFileLoader] failed to load jboss.xml (second attempt
          dmitry_ame

          The error messsage claims that BusinessLogicControllerBean found in jboss.xml but not in ejb-jar.xml. As far as i can tell the BusinessLogicControllerBean is provided in both just fine. Can someone look to make sure I'm not misspelling anything (second pair of eyes always helps).
          It looks more like a jboss bug to me at this point. If someone came across this problem before, what's the work around solution.
          Please help.

          • 2. Re: [XmlFileLoader] failed to load jboss.xml (second attempt
            dmitry_ame

            I thouhgt may be there is some hidded character at the end of line -- removing all EOLs and putting the whole file on one line didn't help.
            I also copied pasted the BusinessLogicControllerBean string in ejb-name element from ejb-jar.xml to jboss.xml -- no much luck there.

            • 3. Re: [XmlFileLoader] failed to load jboss.xml (second attempt
              dmitry_ame

              I'm also noticing the forum search functionality does not seem to work as it should be. I could not find any related postings on the jboss's forums, but google finds some (unfortunately already expired) pages pointing to the jboss's urls that look like an old style URL's (i guess there was a major jboss.org site redesign some time ago). Does anyone know how this forum works, does it move messages into archive after a while so they can't be found any more.
              At this point any help is much appreciated.

              • 4. Re: [XmlFileLoader] failed to load jboss.xml (second attempt
                dmitry_ame

                That's funny,
                I can't even find my own posting any more.
                The watch topic does not work as well.
                How useful is this forum after all.

                Sorry guys, I'm loosing faith here.