facebook

cmp2 jboss 3.2.2RC1 xdoclet error [Closed]

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

    Hi,

    When I try to run xdoclet on an Entity Bean I get an exception. <<Unknown jboss version number for cmp2 2.4>>

    I’m running

    – RedHat 9.0
    – JDK1.4.2 (Sun)
    – Eclipse 2.1.1
    – MyEclipse 2.5
    – JBoss 3.2.2RC1 (so not 2.4 as the error probably indicates)

    I have a default xdoclet config.

    The stacktrace in .log is as follows

    !MESSAGE file:/home/rku/workspace/demoEjb/xdoclet-build.xml:25: Unexpected error
    !STACK 0
    file:/home/rku/workspace/demoEjb/xdoclet-build.xml:25: Unexpected error
    at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:108)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:189)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:151)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: file:/home/rku/workspace/demoEjb/xdoclet-build.xml:25: XDoclet failed.
    at xdoclet.DocletTask.start(DocletTask.java:461)
    at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
    … 17 more
    Caused by: xdoclet.XDocletException: Unknown jboss version number for cmp2 2.4
    at xdoclet.modules.jboss.ejb.JBossSubTask.execute(JBossSubTask.java:542)
    at xdoclet.XDocletMain.start(XDocletMain.java:48)
    at xdoclet.DocletTask.start(DocletTask.java:458)
    … 18 more
    — Nested Exception —
    file:/home/rku/workspace/demoEjb/xdoclet-build.xml:25: XDoclet failed.
    at xdoclet.DocletTask.start(DocletTask.java:461)
    at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:189)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:151)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: xdoclet.XDocletException: Unknown jboss version number for cmp2 2.4
    at xdoclet.modules.jboss.ejb.JBossSubTask.execute(JBossSubTask.java:542)
    at xdoclet.XDocletMain.start(XDocletMain.java:48)
    at xdoclet.DocletTask.start(DocletTask.java:458)
    … 18 more
    — Nested Exception —
    xdoclet.XDocletException: Unknown jboss version number for cmp2 2.4
    at xdoclet.modules.jboss.ejb.JBossSubTask.execute(JBossSubTask.java:542)
    at xdoclet.XDocletMain.start(XDocletMain.java:48)
    at xdoclet.DocletTask.start(DocletTask.java:458)
    at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:189)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:151)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    #197054 Reply

    I’ve been looking into the xdoclet code a little and it seems it does not know how to map 3.2.x to a 3.2 config.

    Numbers known are:

    “2.4”, “3.0”, “3.0.1”, “3.0.2”, “3.0.3”, “3.2”, “4.0”

    where:
    – 2.4 is the default
    – all 3.0.x map to 3.0,
    – 4.0 maps to 3.2
    – 3.2.x is not known 😥

    I’ve not yet figured out how to fool xdoclet yet.

    So there should either be a release note or something how to deal with this. If there is a way to deal with it.

    Maybe a newer release of the xdoclet-jboss supports 3.2.x (although 4 is already in there. Strange there is no ‘default mapping of 3.2.x to 3.2’ now each new subrelease will be broken

    Any ideas?[/quote]

    #197055 Reply

    😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀

    In the xdoclet properties of the project, one can add jboss to ejbdoclet, select jboss and set the property ‘version’ in the righthand pane to 3.2.

    Then it picks up the right version.

    I had tried a similar thing already, but entered 3.2.2 there stupid me. You have to enter what you want to FAKE

    💡 💡 💡 💡 💡 💡 💡 💡

    #201179 Reply

    Marcus Beyer
    Member

    So this is an XDoclet bug?

    Marcus

    #201184 Reply

    Scott Anderson
    Participant

    Marcus,

    You might call it a bug, but it looks more like XDoclet is really just concerned with major/minor numbers, not the service suffix and doesn’t know how to handle it properly.

    –Scott
    MyEclipse Support

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: cmp2 jboss 3.2.2RC1 xdoclet error [Closed]

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