Solved

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

Posted on 2010-11-16
4
3,093 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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