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">
<description>Complete Test Application</description>
<!-- Jar holding helper classes -->
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:
That points to here:
I don't think there is anything wrong with the ejb element syntax, or the way the jar is built:
It has been working for many years in many servers (currently in OC4J, but Tomcat also).
The EJB deploys well to weblogic without the <java> reference, my issue is related to the <java> element.