Hello,
I think you need another file called weblogic-ejb-jar.xml specific for
WebLogic. An example:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0
EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>MyEJB</ejb-name>
<persistence-descriptor>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>5.1.0</type-version>
<type-storage>META-INF/WL-CMP-TYPES/CMP_WebLogic_CMP_RDBMS962204019911.xml</
type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>5.1.0</type-version>
</persistence-use>
</persistence-descriptor>
<jndi-name>MyEJBJNDIName</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Pay attention on <jndi-name> tag.
... But if you don't want problems, use the WebLogic EJBDeployerTool (java
weblogic.EJBDeployerTool).
Regards.
Luis F. Canals Samaniego
CEDETEL
Parque Tecnologico de Boecillo
Edificio Centro, Parcela 109
E-47151 Boecillo (Valladolid)
Tfno: +34 983 54 65 02
Fax: +34 983 54 66 96
-----Mensaje original-----
De: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]En nombre de Naresh Sharma
Enviado el: lunes 3 de julio de 2000 8:34
Para: [EMAIL PROTECTED]
Asunto: EJBC Found Errors ???
Hi gurus,
I have developed a bean and trying to deploy it in the
Weblogic server but ejbc compiler gives error with
following message.
ERROR: Error from ejbc: The JNDI name of bean
doRegisterBean was not set
ERROR: ejbc found errors
and this is my XML file
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems,
Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>doRegisterBean</ejb-name>
<home>com.xyz.DoRegisterHome</home>
<remote>com.xyz.DoRegister</remote>
<ejb-class>com.xyz.DoRegisterBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>doRegisterBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
please let me know what's wrong with it?
Thanks
Naresh
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".