- This topic has 6 replies, 3 voices, and was last updated 20 years, 6 months ago by
Ronald van Kuijk.
-
AuthorPosts
-
loganMemberHi,
Something strange…
I’ve created an EJB project and run XDoclet (deploymentdescriptor, fileset, homeinterface, packagesubstitution, remoteinterface, session, weblogic). The ejb-jar.xml is created in the META-INF directory and the weblogic-ejb-jar.xml is created in the src directory (with WLS 6.0 informations unfortunately).
When I tried to deploy my EJB with MyEclipse, the deployment is OK in MyEclipse but KO in WLS 8.1 SP2 (impossible to view the deployment descriptors in the WLS console manager – java exception in my client). When I moved the weblogic-ejb-jar.xml in the META-INF directory, the deployment was OK in MyEclipse and OK in WLS 8.1 SP2 (possible to see the deployment descriptors and no java exception in my client).Did I do something wrong with the deployment ?
Is it possible to have WLS 8.1 informations in the deployment descriptors ?
Scott AndersonParticipantLogan,
You need to set the destDir and version attributes of the Weblogic subtask in your project’s XDoclet configuration. The XDoclet documentation for that subtask is available here:
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/bea/wls/ejb/WebLogicSubTask.html
loganMember😀 Thanks !
Does it mean that it is not possible to generate deployment descriptors for WLS version 8.1 SP2 ? Only 6.0, 6.1 and 7.0 ?
Scott AndersonParticipantThe 7.0 descriptors are supported by WLS 8.1. In fact, I believe the contents are identical. You’ll need to check the XDoclet forums to see if explicit 8.1 support is planned (http://xdoclet.sourceforge.net), but the 7.0 descriptors will work great.
loganMemberI found this in a BEA example :
<!DOCTYPE weblogic-ejb-jar PUBLIC
‘-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN’
‘http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd’>We have to do the substitution manually.
Scott AndersonParticipantNo, you really don’t. You *could* use the generated WebLogic 7.0 DTD, unless there is something new in 8.1 that you simply must access. Otherwise, you’re just fine leaving the generated DTD’s as they are.
Ronald van KuijkMember@support-scott wrote:
You need to set the destDir and version attributes of the Weblogic subtask in your project’s XDoclet configuration. The XDoclet documentation for that subtask is available here:
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/bea/wls/ejb/WebLogicSubTask.htmlAutomagically filling these is one of the ‘enhancements’ for xdoclet.. see the ‘xdoclet functionality’ thread in the features forum
-
AuthorPosts