[jboss-user] [Beginners Corner] - HELP: javax.naming.NameNotFoundException: comp not bound
cnbs
do-not-reply at jboss.com
Fri Aug 4 06:32:40 EDT 2006
Can't get java:comp namespace on JBoss 4.0.4
My application deploys without any exceptions, but its own namespace isn't created.
When i try to execute something like this :
ctx.lookup("java:comp/env/..");
i get this:
javax.naming.NameNotFoundException: comp not bound
What can i try to do with this?
This is my JNDIView list() output:
java: Namespace
|
| +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
| +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
| +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
| +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
| +- comp (class: javax.naming.Context)
| +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
| +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
| +- jaas (class: javax.naming.Context)
| | +- other (class: org.jboss.security.plugins.SecurityDomainContext)
| | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
| | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
| | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
| +- timedCacheFactory (class: javax.naming.Context)
| Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
| +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
| +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
| +- Mail (class: javax.mail.Session)
| +- comp.ejb3 (class: javax.naming.Context)
| | NonContext: null
| +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
| +- TransactionManager (class: org.jboss.tm.TxManager)
|
|
| Global JNDI Namespace
|
| +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
| +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
| +- EventDispatcher (class: org.jboss.ws.eventing.mgmt.DispatcherDelegate)
| +- UserTransactionSessionFactory (proxy: $Proxy35 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
| +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
| +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
| +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
| +- topic (class: org.jnp.interfaces.NamingContext)
| | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
| | +- testTopic (class: org.jboss.mq.SpyTopic)
| | +- securedTopic (class: org.jboss.mq.SpyTopic)
| +- queue (class: org.jnp.interfaces.NamingContext)
| | +- A (class: org.jboss.mq.SpyQueue)
| | +- testQueue (class: org.jboss.mq.SpyQueue)
| | +- ex (class: org.jboss.mq.SpyQueue)
| | +- DLQ (class: org.jboss.mq.SpyQueue)
| | +- D (class: org.jboss.mq.SpyQueue)
| | +- C (class: org.jboss.mq.SpyQueue)
| | +- B (class: org.jboss.mq.SpyQueue)
| +- myApp-ear (class: org.jnp.interfaces.NamingContext)
| | +- MyFirstBean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy78 implements interface MyFirstRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
| | +- MySecondBean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy67 implements interface MySecondRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
| +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
| +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
| +- jmx (class: org.jnp.interfaces.NamingContext)
| | +- invoker (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor (proxy: $Proxy34 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| | +- rmi (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
| +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
| +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963136#3963136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963136
More information about the jboss-user
mailing list