[jboss-user] [EJB/JBoss] - Namespace error while deploying EJB ear

AmarDhole do-not-reply at jboss.com
Mon Nov 19 05:00:57 EST 2007


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 
aData.java:339) 
Thanks 
Amar

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

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



More information about the jboss-user mailing list