Hi all,

 I have a class file with a main method in it. I have
implemented the WSAS connection pooling in my
application.
The applicatiosn is deployed in Unix.
I log into Unix box
1) set the classpath to the following values
  a) setenv JAVAHOME
/opt/WebSphere40AE/AppServer/lnds1/java
  b) setenv APPHOME
/opt/WebSphere40AE/AppServer/lnds1/lib:/opt/WebSphere40AE/AppServer/lnds1/installedApps/Autocp.ear/unixcp.war/WEB-INF
c) setenv NAMEHOME
/opt/WebSphere40AE/AppServer/lnds1/lib/j2ee.jar:/opt/WebSphere40AE/AppServer/lnds1/lib/ns.jar
d) setenv CLASSPT $APPHOME/classes:$NAMEHOME

and then i execute the main method of my class

e)  $JAVAHOME/bin/java -classpath $CLASSPT
com.jpmorgan.autorates.distribution.PurgedPenUndistReport

 I get the following error.
javax.naming.CommunicationException: Caught
CORBA.COMM_FAILURE when resolving in
itial reference=WsnNameService.  Root exception is
org.omg.CORBA.COMM_FAILURE:
 minor code: 3  completed: No
        at
com.ibm.CORBA.iiop.HTTPConnection.send(HTTPConnection.java:447)
        at
com.ibm.CORBA.iiop.ClientRequestImpl.invoke(ClientRequestImpl.java:50
8)
        at
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(ClientRequestImpl.java:
741)
        at
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(ClientRequestImpl.java:
863)
        at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:894)
        at
com.ibm.CORBA.iiop.InitialNamingClient.resolve(InitialNamingClient.ja
va:386)
        at
com.ibm.CORBA.iiop.InitialNamingClient.cachedInitialReferences(Initia
lNamingClient.java:591)
        at
com.ibm.CORBA.iiop.InitialNamingClient.resolve_initial_references(Ini
tialNamingClient.java:355)
        at
com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:1816)
        at
com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInit
CtxFactory.java:590)
        at
com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:352)
        at
com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:227)
        at
com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
        at
com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
        at
com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtx
Factory.java:135)
        at
com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
snInitialContextFactory.java:80)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
60)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241
)
        at
javax.naming.InitialContext.init(InitialContext.java:217)
        at
javax.naming.InitialContext.<init>(InitialContext.java:173)


FYI,

 I obtain the datasource like this.
java.util.Hashtable parms = new java.util.Hashtable();
parms.put(ctx.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
parms.put(javax.naming.Context.PROVIDER_URL,
"iiop:///gmd-rdsd1.uk.jpmorgan.com/");
ctx = new InitialContext(parms);
ds = (DataSource)
ctx.lookup("java:comp/env/autoratesdsn");


  Can anybody let me in urgency why this error happens
and how to solve this??



When i run this class through the application, it runs
perfectly alright.


Regards

Ramesh Kesavanarayanan

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to