4 Replies Latest reply on Apr 30, 2004 3:25 PM by Mike Finn

    Help need with ejb deployment.

    newbeeuser Newbie

      Hi,
      I am trying to deploy a very simple ejb with the following deployment descriptor. I am using jboss 3.2.3. When ever I deploy it gives the following exception. The deployment descriptor is given below. Any help would be highly appreciated.

      Thanks
      Newbee.

      ----------------------------------------------------------------------------------
      10:30:33,066 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.2.3/server/default/deploy/hello.jar
      10:30:33,157 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
      2.3/server/default/deploy/hello.jar
      org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYP
      E!
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet
      aData.java:206)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:141)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      -----------------------------------------------------------------------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtd/ejb-jar_2_0.
      <ejb-jar>
      HelloBean
      <display-name>HelloBean</display-name>
      <enterprise-beans>

      <ejb-name>HelloBean</ejb-name>
      com.ws.HelloHome
      com.ws.HelloRemote
      <ejb-class>com.ws.HelloBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
      <ejb-ref>
      <ejb-ref-name>HelloBean</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      com.ws.HelloHome
      com.ws.HelloRemote
      </ejb-ref>


      </enterprise-beans>
      </ejb-jar>