Hi there! I'm using jboss 3.2.1. I have a session bean and an entity beans. My
session beans refers to my entity beans through local referencing. Also i want
to produce a <local> and <local-home> tags for my entity beans inside my
ejb-jar.xml....and i've added them successfully as reflected by my xml snippet
of ejb-jar.xml for the <entity> tag.
<!-- Entity Beans -->
<entity>
<description><![CDATA[No Description.]]></description>
<ejb-name>TenderConfig</ejb-name>
<local-home>com.uniserv.comn.controller.ejb.entity.tenderconfig.
LocalHomeTenderConfig</local-home>
<local>com.uniserv.comn.controller.ejb.entity.tenderconfig.
LocalTenderConfig</local>
<ejb-class>com.uniserv.comn.controller.ejb.entity.tenderconfig.
TenderConfigEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>com.uniserv.comn.controller.ejb.entity.
tenderconfig.TenderConfigPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>TenderConfig</abstract-schema-name>
</entity>
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your merge directory called entity-beans.xml that contains
the <entity></entity> markup for those beans.
-->
The problem is when i build my build.xml on XDoclet, the ejbdoclet task prints
this error...
[ejbdoclet] <<Generated file [file:G:/TestXDoclet/XDoclet/build/ejb/META-INF/jbo
ss.xml:line 10] Message=[Element "entity" does not allow "local-jndi-name" here.
] is not valid according to its DTD. This might be due to some missing @tags in
your source.>>
[ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method star
t has thrown an exception java.lang.reflect.InvocationTargetException
jboss.xml
_______________________________
<jboss>
<enterprise-beans>
<entity>
<ejb-name>TenderConfig</ejb-name>
<local-jndi-name>TenderConfig</local-jndi-name>
</entity>
<session>
<ejb-name>TerminalSessionFacade</ejb-name>
<jndi-name>TerminalSessionFacade</jndi-name>
</session>
</enterprise-beans>
<resource-managers/>
</jboss>
****** local-jndi-name is invalid accdg to "http://www.jboss.org/j2ee/dtd/jboss.
dtd"
These are my session and entity xdoclet tags for added info.
Session Bean:
__________________________
/**
* @ejb.bean
* name="TerminalSessionFacade"
* display-name="Terminal Session Facade Display Name"
type="Stateless"
* @ejb:env-entry name="Paulo"
* type="java.lang.String"
* value="com.paulo.test"
* @ejb.ejb-ref
* ejb-name = "TenderConfig"
* view-type = "local"
*/
public class TerminalSessionFacadeEJB implements SessionBean {
Entity Bean
____________________________
**
* @ejb.bean
* name ="TenderConfig"
* jndi-name = "ejb.TenderConfig"
* view-type = "local"
* type="CMP"
* cmp-version="2.x"
* schema="TenderConfig"
* @ejb.home
* generate = "true"
* @ejb.interface generate = "true"
* @jboss.table-name table-name = "TenderConfig"
*/
public abstract class TenderConfigEJB implements EntityBean{
Question is where do i go from here? I need to generate the <local> and
<local-hone> tags inside ejb-jar.xml but in doing so, jboss.xml now contains an
ivalid tag accdg to its dtd??? PLease help me.Thanks.
************************************
Paulo A. Bengero
Application Systems Engineer
Team ORION
************************************
------------------------------------------------------------------------
FPI Gateway Scanner scanned email-body and no virus found
------------------------------------------------------------------------