users@glassfish.java.net

Tibco EMS secure queue fails to authenticate

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 Sep 2009 10:16:39 PDT

I'm using Jencks 1.1.1 all jar, spring 2.0 and genericjmsra 2.0.

I can connect and my listener comes up an runs fine unless the inbound queue is secured. I've tried in the config file to include the userName and password but this still fails. here is the specific message:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.cingular.jesb.process.BpmBootDriver.bootstrapJesb.bootJesb(bootstrapJesb.java:5)
        at com.cingular.jesb.process.BpmBootDriver.bootstrapJesb.main(bootstrapJesb.java:9)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IJMSService' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [com.cingular.jesb.transport.jmsconnector.EMSServiceImpl]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inboundMessageC' defined in class path resource [EmsConfig.xml]: Initialization of bean failed; nested exception is javax.resource.spi.InvalidPropertyException: Not permitted: invalid name or password
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:370)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
        at com.cingular.jesb.Util.SpringUtil.<init>(SpringUtil.java:14)
        at com.cingular.jesb.Util.SpringUtil.getInstance(SpringUtil.java:21)
        at com.jesb.com.cingular.mdb.JesbSpringListenerMDB.<clinit>(JesbSpringListenerMDB.java:48)
        ... 2 more
Caused by: org.springframework.beans.FatalBeanException: Could not instantiate class [com.cingular.jesb.transport.jmsconnector.EMSServiceImpl]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inboundMessageC' defined in class path resource [EmsConfig.xml]: Initialization of bean failed; nested exception is javax.resource.spi.InvalidPropertyException: Not permitted: invalid name or password
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
        ... 11 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inboundMessageC' defined in class path resource [EmsConfig.xml]: Initialization of bean failed; nested exception is javax.resource.spi.InvalidPropertyException: Not permitted: invalid name or password
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:370)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:203)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:192)
        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:606)
        at org.jencks.JCAContainer.afterPropertiesSet(JCAContainer.java:72)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:57)
        at com.cingular.jesb.transport.jmsconnector.EMSServiceImpl.createApplicationContext(EMSServiceImpl.java:76)
        at com.cingular.jesb.transport.jmsconnector.EMSServiceImpl.<init>(EMSServiceImpl.java:53)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
        ... 15 more
Caused by: Not permitted: invalid name or password
        at com.sun.genericra.util.ExceptionUtils.newInvalidPropertyException(ExceptionUtils.java:42)
        at com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:99)
        at com.sun.genericra.util.ObjectBuilder.build(ObjectBuilder.java:99)
        at com.sun.genericra.inbound.AbstractConsumer.initializeAdministeredObjects(AbstractConsumer.java:95)
        at com.sun.genericra.inbound.AbstractConsumer.<init>(AbstractConsumer.java:63)
        at com.sun.genericra.inbound.async.EndpointConsumer.<init>(EndpointConsumer.java:57)
        at com.sun.genericra.inbound.EndpointConsumerFactory.createEndpointConsumer(EndpointConsumerFactory.java:45)
        at com.sun.genericra.GenericJMSRA.endpointActivation(GenericJMSRA.java:215)
        at org.jencks.JCAConnector.afterPropertiesSet(JCAConnector.java:99)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        ... 37 more
Caused by: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]
        at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:665)
        at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:490)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:97)
        ... 46 more
Caused by: javax.jms.JMSSecurityException: invalid name or password
        at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:499)
        at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:633)
        at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:1772)
        at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:37)
        at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:148)
        at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:201)
        at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:79)
        at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:326)
        at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:652)

I've attached the config file.

Can someone please tell me what the issue might be?

I also use a JmsTemplate to publich the response so I'm certain this might be a problem too! I think it's just a configuration error or admission for both issues but I need help. Thx
[Message sent by forum member 'jt3998' (jt3998_at_att.com)]

http://forums.java.net/jive/thread.jspa?messageID=365592