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