On Sep 5, marc fleury quoth:
> > ejb-jar.xml
> > <session>
> > <ejb-name>ESSB</ejb-name>
> > <jndi-name>foo/ESSB</jndi-name>
> > <configuration-name>Default Stateless
> SessionBean</configuration-name>
>
> Remove this ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> You should not specify the configuration name at all in ejb-jar.xml
> and even if you did it would have to go into the jboss.xml... but
> since you don't specify anything don't even bother.
>
> What gave you the idea to put it there? where did you get this idea from?
EJX put it there. It doesn't seem to affect deployment without the
<ejb-ref/> though. The only part I remove to achieve successful deployment
is the <ejb-ref/> tag. I removed the configuration-name tag and added
back the <ejb-ref/> entry and the bean successfully deployed. I then
modifed the bean to use the java:comp/env/foo reference and get the
following on the lookup:
javax.naming.NamingException: Could not dereference object. Root exception is
java.lang.NullPointerException
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:265)
at javax.naming.InitialContext.lookup(Unknown Source)
...
Different, but not better. This is the jboss console output:
[Container factory] Binding [foo] to internal JNDI source: null
[Container factory] Binding an EJBReference [foo]
[Container factory] Bound [SB] to [app/SB]
My suspicion is the JNDI source: null. Here is the relevant xml sections:
jboss.xml: (for sure this time)
<enterprise-beans>
<session>
<ejb-name>[SB]</ejb-name>
<jndi-name>[app/SB]</jndi-name>
<ejb-ref>
<ejb-ref-name>[foo/EB]</ejb-ref-name>
<jndi-name>[foo/bar/EB]</jndi-name>
</ejb-ref>
</session>
</enterprise-beans>
ejb-jar.xml:
<enterprise-beans>
<session>
<ejb-name>SB</ejb-name>
<home>foo.SBHome</home>
<remote>foo.SB</remote>
<ejb-class>foo.SBEJSSB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>[foo/EB]</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>foo.bar.EBHome</home>
<remote>foo.bar.EB</remote>
</ejb-ref>
</session>
</enterprise-beans>
Ugh, I just realized that I labeled the xml fragments from my first
posting backwards. Sorry about the confusion.
C=)
--------------------------------------------------------------------------
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]