<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
xdoclet is not being used in either jboss-head or branch4.0. The
descriptors should be in the <br>
[starksm@succubus testsuite]$ ls src/resources/aop/simpleejb/META-INF/<br>
ejb-jar.xml* jboss-service.xml jboss.xml*<br>
<br>
The are just missing from the trunk, and need to be added.<br>
[starksm@succubus testsuite]$ ls src/resources/aop/simpleejb/META-INF/<br>
jboss-service.xml<br>
<br>
Jaroslaw Kijanowski wrote:
<blockquote
cite="midC2CDEFBECFC9A14892BCCFB4C95F48680879BB6E@EX-201.mail.navisite.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<div><font color="#000000" face="Arial" size="2">Hello,</font></div>
<div><font face="Arial" size="2"> When I run the testsuite, I get an
"ejb not bound" error in the org.jboss.test.aop.test.</font><font
color="#000000" face="Arial" size="2">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?<br>
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?</font></div>
<div><font color="#000000" face="Arial" size="2">My temporary
solution for the SimpleBeanUnitTestCase test is as follows:<br>
a) Copy two xml files (attached to this e-mail) to
jboss-head\testsuite\src\resources\aop\simpleejb\META-INF<br>
b) add two lines in jboss-head\testsuite\imports\sections\aop.xml<br>
<jar destfile="${build.lib}/simpleejb.sar"><br>
.<br>
.<br>
.</font></div>
<div><font color="#000000" face="Arial" size="2"> <fileset
dir="${build.resources}/aop/simpleejb"><br>
<include name="META-INF/jboss-service.xml"/><br>
<!-- new lines --><br>
<include name="META-INF/jboss.xml"/><br>
<include name="META-INF/ejb-jar.xml"/><br>
<!-- new lines end --> <br>
</fileset><br>
</jar></font></div>
<div><font color="#000000" face="Arial" size="2"><br>
Regards,<br>
Jaroslaw.</font></div>
<pre wrap="">
<hr size="4" width="90%">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" <a class="moz-txt-link-rfc2396E" href="http://java.sun.com/dtd/ejb-jar_2_0.dtd">"http://java.sun.com/dtd/ejb-jar_2_0.dtd"</a>>
<ejb-jar >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<session >
<description><![CDATA[]]></description>
<ejb-name>test/Simple</ejb-name>
<home>org.jboss.test.aop.simpleejb.SimpleHome</home>
<remote>org.jboss.test.aop.simpleejb.Simple</remote>
<ejb-class>org.jboss.test.aop.simpleejb.SimpleBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<!--
To add session beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called session-beans.xml that contains
the <session></session> markup for those beans.
-->
<!-- Entity Beans -->
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called entity-beans.xml that contains
the <entity></entity> markup for those beans.
-->
<!-- Message Driven Beans -->
<!--
To add message driven beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called message-driven-beans.xml that contains
the <message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
<!-- Relationships -->
<!-- Assembly Descriptor -->
<assembly-descriptor >
<!--
To add additional assembly descriptor info here, add a file to your
XDoclet merge directory called assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->
<!-- finder permissions -->
<!-- transactions -->
<container-transaction >
<method >
<ejb-name>test/Simple</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<!-- finder transactions -->
</assembly-descriptor>
</ejb-jar>
</pre>
<pre wrap="">
<hr size="4" width="90%">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" <a class="moz-txt-link-rfc2396E" href="http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">"http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd"</a>>
<jboss>
<enterprise-beans>
<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jboss-beans.xml that contains
the <session></session>, <entity></entity> and <message-driven></message-driven>
markup for those beans.
-->
<session>
<ejb-name>test/Simple</ejb-name>
<jndi-name>ejb/test/Simple</jndi-name>
</session>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
</pre>
</blockquote>
<br>
</body>
</html>