[jboss-dev-forums] JBoss AS 5 and XDoclet
Jaroslaw Kijanowski
jaroslaw.kijanowski at jboss.com
Thu Aug 10 21:52:14 EDT 2006
Hello,
When I run the testsuite, I get an "ejb not bound" error in the org.jboss.test.aop.test.SimpleBeanUnitTestCase. "ejb" should be bound thanks xdoclet, which generates the necessary ejb-jar.xml. This is the way it was done in JBAS4. What about JBAS5?
In org.jboss.test.aop.simpleejb.SimpleBean.java there are still tags which allow to generate the ejb-jar.xml file, but XDoclet isn't enabled. Is XDoclet history? How should this file be generated? maybe "no xml files" strategy thanks ejb3.0 annotations? or should this file be generated manually?
My temporary solution for the SimpleBeanUnitTestCase test is as follows:
a) Copy two xml files (attached to this e-mail) to jboss-head\testsuite\src\resources\aop\simpleejb\META-INF
b) add two lines in jboss-head\testsuite\imports\sections\aop.xml
<jar destfile="${build.lib}/simpleejb.sar">
.
.
.
<fileset dir="${build.resources}/aop/simpleejb">
<include name="META-INF/jboss-service.xml"/>
<!-- new lines -->
<include name="META-INF/jboss.xml"/>
<include name="META-INF/ejb-jar.xml"/>
<!-- new lines end -->
</fileset>
</jar>
Regards,
Jaroslaw.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20060810/68de48ef/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ejb-jar.xml
Type: text/xml
Size: 2270 bytes
Desc: ejb-jar.xml
Url : http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20060810/68de48ef/attachment.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jboss.xml
Type: text/xml
Size: 670 bytes
Desc: jboss.xml
Url : http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20060810/68de48ef/attachment-0001.xml
More information about the jboss-dev-forums
mailing list