I think it goes into your ejb-jar.xml file ..
not the jboss...

John


----- Original Message -----
From: "David M. Karr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 08, 2001 2:10 AM
Subject: Re: [JBoss-user] Deployed ejbutils-deploy.jar, but can't find class


> >>>>> "Nguyen" == Nguyen Thanh Phong <[EMAIL PROTECTED]>
writes:
>
>     Nguyen> If you deploy your beans and EJBUtils separately (i.e. they
are not in the
>     Nguyen> same jar file), you cannot use ejb-link in your ejb-jar.xml.
Instead, you
>     Nguyen> have to put the JNDI of the ejb-ref in the jboss.xml. For
example:
>
>     Nguyen>     <enterprise-beans>
>     Nguyen>         <entity>
>     Nguyen>             <ejb-name>UserBean</ejb-name>
>     Nguyen>             <jndi-name>[JNDI of UserBean]</jndi-name>
>     Nguyen>             <configuration-name>Standard CMP
EntityBean</configuration-name>
>     Nguyen>             <ejb-ref>
>     Nguyen>
<ejb-ref-name>ejb/UIDHighKeyGenerator</ejb-ref-name>
>     Nguyen>                 <jndi-name>[JNDI of
UIDHighKeyGenerator]</jndi-name>
>     Nguyen>             </ejb-ref>
>     Nguyen>         </entity>
>
> So a block like this goes into the "jboss.xml", and does anything similar
go
> into the "ejb-jar.xml" for my application?  I've tried three variations,
with
> no success.
>
> If I just put the following into my jboss.xml (I get the "jndi-name" value
from
> the "jboss.xml" from the ejbutils-deploy.jar):
> -------------------
>   <session>
>    <ejb-name>UIDHighKeyGenerator</ejb-name>
>    <jndi-name>ejb/UIDHighKeyGenerator</jndi-name>
>    <configuration-name></configuration-name>
>   </session>
> -------------------
>
> then I get the following:
> -------------------
> [Container factory] failed to load jboss.xml.  There could be a syntax
error.
> [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
for Bean UIDHighKeyGenerator: found in jboss.xml but not in ejb-jar.xml
> [Container factory]     at
org.jboss.metadata.ApplicationMetaData.importJbossXml
(ApplicationMetaData.java:387)
> -------------------
>
> If I instead put the following into my application's ejb-jar.xml, inside
the
> "<entity>" element that is referencing the session bean (and not include
the
> "jboss.xml" block):
> -------------------
>    <ejb-ref>
>     <ejb-ref-name>ejb/UIDHighKeyGenerator</ejb-ref-name>
>     <ejb-ref-type>Session</ejb-ref-type>
>     <jndi-name>ejb/UIDHighKeyGenerator</jndi-name>
>     <home>org.ejbutils.uid.UIDHighKeyGeneratorHome</home>
>     <remote>org.ejbutils.uid.UIDHighKeyGenerator</remote>
>    </ejb-ref>
> -------------------
>
> then I get the following:
> -------------------
> [Container factory] org.jboss.ejb.DeploymentException: ejb-ref
ejb/UIDHighKeyGenerator, expected either ejb-link in ejb-jar.xml or
jndi-name in jboss.xml
> [Container factory]     at
org.jboss.ejb.Container.setupEnvironment(Container.java:495)
> -------------------
>
> If I instead add them both, I get this, which is the same as the first
case:
> -------------------
> [Container factory] failed to load jboss.xml.  There could be a syntax
error.
> [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
for Bean UIDHighKeyGenerator: found in jboss.xml but not in ejb-jar.xml
> [Container factory]     at
org.jboss.metadata.ApplicationMetaData.importJbossXml
(ApplicationMetaData.java:387)
> -------------------
>
> --
> ===================================================================
> 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

Reply via email to