0 Replies Latest reply on Dec 28, 2005 2:17 PM by newbeeuser

    ejb deployment problem

    newbeeuser Newbie

      I am trying to deploy a simple hello bean ejb on jboss4.03 sp1
      I am getting following exception

      17:26:30,281 ERROR [MainDeployer] Could not create deployment: file:/C:/software
      org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right
      xml schema or define a valid DOCTYPE!

      The ejb-jar.xml is given below
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC
      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"

      <session-type> Stateless</session-type>

      Please suggest how can the error be removed.

      Any help will be highly appreciated.
      Thanks a lot