0 Replies Latest reply on Nov 19, 2007 3:55 AM by Amar Dhole

    Namespace error while deploying EJB3 ear

    Amar Dhole Newbie

      HI we are in the process of Migrating to EJB3 from 1.1

      in 1.1 descriptor we have following value in ejb-jar.xml

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
      now in EJB3 we have changed it to
      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ejb-jar">
      but JBOSS421 fails to deploy this schema. Any idea why this is happening?

      jboss throws following exception when we are trying to deploy ==>
      org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right
      xml schema or define a valid DOCTYPE!
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet