Hello all,

MY LIFE DEPENDS UPON YOUR HELP! URGENT! URGENT! DANGER WILL ROBINSON! ;-)

But seriously, any help would be deeply appreciated and valued for what it
is--free help from otherwise very busy people with better things to do
than deal with my problems.

That said, I've got a Stateless Session Bean backed by three Entity beans
and while working on the jndi lookup code I discovered some anomalous
behavior. Currently the Session Bean uses jndi to lookup the Entity beans
(all deployed separately) using their public jndi names (as opposed to
java:comp/env/...).

I was trying to convert them to use environment references following the
howto (http://www.jboss.org/ejbref_howto.html).  Specifically the section
titled "External ejb reference"; when I ran into this problem.

I add the ejb-ref section to my ejb-jar.xml and jboss.xml exactly as shown
with one exception, instead of a fully qualified jndi URL I use the
jndi-name I deploy the beans with.  My reason for trying to do this to an
otherwise working system is that after my Session bean is done
communicating with the Entity beans I will occasionally get a
NullPointerException which I am unable to catch but shows up (seemingly)
randomly.  I'm diagnosing that further now but am curious as to whether or
not anyone else has encountered such a thing. Note that I'm not yet sure
it isn't my fault, but it only occurs after I make several calls to the
Session bean then goes away then comes back.

But back to the first problem, when I attempt to deploy my bean with the
ejb-ref change I get the following.  Removing the ejb-ref sections makes
this all go away and the bean deploys normally, (almost) fully able to
communicate with the Entity beans backing it up.

[Container factory] Loading standardjboss.xml : jar:file:/C:/opt/jboss2/lib/ext/
jboss.jar!/org/jboss/metadata/standardjboss.xml
[Container factory] jar:file:/c:/windows/TEMP/tmpejbjar28834.jar!/META-INF/jboss
.xml found. Overriding defaults
[Auto deploy] Deployment failed:file:/C:/opt/jboss2/deploy/[Session Bean].jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy 
file:/c:/windows/TEMP/tmpejbjar28834.jar
[Auto deploy]   at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:193)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:565)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy]   at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:285)
[Auto deploy]   at java.lang.Thread.run(Unknown Source)

When I take out the ejb-ref parts of the xml files everything deploys just
fine.

C=)

P.S. JBoss is awesome!

--------------------------------------------------------------------------
There are no significant bugs in our released software that any significant 
  number of users want fixed.  -Bill Gates, Focus Magazine, Oct 23, 1995
--------------------------------------------------------------------------
Caskey <caskey*technocage.com>       ///                   TechnoCage Inc.
--------------------------------------------------------------------------
        "Welcome to the slippery slope, here is your handbasket.
             ...say, can you work 70 hours this week?"



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

Reply via email to