[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException: queue not bound

bidhudas do-not-reply at jboss.com
Fri Dec 21 00:57:06 EST 2007


I am using the JBOSS 4.2.1 GA.

I could not find anything with respect to Queue creation in console. But same error which is described in the previous post is coming there too(I am using message listner, may be due to that). THis is indeed a web based application.

 I am using default server settings and  jbossmq-destinations-service.xml  file is in server/deploy/jms folder

See the code I am using for getting queue

private static InitialContext getInitialContext() throws NamingException {
  | if(iniCtx == null) {
  | try {
  | InputStream stream = MessageQueue.class.getClassLoader().getResourceAsStream("jndi.properties");
  | Properties prop = new Properties();
  | prop.load(stream);
  | iniCtx = new InitialContext(prop);
  | System.out.println("JNDI " + iniCtx.getEnvironment().toString());
  | } catch (IOException e) {
  | iniCtx = new InitialContext();
  | }
  | }
  | 
  | return iniCtx;
  | }
  | 
  | private void createQueue(String queueName) throws NamingException, JMSException
  | {
  | queue = (Queue) getInitialContext().lookup(queueName);
  | 
  | }
  | 
  | 

and JNDI properties as below
anonymous wrote : 
  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.provider.url=jnp://127.0.0.1:1099
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | 
  | 

See some of the console issues below

anonymous wrote : 
  | 
  | 5:34:28,500 WARN  [ServiceController] Problem starting service jboss.mq:service=PersistenceManager
  | org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  Message recovery may not be accurate; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES))))
  | 	at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:495)
  | 	at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1809)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

And also I am getting the following in the  console


anonymous wrote : --- Incompletely deployed packages ---
  | org.jboss.deployment.DeploymentInfo at 965e150c { url=file:/D:/softs/JBoss/jboss-4.2.1.GA/server/default/deploy/das-estinations-service.xml }
  |   deployer: org.jboss.deployment.SARDeployer at 914f6a
  |   status: Deployment FAILED reason: no protocol: xmdesc/Queue-xmbean.xml; - nested throwable: (java.net.MalformedURLException: no protocol: xmdesc/Queue-xmbean.xml)
  |   state: FAILED
  |   watch: file:/D:/softs/JBoss/jboss-4.2.1.GA/server/default/deploy/das-estinations-service.xml
  |   altDD: null
  |   lastDeployed: 1198211647031
  |   lastModified: 1198211647031
  |   mbeans:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
  |   State: CONFIGURED
  |   I Depend On:
  |     jboss.jdbc:service=metadata,datasource=DefaultDS
  | 
  | ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Error while checking if table aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES))))
  |   I Depend On:
  |     jboss:service=TransactionManager
  |     jboss.jca:service=DataSourceBinding,name=DefaultDS
  | 
  | ObjectName: jboss.mq:service=PersistenceManager
  |   State: FAILED
  |   Reason: org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  Message recovery may not be accurate; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES))))
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=DefaultDS
  |   Depends On Me:
  |     jboss.mq:service=DestinationManager
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.mq:service=PersistenceManager
  |   State: FAILED
  |   Reason: org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  Message recovery may not be accurate; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES))))
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=DefaultDS
  |   Depends On Me:
  |     jboss.mq:service=DestinationManager
  | 
  | ObjectName: jboss.jdbc:service=metadata,datasource=DefaultDS
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     jboss.ejb:service=EJBTimerService,persistencePolicy=database
  | 
  | ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Error while checking if table aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'jbossuser'@'localhost' (using password: YES))))
  |   I Depend On:
  |     jboss:service=TransactionManager
  |     jboss.jca:service=DataSourceBinding,name=DefaultDS
  | 


See the JNDI view below


--------------------------------------------------------------------------------
anonymous wrote : 
  | Web Applications
  | java:comp namespace of the jmx-console.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the DAS-web.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the console-mgr.sar/web-console.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the jbossmq-httpil.sar/jbossmq-httpil.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/jbossmq] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/jbossmq/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/jbossmq] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/jbossmq] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the jboss-web.deployer/ROOT.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the DAS-business.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the http-invoker.sar/invoker.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/jmx-console] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/jmx-console/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/jmx-console] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/jmx-console] (class: javax.naming.LinkRef)
  | 
  | java:comp namespace of the jbossws.sar/jbossws-context.war application:
  |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
  |   |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   |   +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  | 
  | java: Namespace
  |   +- 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)
  |   +- jaas (class: javax.naming.Context)
  |   |   +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
  |   +- comp.original (class: javax.namingMain.Context)
  |   +- timedCacheFactory (class: javax.naming.Context)
  | Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy cannot be cast to javax.naming.NamingEnumeration
  |   +- TransactionPropagationContextExporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
  |   +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
  |   +- Mail (class: javax.mail.Session)
  |   +- comp.ejb3 (class: javax.naming.Context)
  |   |   NonContext: null
  |   +- TransactionPropagationContextImporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
  |   +- TransactionManager (class: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate)
  | 
  | Global JNDI Namespace
  |   +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
  |   +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
  |   +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
  |   +- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
  |   +- console (class: org.jnp.interfaces.NamingContext)
  |   |   +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
  |   +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
  |   +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
  |   +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
  |   +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
  |   +- jmx (class: org.jnp.interfaces.NamingContext)
  |   |   +- invoker (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- RMIAdaptor (proxy: $Proxy48 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)
  |   +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
  |   +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
  |   +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)


Let me know if you need any more info





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114879#4114879

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114879



More information about the jboss-user mailing list