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!
<?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>