facebook

Pb XDoclet with Weblogic

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #212060 Reply

    logan
    Member

    Hi,

    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 ?

    #212064 Reply

    Scott Anderson
    Participant

    Logan,

    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

    #212068 Reply

    logan
    Member

    😀 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 ?

    #212073 Reply

    Scott Anderson
    Participant

    The 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.

    #212074 Reply

    logan
    Member

    I 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’&gt;

    We have to do the substitution manually.

    #212076 Reply

    Scott Anderson
    Participant

    No, 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.

    #212215 Reply

    @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.html

    Automagically filling these is one of the ‘enhancements’ for xdoclet.. see the ‘xdoclet functionality’ thread in the features forum

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Pb XDoclet with Weblogic

You must be logged in to post in the forum log in