If you deploy your beans and EJBUtils separately (i.e. they are not in the
same jar file), you cannot use ejb-link in your ejb-jar.xml. Instead, you
have to put the JNDI of the ejb-ref in the jboss.xml. For example:
<enterprise-beans>
<entity>
<ejb-name>UserBean</ejb-name>
<jndi-name>[JNDI of UserBean]</jndi-name>
<configuration-name>Standard CMP EntityBean</configuration-name>
<ejb-ref>
<ejb-ref-name>ejb/UIDHighKeyGenerator</ejb-ref-name>
<jndi-name>[JNDI of UIDHighKeyGenerator]</jndi-name>
</ejb-ref>
</entity>
Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC) Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
[EMAIL PROTECTED]
Vietnam
----- Original Message -----
From: "David M. Karr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 07, 2001 3:14 AM
Subject: [JBoss-user] Deployed ejbutils-deploy.jar, but can't find class
> I'm trying to set up my application to use EJBUtils. I was able to build
it,
> deploy it, and create the table. I'm deploying the "ejbutils-client.jar"
in my
> EAR with a "Class-Path" entry in the EAR manifest. I was able to compile
my
> application, but when I deploy it, it's able to create the tables, but
then I
> get the following exception:
>
> [Container factory] org.jboss.ejb.DeploymentException: Bean
UIDHighKeyGenerator not found within this application.
> [Container factory] at
org.jboss.ejb.Container.setupEnvironment(Container.java:484)
> [Container factory] at
org.jboss.ejb.Container.init(Container.java:360)
> [Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.ja
>
> I think I'm likely doing something wrong in my ejb-jar, but I'm not sure
what
> it is.
>
> The "ejb-jar.xml" for my application has "<ejb-ref>" elements for this
bean
> inside each "<entity>" element that is using the generator to get its PK.
>
> Following this is one "<entity>" element.
>
> ---------------
> <entity>
> <description>User of system</description>
> <ejb-name>UserBean</ejb-name>
> <home>com.intsoft.sgs.ejb.UserHome</home>
> <remote>com.intsoft.sgs.ejb.UserRemote</remote>
> <ejb-class>com.intsoft.sgs.ejb.UserBean</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.String</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-field><field-name>oid</field-name></cmp-field>
> <cmp-field><field-name>userID</field-name></cmp-field>
> <cmp-field><field-name>password</field-name></cmp-field>
> <cmp-field><field-name>lastName</field-name></cmp-field>
> <cmp-field><field-name>firstNameAndInitials</field-name></cmp-field>
> <primkey-field>oid</primkey-field>
> <ejb-ref>
> <ejb-ref-name>ejb/UIDHighKeyGenerator</ejb-ref-name>
> <ejb-ref-type>Session</ejb-ref-type>
> <home>org.ejbutils.uid.UIDHighKeyGeneratorHome</home>
> <remote>org.ejbutils.uid.UIDHighKeyGenerator</remote>
> <ejb-link>UIDHighKeyGenerator</ejb-link>
> </ejb-ref>
> </entity>
> ---------------
>
> --
> ===================================================================
> David M. Karr ; Best Consulting
> [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user