1 Reply Latest reply on Oct 15, 2002 7:34 PM by icordoba

    DeploymentException when deploying beans in 2 jar files

    icordoba

      Hi there,
      I am trying to deploy some jar EJB files that work great on Pramati J2EE server.
      After inserting the <ejb-link> tags, I can deploy the main jar in my application (with user, role, auth, ... EJBs). the problem is that when I try to deploy a second jar file, with just one session bean (an IMAP manager) that links to some EJBs in the first jar, I get:
      org.jboss.deployment.DeploymentException: Bean AuthorizationBeanskios not found within this application.

      Do I have to do anything special in JBoss/<ejb-link> tag to specify that the linked EJBs are in another jar?

      Here I enclose the logs:

      00:00:18,325 INFO [MainDeployer] Starting deployment of package: file:/Volumes/iPod/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/ServEngineEJB.jar
      00:00:19,076 INFO [EjbModule] Creating
      00:00:19,134 INFO [EjbModule] Deploying ComponentBean
      00:00:19,170 INFO [EjbModule] Deploying RoleBean
      00:00:19,353 INFO [EjbModule] Deploying LicenseBean
      00:00:19,394 INFO [EjbModule] Deploying UserBean
      00:00:19,434 INFO [EjbModule] Deploying MaxManagerBean
      00:00:19,612 INFO [EjbModule] Deploying AuthorizationBeanskios
      00:00:19,659 INFO [EjbModule] Deploying LMBean
      00:00:19,693 INFO [EjbModule] Deploying UserManagerBean
      00:00:19,893 INFO [EjbModule] Deploying MailRelayBean
      00:00:19,926 INFO [EjbModule] Deploying AdminManagerBeanskios
      00:00:20,491 INFO [EjbModule] Created
      00:00:20,495 INFO [EjbModule] Starting
      00:00:21,970 INFO [EjbModule] Started
      00:00:21,973 INFO [MainDeployer] Deployed package: file:/Volumes/iPod/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/ServEngineEJB.jar

      When I deploy the second jar:

      00:05:48,626 INFO [MainDeployer] Starting deployment of package: file:/Volumes/iPod/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/ServEngineMailEJB.jar
      00:05:49,053 INFO [EjbModule] Creating
      00:05:49,100 INFO [EjbModule] Deploying IMAPMailboxManagerBean
      00:05:49,347 INFO [EjbModule] Created
      00:05:49,351 INFO [EjbModule] Starting
      00:05:49,361 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=IMAPMailboxManagerBean,service=EJB
      org.jboss.deployment.DeploymentException: Bean AuthorizationBeanskios not found within this application.
      at org.jboss.ejb.Container.setupEnvironment(Container.java:947)
      at org.jboss.ejb.Container.start(Container.java:566)
      at org.jboss.ejb.StatefulSessionContainer.start(StatefulSessionContainer.java:246)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)