0 Replies Latest reply on Feb 15, 2005 9:29 AM by astrachanschaf

    Validating ejb-jar.xml

    astrachanschaf

      I am trying to create a webservice via a stateless session bean. When I try to deploy the jar archive I get this error message:


      org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!


      This is my ejb-jar.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
      <display-name>Hello Service Bean</display-name>
       <enterprise-beans>
       <session>
       <ejb-name>HelloServiceEJB</ejb-name>
       <service-endpoint>helloservice.HelloIF</service-endpoint>
       <ejb-class>helloservice.HelloServiceBean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Container</transaction-type>
       </session>
       </enterprise-beans>
      </ejb-jar>
      

      The machine I am working on does not have internet access, which might be the problem. So I have tried to use the local xsd file provided by the JBoss installation for the schemaLocation but I always get the same error.

      Does someone know what I have to do to make JBoss use the schemas in the docs/ directory?