- This topic has 4 replies, 3 voices, and was last updated 21 years, 1 month ago by
Greg.
-
AuthorPosts
-
benr242ParticipantI 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
GregMemberbenr242,
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.
benr242Participantyes sir, that worked fine. thanks greg
AlbrenMemberI 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.
GregMemberAlbren,
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.
-
AuthorPosts