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

1.: When I try to deploy the jar file 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!

I am working on a Solaris 9 server that doesn't have internet access. Could 
this be a problem?

2.: When I try to validate the file with Cooktop at a PC with Internet access 
it tells me that I am using the element <ejb-jar> allthough it has not been 
defined by the schema.

3.: When I download ejb-jar_2_1.xsd and tell the xml file to look for a local 
reference the document is valid.

4.: I also cannot use the ejb-jar_2_0.dtd because is doesn't define the element 
<service-endpoint>.

Maybe I am just blind and cannot see the obvious. Any hint is welcome!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866629#3866629

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866629


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

Reply via email to