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: anonymous wrote : | 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? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866647#3866647 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866647 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
