I am still trying to get it to work. Now I am deploying under JBoss Pre2.1

Below is what I experience and current problem.

EAR seems to be deploying dandily until I get to petstoreEjb.jar module

At this moment all the other beans are deployed. But when JBoss tries to
deploy ShoppingCartController bean (part of petstoreEjb.jar module), it is
unable to resolve a reference to TheCatalog bean (which was packaged into
a separate jar, shoppingcartEjb.jar and already deployed by JBoss). This
is the exception that I get:

[Container factory] org.jboss.ejb.DeploymentException: Bean TheCatalog not
found within this application.

[Container factory]     at
org.jboss.ejb.Container.setupEnvironment(Container.java:400)

[Container factory]     at
org.jboss.ejb.Container.init(Container.java:261)

[Container factory]     at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:180)

[Container factory]     at
org.jboss.ejb.Application.init(Application.java:158)

[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:851)

[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:259)

... (the rest of call stack is snipped) ..

I traced the execution in JBuilder and it turns out that when the
container tries to setup the environment, it only looks at it's own
application to resolve the reference to the Bean. JBuilder tells me that
at the time of setting up the environment, getApplication() returns the
name of the petstoreEjb.jar (actually ejb1006.jar which is a copy of it),
not the overall application (petstore.ear). But TheCatalog bean was
deployed from shoppingcartEjb.jar module of the petstore.ear application.
This seems like a JNDI issue. So how do I resolve this?

-------------------------------------------------------------------------
Anatoly Akkerman
Computer Science Dept.
Courant Institute of Mathematical Sciences, NYU
719 Broadway, #715                      Tel: 212 998-3525
New York, NY 10003                      Fax: 212 995-4123
-------------------------------------------------------------------------




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

Reply via email to