0 Replies Latest reply on Feb 15, 2005 5:14 AM by Alexander Grossert

    Creating SessionBean as WebService

    Alexander Grossert Newbie

      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>

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