|-----Original Message-----
|From: Richard Katz [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, January 30, 2001 7:06 PM
|To: marc fleury; jBoss
|Subject: Re: [jBoss-User] jndi ear deployment
|
|
|Dear Marc,
|
|I'm trying to just do this completely outside of an ear.  Is that possible?

yes just specify the jndi name the other bean is under, make sure you deploy
the first one first

marc

|
|I'm getting some exceptions when I try this.  jboss.xml, ejb-jar.xml (are
|these approximately correct?) and the output log are below.  There are no
|specific message I can see other than "Error thrown in operation deploy"
|
|Many thanks!
|
|Regards,
|
|Rich Katz
|
|-------------------------------------------------------
|jboss.xml contains:
|===============
|<?xml version="1.0" encoding="UTF-8"?>
|<jboss>
|  <enterprise-beans>
|    <session>
|      <ejb-name>AccountConferenceSession</ejb-name>
|      <jndi-name>AccountConferenceSession</jndi-name>
|       <ejb-ref>
|               <ejb-ref-name>ConferenceSession</ejb-ref-name>
|               <jndi-name>ConferenceSession</jndi-name>
|       </ejb-ref>
|       <ejb-ref>
|            <ejb-ref-name>accountEJB</ejb-ref-name>
|            <jndi-name>accountEJB</jndi-name>
|      </ejb-ref>
|    </session>
|
|  </enterprise-beans>
|
|</jboss>
|
|ejb-jar.xml contains:
|==============
|<?xml version="1.0" encoding="Cp1252"?>
|<ejb-jar>
|  <description>Conference Administration Component</description>
|  <display-name>ConferenceSession</display-name>
|  <enterprise-beans>
|    <session>
|      <ejb-name>ConferenceSession</ejb-name>
|      <jndi-name>ConferenceSession</jndi-name>
|      <home>com.hearme.vcs.ejb.ConferenceSessionHome</home>
|      <remote>com.hearme.vcs.ejb.ConferenceSession</remote>
|      <ejb-class>com.hearme.vcs.ejb.ConferenceSessionBean</ejb-class>
|      <session-type>Stateless</session-type>
|      <transaction-type>Bean</transaction-type>
|    </session>
|  </enterprise-beans>
|</ejb-jar>
|
|Run Log
|================================================
|[Auto deploy] Starting
|[Auto deploy] Auto deploy of
|file:/C:/jboss20/final/deploy/accountconference_ejb
|.jar
|[J2EE Deployer] Deploy J2EE application:
|file:/C:/jboss20/final/deploy/accountco
|nference_ejb.jar
|[J2EE Deployer] Could not delete temporary file:
|/C:/jboss20/final/bin/../tmp/de
|ploy/copy1001.zip
|[J2EE Deployer] Create application accountconference_ejb.jar
|[J2EE Deployer] Installing EJB package: accountconference_ejb.jar
|[J2EE Deployer] Starting module accountconference_ejb.jar
|[Container factory]
|Deploying:file:/C:/jboss20/final/bin/../tmp/deploy/accountco
|nference_ejb.jar/ejb1002.jar
|[Verifier] Verifying
|file:/C:/jboss20/final/bin/../tmp/deploy/accountconference_
|ejb.jar/ejb1002.jar
|[Container factory] Deploying AccountConferenceSession
|[J2EE Deployer] javax.management.RuntimeErrorException: Error thrown in
|operatio
|n deploy
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1642)
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1523)
|[J2EE Deployer]         at
|org.jboss.deployment.J2eeDeployer.startApplication(J2
|eeDeployer.java:645)
|[J2EE Deployer]         at
|org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer
|.java:137)
|[J2EE Deployer]         at java.lang.reflect.Method.invoke(Native Method)
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1628)
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1523)
|[J2EE Deployer]         at
|org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:3
|32)
|[J2EE Deployer]         at
|org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268)
|
|[J2EE Deployer]         at
|org.jboss.ejb.AutoDeployer.startService(AutoDeployer.
|java:311)
|[J2EE Deployer]         at
|org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
|Support.java:92)
|[J2EE Deployer]         at java.lang.reflect.Method.invoke(Native Method)
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1628)
|[J2EE Deployer]         at
|com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
|rverImpl.java:1523)
|[J2EE Deployer]         at
|org.jboss.dependencies.DependencyManager.startMBean(D
|ependencyManager.java:284)
|[J2EE Deployer]         at
|org.jboss.dependencies.DependencyManager.loadService(
|DependencyManager.java:261)
|[J2EE Deployer]         at
|org.jboss.dependencies.DependencyManager.processServi
|ce(DependencyManager.java:243)
|[J2EE Deployer]         at
|org.jboss.dependencies.DependencyManager.startMBeans(
|DependencyManager.java:117)
|[J2EE Deployer]         at org.jboss.Main.<init>(Main.java:162)
|[J2EE Deployer]         at org.jboss.Main$1.run(Main.java:87)
|[J2EE Deployer]         at
|java.security.AccessController.doPrivileged(Native
|Me
|thod)
|[J2EE Deployer]         at org.jboss.Main.main(Main.java:83)
|[J2EE Deployer] Destroying application accountconference_ejb.jar
|[J2EE Deployer] deployment.cfg file deleted.
|[J2EE Deployer] Could not remove file:
|file:/C:/jboss20/final/tmp/deploy/account
|conference_ejb.jar
|[Auto deploy] Deployment
|failed:file:/C:/jboss20/final/deploy/accountconference_
|ejb.jar
|
|
|marc fleury wrote:
|
|> if you specify ejb-ref and the jndi name that the stuff is
|under, separate
|> jar or not it works (just tell the jndi name to the container look at
|> jboss.xml)
|>
|> marc
|>
|> |-----Original Message-----
|> |From: [EMAIL PROTECTED]
|> |[mailto:[EMAIL PROTECTED]]On Behalf Of Richard Katz
|> |Sent: Monday, January 29, 2001 5:46 PM
|> |To: jBoss
|> |Subject: Re: [jBoss-User] jndi ear deployment
|> |
|> |
|> |Hi Rickard,
|> |
|> |Is there a work-around for this? What do we have to do to get
|one bean to
|> |talk with another bean?
|> |
|> |If they're in the same jar and the same ejb-jar.xml will that work?
|> |
|> |Regards,
|> |
|> |Rich Katz
|> |
|> |Rickard Öberg wrote:
|> |
|> |> Hi!
|> |>
|> |> Matt Bauer wrote:
|> |> > I hava an application in an era.  The application.xml file includes
|> |> > three ejb modules, no wars.  Everything deploys nicely
|except for the
|> |> > one ejb module that has ejb-ref's in its ejb-jar.xml.  I get: Bean
|> |> > TheCustomer not found within this application. Do I need to use a
|> |> > jboss.xml?  Isn't this just an internal b2b? Here are some files, to
|> |> > help you understand.
|> |>
|> |> Currently this is treated as an external b2b as we have no way of
|> |> knowing in the ContainerFactory that the EJB-jar is being deployed as
|> |> part of a larger application.
|> |>
|> |> Can you please file this in BugZilla as a bug?
|> |>
|> |> regards,
|> |>   Rickard
|> |>
|> |> --
|> |> Rickard Öberg
|> |>
|> |> Email: [EMAIL PROTECTED]
|> |> http://www.telkel.com
|> |> http://www.jboss.org
|> |> http://www.dreambean.com
|> |>
|> |> --
|> |> --------------------------------------------------------------
|> |> To subscribe:        [EMAIL PROTECTED]
|> |> To unsubscribe:      [EMAIL PROTECTED]
|> |> Problems?:           [EMAIL PROTECTED]
|> |
|> |
|> |
|> |--
|> |--------------------------------------------------------------
|> |To subscribe:        [EMAIL PROTECTED]
|> |To unsubscribe:      [EMAIL PROTECTED]
|> |List Help?:          [EMAIL PROTECTED]
|> |
|>
|> --
|> --------------------------------------------------------------
|> To subscribe:        [EMAIL PROTECTED]
|> To unsubscribe:      [EMAIL PROTECTED]
|> List Help?:          [EMAIL PROTECTED]
|



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to