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