facebook

JBoss’s descriptors

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #236257 Reply

    j.bin
    Member

    Hello!

    Could you, please, remind us how to turn on generation of specific AS files?
    For example, jboss-web.xml?

    Many thanks!

    #236259 Reply

    Scott Anderson
    Participant

    I’d suggest you look at this fine tutorial from one of our partner sites: http://www.laliluna.de/session-bean-facade-entity-beans.html

    While it focuses on generating session beans, it also shows how to properly set up XDoclet for JBoss generation. Simply do that with your web project, rather than an EJB project as shown, and the JBoss descriptors will be generated for you when XDoclet is run.

    #236271 Reply

    j.bin
    Member

    Thanks!

    1. Enabled “MyEclipse-XDoclet” by adding “Standard Web” configuration.
    2. In “webdoclet” added “jbosswebxml” and checked the following properties:
    a. Version
    b. securitydomain
    3. Unchecked “jsptaglib” and “deploymentdescriptor” thus leaving 2:
    a. fileset
    b. jbosswebxml

    4. Applied, OKed
    5. Run XDoclet
    6. Got:

    
    Buildfile: C:\Devel\eclipse\workspace\SecMyFacesExamples\.xdoclet-build.tmp.xml
    N65540:
    
    BUILD FAILED
    C:\Devel\eclipse\workspace\SecMyFacesExamples\.xdoclet-build.xml:50:  is not a legal value for this attribute
    
    Total time: 1 second
    

    Line 50 in xdoclet-build.xml reads:

    
    <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdoclet.classpath"/>
    <webdoclet excludedTags="@version,@author,@todo"  destDir="src"  verbose="true"  addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" >
    

    (all one line)

    What’s next?
    Is the a way to force myEclipse to generate proper deployment descriptors WITHOUT spending an hour in the tutorial?
    Just check a box that says: “Generate Deployment Descriptors” and OK it?

    Many thanks!

    #236278 Reply

    Greg
    Member

    What value did you give the version and securitydomain attributes? The version attribute for the jbosswebxml subtask must be a valid version number. You can check the XDoclet documentation for possible values:
    http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/jboss/web/JBossWebXmlSubTask.html

    #236286 Reply

    j.bin
    Member

    Hi,

    version was given 4.0
    securitydomain: “java:/jaas/SecMyFacesExamples”

    (BTW, any idea why myEclipse does NOT hint me there?)

    Anything about that values, that isn’t quite right?

    Thank you!

    #236289 Reply

    Greg
    Member

    If you have a xdoclet-build.xml file in your project it is no longer being used for running xdoclet. It appears you are using the dynamic build, which creates a temporary .xdoclet-build.xml file and runs xdoclet and then deletes this afterwards. So try switching the XDoclet build specification to “manual” in the MyEclipse-XDoclet properties page under the “Build” tab. This will create a new xdoclet-build.xml file that is update to date with your latest settings. Then run XDoclet and see the line number that those the error. Then inspect the new xdoclet-build.xml file to get a better sense of where the error is.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JBoss’s descriptors

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