I'm trying to use the SOAP HTTP interface of the EJB Container but I'm stuck creating the ejb-jar.xml for a simple helloWorld example.
This is the file:
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" 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>
org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!