Solved

Why does my MDB's weblogic-ejb-jar.xml and ejb-jar.xml fail XSD validation?

Posted on 2010-11-16
4
3,172 Views
Last Modified: 2013-12-10
I've created an EJB 3.0 MDB but cannot even get to the point of starting the local WebLogic 10.3.2 server to test because the weblogic-ejb-jar.xml and ejb-jar.xml files fail XSD validation.  

Does anyone have working examples of these two files for an MDB that listens on a queue on WebLogic 10.3.2 server?

Here are the two files as they currently exist in my workspace.  I am surprised they fail validation because in large part I cut/pasted them from another thread in this forum.  The thread was posted about 5 years ago though, so perhaps the format of these files has changed.

ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">
  <display-name>LabAutoODSInterfaceEJB</display-name>
  <enterprise-beans>
    <message-driven>
      <ejb-name>LabAutoODSInterfaceEJB</ejb-name>
      <ejb-class>ejbs.ODSInterfaceMDB</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>auto_acknowledge</acknowledge-mode>
      <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
        <subscription-durability>Durable</subscription-durability>
      </message-driven-destination>
    </message-driven>
  </enterprise-beans>
</ejb-jar>

weblogic-ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
  <!--weblogic-version:10.3.2-->
  <weblogic-enterprise-bean>
    <ejb-name>LabAutoODSInterfaceEJB</ejb-name>
    <message-driven-descriptor>
      <destination-jndi-name>jms/Queue-OdsInterfaceMDB</destination-jndi-name>
    </message-driven-descriptor>
  </weblogic-enterprise-bean>
</wls:weblogic-ejb-jar>

Any and all help is appreciated!
0
Comment
Question by:ZBigBeer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 10

Expert Comment

by:ECollin
ID: 34153131
any stack trace ?
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 34153943
I think you should remove xmlns:ejb attribute from ejb-jar.xml file
0
 
LVL 17

Accepted Solution

by:
sweetfa2 earned 500 total points
ID: 34233519
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">
  <display-name>LabAutoODSInterfaceEJB</display-name>
  <enterprise-beans>
    <message-driven>
      <ejb-name>LabAutoODSInterfaceEJB</ejb-name>
      <ejb-class>ejbs.ODSInterfaceMDB</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-destination-type>javax.jms.Queue</message-destination-type>
    </message-driven>
  </enterprise-beans>
</ejb-jar>

Open in new window



<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
  <!--weblogic-version:10.3.2-->
  
  <wls:weblogic-enterprise-bean>
    <wls:ejb-name>LabAutoODSInterfaceEJB</wls:ejb-name>
    <wls:message-driven-descriptor>
      <wls:destination-jndi-name>jms/Queue-OdsInterfaceMDB</wls:destination-jndi-name>
    </wls:message-driven-descriptor>
  </wls:weblogic-enterprise-bean>
</wls:weblogic-ejb-jar>

Open in new window

0
 

Author Closing Comment

by:ZBigBeer
ID: 34234129
Thank you for the solution.  I am sincerely grateful for your help.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question