2 Replies Latest reply on Mar 7, 2002 10:16 AM by J Aaron Farr

    jboss.xml Error for MDB

    J Aaron Farr Newbie

      When deploying a very simple MDB, I get the following error:
      ...
      [14:54:41,382,XmlFileLoader] failed to load jboss.xml. There could be a syntax error.

      [14:54:41,382,ContainerFactory] DeploymentError
      org.jboss.deployment.DeploymentException: Next character must be ">" terminating element "ejb-name"., Cause: org.xml.sax.SAXParseException: Next character must be ">" terminating element "ejb-name".
      ...

      I've been over and over my jboss.xml file and I can't seem to figure out why this error would be thrown. Everything appears to be valid! I've included the jboss.xml and ejb-jar.xml below. Also, if it matters, I'm developing in JBuilder6.

      Could there be some other reason I'm getting this message other than an xml syntax problem?

      Thanks!
      jaaron

      <!-- jboss.xml -->
      <?xml version="1.0"?>

      <enterprise-beans>
      <message-driven>
      <ejb-name>LogToFile</ejb-name>
      <destination-jndi-name>topic/testTopic</destination-jndi-name>
      <resource-ref>
      <res-ref-name>jms/TCF</res-ref-name>
      <jndi-name>TopicConnectionFactory</jndi-name>
      </resource-ref>
      </message-driven>
      </enterprise-beans>



      <!-- 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>
      <message-driven>
      <display-name>LogToFile</display-name>
      <ejb-name>LogToFile</ejb-name>
      <ejb-class>dataloggers.LogToFileBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>NonDurable</subscription-durability>
      </message-driven-destination>
      <resource-ref>
      <res-ref-name>jms/TCF</res-ref-name>
      <res-type>javax.jms.TopicConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>