WebSphere Application Server - using launchClient.sh with global security enabled

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > November 2005 > using launchClient.sh with global security enabled





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author using launchClient.sh with global security enabled
Ninad

2005-11-22, 2:49 am

Hi,

I have a question:

I was using following command to run my JMS client:

<bin-path>/launchClient.sh <ear-file> -CCclasspath=<some-path>

It was working perfectly fine, when the global security was off.

Now after turing the global security on, I am getting following exception in
my client:

javax.jms.JMSException: CWSIA0241E: An exception was received during the
call to the method JmsManagedConnectionFactoryImpl.createConnection:
com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not
possible to contact a messaging engine in bus ContentBus2..
at
com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:225)
at
com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:148)
at jmsplugin.JMSManager.setConnection(JMSManager.java:138)
at jmsplugin.JMSManager.<init>(JMSManager.java:71)
at jmsplugin.JMSManager.getInstance(JMSManager.java:95)
at jmsplugin.JMSCRPManager.initJMSResources(JMSCRPManager.java:125)
at jmsplugin.JMSCRPManager.<init>(JMSCRPManager.java:89)
at jmsplugin.JMSCRPManager.main(JMSCRPManager.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at
com.ibm.websphere.client.applicationclient.launchClient. createContainerAndLaunchApp(launchClient
.java:649)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E:
It is not possible to contact a messaging engine in bus ContentBus2.
at
com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. remoteBootstrap(TrmSICoreConnectionFacto
ryImpl2.java:374)
at
com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. createConnection(TrmSICoreConnectionFact
oryImpl2.java:147)
at
com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. createConnection(TrmSICoreConnectionFact
oryImpl2.java:95)
at
com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createCoreConnection(JmsJcaConnectionFac
toryImpl.java:498)
at
com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createCoreConnection(JmsJcaConnectionFac
toryImpl.java:434)
at
com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createConnection(JmsJcaConnectionFactory
Impl.java:277)
at
com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:195)
... 20 more
12:53:32.639 : jmsplugin.JMSManager : [P=191551:O=0:CT] INFO : Class:class
javax.jms.JMSException
12:53:32.640 : jmsplugin.JMSCRPManager : [P=191551:O=0:CT] ERROR : Caught
following exception:
javax.jms.JMSException: CWSIA0241E: An exception was received during the
call to the method JmsManagedConnectionFactoryImpl.createConnection:
com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not
possible to contact a messaging engine in bus ContentBus2..
at jmsplugin.JMSManager.<init>(JMSManager.java:84)
at jmsplugin.JMSManager.getInstance(JMSManager.java:95)
at jmsplugin.JMSCRPManager.initJMSResources(JMSCRPManager.java:125)
at jmsplugin.JMSCRPManager.<init>(JMSCRPManager.java:89)
at jmsplugin.JMSCRPManager.main(JMSCRPManager.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at
com.ibm.websphere.client.applicationclient.launchClient. createContainerAndLaunchApp(launchClient
.java:649)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)


I found similar errors reported on IBM site, but the resolution mentioned
was to specify the ProviderEndpoints for the ConnectionFactory. I specified
but it's still not working. As of now, my ProviderEndpoints value looks like
this: *:7286:BootstrapSecureMessaging, *:7276:BootstrapBasicMessaging
I tried localhost instead of * also.


Also when I ran launchClient.sh with -CCtrace=true, it also showed following
NamingException:

[11/22/05 12:41:56:416 GMT+05:30] 0000000a <
UOW=2-77d7ad61-28028154:openetdev source=com.ibm.ws.naming.ipbase.NameSpace
method=getParentCtxInternal: NameNotFoundException org=IBM prod=WebSphere
component=Application Server thread=[P=466203:O=0:CT]
Exit parm0=javax.naming.NameNotFoundException: Name jms not found
in context "openetdevNode01Cell/nodes/Node01/servers/server1".
at
com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1716)
at
com.ibm.ws.naming.ipbase.NameSpace.getParentContext(NameSpace.java:1605)
at com.ibm.ws.naming.jcache.Cache.getParentContext(Cache.java:928)
at com.ibm.ws.naming.jcache.Cache.bind(Cache.java:355)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:2016)
at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1824)
at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1737)
at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1444)
at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1324)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at jmsplugin.JMSManager.setConnectionFactory(JMSManager.java:122)
at jmsplugin.JMSManager.<init>(JMSManager.java:70)
at jmsplugin.JMSManager.getInstance(JMSManager.java:95)
at jmsplugin.JMSCRPManager.initJMSResources(JMSCRPManager.java:125)
at jmsplugin.JMSCRPManager.<init>(JMSCRPManager.java:89)
at jmsplugin.JMSCRPManager.main(JMSCRPManager.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at
com.ibm.websphere.client.applicationclient.launchClient. createContainerAndLaunchApp(launchClient
.java:649)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)

Any resolutions?
-Ninad


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com