Sounds like the beans are in separate jars.  Then each jar should have its
own
jboss.xml.  Then the jboss.xml for AgenceVoyage should not contain

       <entity>
      <ejb-name>CabineBean</ejb-name>
      <jndi-name>croisiere/CabineHome</jndi-name>
       </entity>

And it should contain an ejb-ref or whatever the jboss.xml tag is for
linking
beans.

florent wrote:

> I try to acces an Entity Bean with an Session Bean.
> I deployed the Entity Bean succesfully
> But when i tried to deploy the Session Bean, i encountered this error :
>
> [Container factory]
>
Deploying:file:/F:/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/agence.jar
> /ejb1004.jar
> [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
> for Bean CabineBean: found in jboss.xml but not in
> ejb-jar.xml
> [Container factory]     at
>
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.ja
> va:287)
> [Container factory]     at
> org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:116)
> [Container factory]     at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:341)
> [Container factory]     at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:272)
>
> EJB-JAR.XML of the Session Bean :
> <?xml version="1.0" encoding="Cp1252"?>
>
> <ejb-jar>
>   <description>agence de voyage - CROISIERE - formation
NETDEV</description>
>   <display-name>Agence de Voyage</display-name>
>   <enterprise-beans>
>     <session>
>       <ejb-name>AgenceVoyage</ejb-name>
>
> <home>netdev.formation.ejb.croisiere.AgenceVoyage.AgenceVoyageHome</home>
>
> <remote>netdev.formation.ejb.croisiere.AgenceVoyage.AgenceVoyage</remote>
>
>
<ejb-class>netdev.formation.ejb.croisiere.AgenceVoyage.AgenceVoyageBean</ejb
> -class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Container</transaction-type>
>
>       <ejb-ref>
>        <ejb-ref-name>croisiere/CabineHome</ejb-ref-name>
>        <ejb-ref-type>Entity</ejb-ref-type>
>        <home>netdev.formation.ejb.croisiere.cabine.CabineHome</home>
>        <remote>netdev.formation.ejb.croisiere.cabine.Cabine</remote>
>
<ejb-link>netdev.formation.ejb.croisiere.cabine.CabineBean</ejb-link>
>
>       </ejb-ref>
>     </session>
>   </enterprise-beans>
> </ejb-jar>
>
> JBOSS.XML of the Session Bean :
> <?xml version="1.0" encoding="Cp1252"?>
>
> <jboss>
>      <secure>true</secure>
>      <container-configurations />
>      <resource-managers />
>      <enterprise-beans>
>        <session>
>       <ejb-name>AgenceVoyage</ejb-name>
>       <jndi-name>croisiere/AgenceVoyage</jndi-name>
>        </session>
>        <entity>
>       <ejb-name>CabineBean</ejb-name>
>       <jndi-name>croisiere/CabineHome</jndi-name>
>        </entity>
>      </enterprise-beans>
> </jboss>
>
> Have you got any solutions for my problem ??
>
> Florent
> www.netdev.net
> [EMAIL PROTECTED]
> PARIS (France)
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]





---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law.  If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender.  Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to