Looking at your output, Im betting there is something weird with your xml
file.  I note that starting with the line
>                       <ejb-name>ejb/CreateNewLIDRSlsb</ejb-name>
there are big spaces (tabs??) before the tags start.  And in the output, I
note that it binds all your entity beans successfully, has not output for
your first 4 session beans, and an error for the last one.  My guess is that
it's mis-parsing something starting with your first session bean, ending up
with a null for an ejb name, and then successfully parsing again starting
with the 5th SlSb jndi name, and kaking when it tries to bind the null.
(note that its not really a naming exception, but a null pointer exception.)
So fool around with that xml file and see if you can get it to give you more
sensible output.


> -----Original Message-----
> From: Jim Archer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 11:05 PM
> To: JBoss-User
> Subject: [jBoss-User] Does java:/comp/env work with SLSB in PRE2.1?
> 
> 
> Hi All...
> 
> I havd had success getting the java:/comp/env namespace to 
> work from a 
> servlet to lookup an entity bean within an EAR. However, I 
> can't get it to 
> work with stateless session beans. The lookup fails with a naming 
> exception. I'm running jBoss PRE2.1 on JDK 1.3 and W2K.
> 
> Has anyone else done this? I'll paste the deployment portion 
> of server log 
> below, since it shows a JNDI binding failure.
> 
> Thanks!
> 
> Jim
> 
> 
> At deployment time, the following log entries are recorded:
> 
> 
> [J2EE Deployer Default] Deploy J2EE application: 
> file:/C:/jbt-21b/jboss-tomcat-2
> .1-beta/jboss-2.1/deploy/Regnet-ver001a.ear
> [J2EE Deployer Default] Create application Regnet-ver001a.ear
> [J2EE Deployer Default] install module Regnet-ver001a-ejb-11.jar
> [J2EE Deployer Default] inflate and install module 
> Regnet-ver001a-web.war
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [J2EE Deployer Default] Starting module Regnet-ver001a-web.war
> 2001-02-26 03:43:45 - ContextManager: Adding context Ctx( /regnet )
> [Auto deploy] Binding ejb/UarEntity to UarEntity
> [Auto deploy] Binding ejb/DrEntity to DrEntity
> [Auto deploy] Binding ejb/CrEntity to CrEntity
> [Auto deploy] Binding null to CreateNewUARSlsb
> [Auto deploy] java.lang.NullPointerException
> [Auto deploy]   at javax.naming.NameImpl.<init>(Unknown Source)
> [Auto deploy]   at javax.naming.CompoundName.<init>(Unknown Source)
> [Auto deploy]   at 
> org.jnp.interfaces.NamingParser.parse(NamingParser.java:47)
> [Auto deploy]   at 
> org.jboss.tomcat.naming.JbossWebXmlReader.bind(JbossWebXmlRea
> der.java:113)
> [Auto deploy]   at 
> org.jboss.tomcat.naming.JbossWebXmlReader.addLinkRefsToJndiCo
> ntext(JbossWebXmlReader.java:93)
> [Auto deploy]   at 
> org.jboss.tomcat.naming.JbossWebXmlReader.processJbossWebXmlF
> ile(JbossWebXmlReader.java:76)
> [Auto deploy]   at 
> org.jboss.tomcat.naming.JbossWebXmlReader.contextInit(JbossWe
> bXmlReader.java:58)
> [Auto deploy]   at 
> org.apache.tomcat.core.ContextManager.initContext(ContextMana
> ger.java:491)
> [Auto deploy]   at 
> org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:132
> )
> [Auto deploy]   at 
> org.jboss.tomcat.EmbeddedTomcatService.deploy(EmbeddedTomcatS
> ervice.java:103)
> [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1628)
> [Auto deploy]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1523)
> [Auto deploy]   at 
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploy
> er.java:415)
> [Auto deploy]   at 
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:17
> 8)
> [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1628)
> [Auto deploy]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1523)
> [Auto deploy]   at 
> org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
> [Auto deploy]   at 
> org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Auto deploy]   at java.lang.Thread.run(Unknown Source)
> [Container factory] 
> Deploying:file:/C:/jbt-21b/jboss-tomcat-2.1-beta/jboss-2.1/t
> mp/deploy/Default/Regnet-ver001a.ear
> [Verifier] Verifying 
> file:/C:/jbt-21b/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy
> /Default/Regnet-ver001a.ear/ejb1004.jar
> [Container factory] Deploying CrEntity
> [Container factory] Deploying UarEntity
> [Container factory] Deploying DrEntity
> [Container factory] Deploying CreateNewCRSlsb
> [Container factory] Deploying CreateNewDRSlsb
> [Container factory] Deploying ValidateLoginEJBSlsb
> [Container factory] Deploying CreateNewUARSlsb
> [Container factory] Deploying CreateNewLIDRSlsb
> [Container factory] Deployed application: 
> file:/C:/jbt-21b/jboss-tomcat-2.1-beta
> /jboss-2.1/tmp/deploy/Default/Regnet-ver001a.ear
> [J2EE Deployer Default] J2EE application: 
> file:/C:/jbt-21b/jboss-tomcat-2.1-beta
> /jboss-2.1/deploy/Regnet-ver001a.ear is deployed.
> 
> 
> Here is my jboss-web.xml file:
> 
> <jboss-web>
>    <ejb-ref>
>       <ejb-ref-name>ejb/CrEntity</ejb-ref-name>
>       <jndi-name>CrEntity</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>       <ejb-ref-name>ejb/DrEntity</ejb-ref-name>
>       <jndi-name>DrEntity</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>       <ejb-ref-name>ejb/UarEntity</ejb-ref-name>
>       <jndi-name>UarEntity</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>                       <ejb-name>ejb/CreateNewLIDRSlsb</ejb-name>
>       <jndi-name>CreateNewLIDRSlsb</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>                       <ejb-name>ejb/CreateNewCRSlsb</ejb-name>
>       <jndi-name>CreateNewCRSlsb</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>                       <ejb-name>ejb/CreateNewDRSlsb</ejb-name>
>       <jndi-name>CreateNewDRSlsb</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>                       <ejb-name>ejb/ValidateLoginEJBSlsb</ejb-name>
>       <jndi-name>ValidateLoginEJBSlsb</jndi-name>
>    </ejb-ref>
>    <ejb-ref>
>                       <ejb-name>ejb/CreateNewUARSlsb</ejb-name>
>       <jndi-name>CreateNewUARSlsb</jndi-name>
>    </ejb-ref>
> </jboss-web>
> 
> 
> Here is the output of JndiView:
> 
> C:\jBoss_source\jboss\dist\bin>java -jar jndiview.jar
> InitialContext
>   +- DrEntity
>   +- TopicConnectionFactory
>   +- XAQueueConnectionFactory
>   +- jmx
>   +- UILXAQueueConnectionFactory
>   +- RMIXAQueueConnectionFactory
>   +- RMIQueueConnectionFactory
>   +- NonOptimized
>   +- CreateNewCRSlsb
>   +- XATopicConnectionFactory
>   +- CreateNewLIDRSlsb
>   +- UILXATopicConnectionFactory
>   +- UarEntity
>   +- RMIXATopicConnectionFactory
>   +- RMITopicConnectionFactory
>   +- Optimized
>   +- CreateNewDRSlsb
>   +- jmx:macduff:rmi
>   +- invokers
>   |   +- DrEntity
>   |   +- CreateNewDRSlsb
>   |   +- Optimized
>   |   +- CrEntity
>   |   +- CreateNewLIDRSlsb
>   |   +- NonOptimized
>   |   +- UarEntity
>   |   +- CreateNewCRSlsb
>   |   +- CreateNewUARSlsb
>   |   +- ValidateLoginEJBSlsb
>   +- CrEntity
>   +- ValidateLoginEJBSlsb
>   +- CreateNewUARSlsb
>   +- queue
>   |   +- D
>   |   +- C
>   |   +- B
>   |   +- A
>   |   +- controlQueue
>   |   +- testQueue
>   |   +- ex
>   |   +- testObjectMessage
>   |   +- E
>   +- topic
>   |   +- testDurableTopic
>   |   +- example
>   |   +- testTopic
>   |   +- metrics
>   |   +- bob
>   |   +- beancache
>   +- UILQueueConnectionFactory
>   +- QueueConnectionFactory
>   +- UILTopicConnectionFactory
> 
> 
> 
> 
> 
> 
> 
> ********************************************
> I shall be telling this with a sigh
> Somewhere ages and ages hence:
> Two roads diverged in a wood, and I -
> I took the one less traveled by,
> And that has made all the difference.
> 
> - Robert Frost, 1916
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 





---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law.  If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender.  Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.


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

Reply via email to