This discussion is archived
3 Replies Latest reply: Dec 7, 2012 7:19 AM by user696 RSS

Weblogic 10.3.5 deploy application.xml with <java>

945123 Newbie
Currently Being Moderated
I have an application with an ejb, that I am migrating from OC4J.
When I try to deploy to Weblogic 10.3.5 I get the following error:
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected element 'alt-dd@http://java.sun.com/xml/ns/javaee' instead of 'java@http://java.sun.com/xml/ns/javaee' here in element module@http://java.sun.com/xml/ns/javaee:<null>

This is my application.xml:
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">

<application>
<display-name>Test-Application</display-name>
<description>Complete Test Application</description>

<module>
<ejb>test.admin.ejb.AdminCtrl.jar</ejb>

<!-- Jar holding helper classes -->
<java>commonclasses.jar</java>
</module>
</application>

Weblogic seems to be complaining about the java element, but in the J2EE application.xml reference it is allowed.

I am new to EJB. Have others encountered this issue? How can I resolve it?
I am able to deploy the ear if I remove the <java> element. What is the significance of removing the <java> element?

I have followed the documentation here:
http://docs.oracle.com/cd/E21764_01/web.1111/e13706/app_xml.htm#i1079446

That points to here:
http://java.sun.com/xml/ns/javaee/application_5.xsd

Any pointers or advice is greatly appreciated.
S

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points