0 Replies Latest reply on May 23, 2005 11:09 AM by Richard Tella

    'Element type

    Richard Tella Newbie

      I'm trying to deploy an .ear file that contains a very simple client that calls an EJB. I get this error when deploying the .ear to Jboss 4.0.1sp1 on Redhat AS3.0. The jboss-client.xml does declare jboss-client! I've verified it against the jboss_client_4_0.dtd using an XML editor. Here it is:

      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
      <jboss-client>
      <jndi-name>TestClient</jndi-name>
      <ejb-ref>
      <ejb-ref-name>ejb/TradeSession</ejb-ref-name>
      <jndi-name>ejb/TradeSession</jndi-name>
      </ejb-ref>
      </jboss-client>


      The full error message is
      ERROR [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File META-INF/jboss-client.xml process error. Line: 3. Error message: Element type "jboss-client" must be declared
      .

      The jboss-client.xml is in a .jar file under the META-INF directory. The error happens when the .jar file is part of an .ear, and when it is deployed separately. What could cause this error?


      thanks for your help,

      Rich