1 Reply Latest reply on Dec 23, 2009 7:17 AM by Wolfgang Knauf

    Error encountered when using jboss-eap-4.3

    ritu gupta Newbie

      We are switching from jboss 4.0.3Sp1 to jboss-eap-4.3 but we continue to get this error.

       

      org.jboss.xb.binding.JBossXBException

       

      : Failed to parse source: TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/j2ee', but the target namespace of the schema document is 'http://java.sun.com/xml/ns/javaee'. @ http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd[8,20]

       

      SaxJBossXBParser.java:179)

       

      UnmarshallerImpl.java:169)

       

      EjbJarDDObjectFactory.java:82)

       

      Ejb3HandlerFactory.java:44)

       

      Ejb3HandlerFactory.java:83)

       

      Ejb3Deployment.java:383)

       

      Ejb3Deployment.java:327)

       

      Ejb3Module.java:77)

       

      ServiceMBeanSupport.java:260)

       

      ServiceMBeanSupport.java:243)

       

      ReflectedDispatcher.java:155)

       

      Invocation.java:94)

       

      Invocation.java:86)

       

      AbstractMBeanInvoker.java:264)

       

      MBeanServerImpl.java:659)

       

      ServiceController.java:978)

       

      ServiceController.java:330)

       

      ServiceController.java:273)

       

      ReflectedDispatcher.java:155)

       

      Invocation.java:94)

       

      Invocation.java:86)

       

      AbstractMBeanInvoker.java:264)

       

      MBeanServerImpl.java:659)

       

      MBeanProxyExt.java:210)

       

      EJB3Deployer.java:498)

       

      Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

       

      My ejb-jar.xml :

       

      <?

       

      xml version="1.0" encoding="UTF-8"?>

       

       

      ejb-jar id="ejb-jar_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee" 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_3_0.xsd">

       

      <display-name>ProjectReview</display-name>

       

      <enterprise-beans>

       

      <!-- Session Beans -->

       

      <session id="Session_ProjectReview">

       

      <description><![CDATA[ProjectReviewBean]]></description>

       

      <display-name>ProjectReview</display-name>

       

      <ejb-name>ProjectReview</ejb-name>

       

      <home>com.pearson.pdrm.business.projectReview.ejb.ProjectReviewHome</home>

       

      <local-home>com.pearson.pdrm.business.projectReview.ejb.ProjectReviewLocalHome</local-home>

       

      <local>com.pearson.pdrm.business.projectReview.ejb.ProjectReviewLocal</local>

       

      <ejb-class>com.pearson.pdrm.business.projectReview.ejb.ProjectReviewSession</ejb-class>

       

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

       

      <transaction-type>Container</transaction-type>

       

       

      </session>

       

      <session id="Session_ProjectInitiated">

       

      <description><![CDATA[ProjectInitiatedBean]]></description>

       

      <display-name>ProjectInitiated</display-name>

       

      <ejb-name>ProjectInitiated</ejb-name>

       

      <home>com.pearson.pdrm.business.projectInitiated.ejb.ProjectInitiatedHome</home>

       

      <local-home>com.pearson.pdrm.business.projectInitiated.ejb.ProjectInitiatedLocalHome</local-home>

       

      <local>com.pearson.pdrm.business.projectInitiated.ejb.ProjectInitiatedLocal</local>

       

      <ejb-class>com.pearson.pdrm.business.projectInitiated.ejb.ProjectInitiatedSession</ejb-class>

       

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

       

      <transaction-type>Container</transaction-type>

       

       

      </session>

       

       

       

      <session id="Session_Users">

       

      <description><![CDATA[UsersBean]]></description>

       

      <display-name>Users</display-name>

       

       

      <ejb-name>Users</ejb-name>

       

      <local-home>com.pearson.pdrm.business.users.ejb.UsersLocalHome</local-home>

       

      <local>com.pearson.pdrm.business.users.ejb.UsersLocal</local>

       

      <ejb-class>com.pearson.pdrm.business.users.ejb.UsersSession</ejb-class>

       

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

       

      <transaction-type>Container</transaction-type>

       

       

      </session>

       

      <!--

       

       

       

      <!-- Entity Beans -->

       

      <!--

       

       

       

      <!-- Message Driven Beans -->

       

      <message-driven>

       

      <ejb-name>MailDispatcherMDB</ejb-name>

       

      <ejb-class>com.pearson.pdrm.business.common.mail.MailDispatcherMDB</ejb-class>

       

      <transaction-type>Container</transaction-type>

       

      <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>

       

      <message-driven-destination>

       

      <destination-type>javax.jms.Queue</destination-type>

       

      </message-driven-destination>

       

       

      <resource-ref>

       

      <res-ref-name>jms/QCF</res-ref-name>

       

      <res-type>javax.jms.QueueConnectionFactory</res-type>

       

      <res-auth>Container</res-auth>

       

      </resource-ref>

       

      </message-driven>

       

      <message-driven>

       

      <ejb-name>AppendCommentsMDB</ejb-name>

       

      <ejb-class>com.pearson.pdrm.business.projectReview.ejb.AppendCommentsMDB</ejb-class>

       

      <transaction-type>Container</transaction-type>

       

      <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>

       

       

      <message-driven-destination>

       

      <destination-type>javax.jms.Queue</destination-type>

       

      </message-driven-destination>

       

      <resource-ref>

       

      <res-ref-name>jms/QCF</res-ref-name>

       

      <res-type>javax.jms.QueueConnectionFactory</res-type>

       

      <res-auth>Container</res-auth>

       

      </resource-ref>

       

      </message-driven>

       

      <message-driven>

       

      <ejb-name>DeleteFileMDB</ejb-name>

       

      <ejb-class>com.pearson.pdrm.business.projects.ejb.DeleteFileMDB</ejb-class>

       

      <transaction-type>Container</transaction-type>

       

      <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>

       

       

      <message-driven-destination>

       

      <destination-type>javax.jms.Queue</destination-type>

       

      </message-driven-destination>

       

      <resource-ref>

       

      <res-ref-name>jms/QDelFile</res-ref-name>

       

      <res-type>javax.jms.QueueConnectionFactory</res-type>

       

      <res-auth>Container</res-auth>

       

      </resource-ref>

       

       

      </message-driven>

       

       

       

      </enterprise-beans>

       

       

      <!-- Relationships -->

       

       

      <!-- Assembly Descriptor -->

       

      <!--

       

       

       

      <assembly-descriptor id="AssemblyDescriptor_1">

       

      <!--

       

       

       

      <!-- method permissions -->

       

      <!--

       

       

       

      <!-- transactions -->

       

      <!--

       

       

       

      <!-- finder transactions -->

       

       

      <!-- message destinations -->

       

      <!--

       

       

       

      <!-- exclude list -->

       

      <!--

       

       

      </assembly-descriptor>

       

       

      ejb-jar>

       

      If any one has any idea please help..

       

      Thanks

      </

      To specify an exclude-list element, add a file in the merge directory

      called ejb-exclude-list.xml that contains it.

      -->

      To specify additional message-destination elements, add a file in the merge

      directory called ejb-message-destinations.ent that contains them.

      -->

      To specify additional container-transaction elements, add a file in the merge

      directory called ejb-container-transactions.ent that contains them.

      -->

      To specify additional method-permission elements, add a file in the merge

      directory called ejb-method-permissions.ent that contains them.

      -->

      To specify additional security-role elements, add a file in the merge

      directory called ejb-security-roles.xml that contains them.

      -->

      To specify your own assembly descriptor info here, add a file to your

      XDoclet merge directory called assembly-descriptor.xml that contains

      the <assembly-descriptor></assembly-descriptor> markup.

      -->

      To add entity beans that you have deployment descriptor info for, add

      a file to your XDoclet merge directory called entity-beans.xml that contains

      the <entity></entity> markup for those beans.

      -->

      To add session beans that you have deployment descriptor info for, add

      a file to your XDoclet merge directory called session-beans.xml that contains

      the <session></session> markup for those beans.

      -->

       

       

       

       

      <

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      at $Proxy33.create(Unknown Source)

      at org.jboss.ejb3.EJB3Deployer.create(

      at org.jboss.mx.util.MBeanProxyExt.invoke(

      at org.jboss.mx.server.MBeanServerImpl.invoke(

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

      at org.jboss.mx.server.Invocation.invoke(

      at org.jboss.mx.server.Invocation.dispatch(

      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

      at org.jboss.system.ServiceController.create(

      at $Proxy0.create(Unknown Source)

      at org.jboss.system.ServiceController.create(

      at org.jboss.system.ServiceController$ServiceProxy.invoke(

      at org.jboss.mx.server.MBeanServerImpl.invoke(

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

      at org.jboss.mx.server.Invocation.invoke(

      at org.jboss.mx.server.Invocation.dispatch(

      at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(

      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(

      at org.jboss.ejb3.Ejb3Module.createService(

      at org.jboss.ejb3.Ejb3Deployment.create(

      at org.jboss.ejb3.Ejb3Deployment.deploy(

      at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(

      at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(

      at org.jboss.ejb3.metamodel.EjbJarDDObjectFactory.parse(

      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(