facebook

error with cmp on jboss [Closed]

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

    benr242
    Participant

    I am having a little problem getting xdoclet to work with cmp for jboss
    version 3.2.3. It works fine for bmp, but when i try to use cmp, i get an
    error message “unknown jboss version number for cmp2 2.4”. Below are the xdoclet comments i used (and doing the same with ‘type = “bmp” works ok), and the error i get using ‘type = “cmp”. Any idea how to fix that? Thanks for any help.

    * @ejb.bean
    * name = “UserEJB”
    * type = “CMP”
    * cmp-version = “2.x”
    * display-name = “UserBean”
    * description = “UserBean EJB”
    * view-type = “both”
    * jndi-name = “ejb/UserEntity”
    * local-jndi-name = “ejb/UserEntityL”

    [ejbdoclet] /home/benr242/dev/projects/RadiusSquaredEJB/xdoclet-build.xml:27: XDoclet failed.
    [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:467)
    [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
    [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
    [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:401)
    [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:338)
    [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:365)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
    [ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:411)
    [ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:176)
    [ejbdoclet] Caused by: xdoclet.XDocletException: Unknown jboss version number for cmp2 2.4
    [ejbdoclet] at xdoclet.modules.jboss.ejb.JBossSubTask.execute(JBossSubTask.java:542)
    [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
    [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:464)
    [ejbdoclet] … 9 more
    [ejbdoclet] — Nested Exception —
    [ejbdoclet] xdoclet.XDocletException: Unknown jboss version number for cmp2 2.4
    [ejbdoclet] at xdoclet.modules.jboss.ejb.JBossSubTask.execute(JBossSubTask.java:542)
    [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
    [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:464)
    [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
    [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
    [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:401)
    [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:338)
    [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:365)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
    [ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:411)
    [ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:176)
    BUILD FAILED: /home/benr242/dev/projects/RadiusSquaredEJB/xdoclet-build.xml:27: Unexpected error
    Total time: 5 seconds

    #205789 Reply

    Greg
    Member

    benr242,

    In your nested jboss element on the ejbdoclet, make sure that the Version attribute is set to 3.2. If it is blank, the JbossSubTask assumes you are using 2.4 which causes the above problem.

    Let me know if this helps.

    #205790 Reply

    benr242
    Participant

    yes sir, that worked fine. thanks greg

    #206078 Reply

    Albren
    Member

    I tried changing it from the xdoclet-build.xml but I still got the same error.
    Where is the exact file should I change the Version attribute?

    This is what I did:
    <taskdef classpathref=”xdoclet.classpath” classname=”xdoclet.modules.ejb.EjbDocletTask” name=”ejbdoclet”/><ejbdoclet ejbSpec=”2.0″ excludedTags=”@version,@author,@todo” destDir=”src” verbose=”true” addedTags=”@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version 3.2″ >

    Thanks for your help in advance.

    #206245 Reply

    Greg
    Member

    Albren,

    Bring up the project properties dialog. Select MyEclipse-XDoclet. You should have a “Standard EJB” configuration loaded. Select the standard ejb configuration item. THen, in the ejbdoclet below, select the jboss item. Then in the attribute window on the right, double-click the Version attribute and set it to 3.2. Also make sure that the Version attribute is checked. Then click OK and that should rebuild your xdoclet-build.xml file with the right settings. If that doesn’t fix your error you might have another problem that you would need to repost more information.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: error with cmp on jboss [Closed]

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