0 Replies Latest reply on Nov 16, 2005 6:24 AM by Tapani

    found in jboss.xml but not in ejb-jar.xml

    Tapani Newbie

      I get the following error while deploying. I can't understand what's wrong with my jboss.xml. Both XML files are in the jar in META-INF directory. Without jboss.xml I get no errors and the application works just fine. My JBoss version is 4.0.3 SP1.

      13:09:46,081 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error.
      org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean MyTestEntityBean: found in jboss.xml but not in ejb-jar.xml
       at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:915)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:185)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:506)
      ...


      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>MyTestEntityBean</ejb-name>
       <home>com.openbit.log.server.MyTestHome</home>
       <remote>com.openbit.log.server.MyTestRemote</remote>
       <ejb-class>com.openbit.log.server.MyTestBean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Container</transaction-type>
       </session>
      ...


      JBOSS.XML

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN"
       "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>MyTestEntityBean</ejb-name>
       </session>
      ...


      -Tapani