Rajesh Bhoir

Greenhorn
+ Follow
since Jan 06, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rajesh Bhoir

We have developed a client application which uses the JNDI context from the WAS 5.0 configuration. This client works fine when tested with a standalone (WAS 5.0 Single Server)
However when we tried to execute the same client on WAS 5.0 Network Deployment we are getting the following error. :roll:
C:\Program Files\WebSphere\AppServer\bin>LaunchClient storemsgsinqueue.ear
javax.naming.NameNotFoundException: jms/tpqcf
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1503)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.hsbc.newtp.common.ServiceLocator.lookup(ServiceLocator.java:91)
at com.hsbc.newtp.util.NewTPQueueHandler.<init>(NewTPQueueHandler.java:75)
at com.hsbc.newtp.simulator.mqs.StoreMsgsInQueue.<init>(StoreMsgsInQueue.java:71)
at com.hsbc.newtp.simulator.mqs.StoreMsgsInQueue.main(StoreMsgsInQueue.java:348)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)com.hsbc.newtp.common.TPTechnicalException
at com.hsbc.newtp.common.ServiceLocator.lookup(ServiceLocator.java:94)
at com.hsbc.newtp.util.NewTPQueueHandler.<init>(NewTPQueueHandler.java:75)
at com.hsbc.newtp.simulator.mqs.StoreMsgsInQueue.<init>(StoreMsgsInQueue.java:71)
at com.hsbc.newtp.simulator.mqs.StoreMsgsInQueue.main(StoreMsgsInQueue.java:348)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
I have check the "SystemOut.log" file for the server, and it shows that it has binded "jms/tpqcf".
Thanks
Rajesh
[ July 23, 2003: Message edited by: Rajesh Bhoir ]
21 years ago
Hi,
The only thing that I think of that can be wrong is the "serverpath" it should be the Directory where your VSS database is configured.
Here is a example that i had use
<target name="vssckout" description ="Testing ">
<vsscheckout vsspath="/Code/pre-Poc/QPut.c"
localpath="/localcode"
recursive="true"
ssdir="D:\Program Files\Microsoft Visual Studio\Common\VSS\win32"
serverPath="\\psatsrv80\NewProject\"
login="rajesh.bhoir,vsspass"
/>
</target>
Hope this helps you!
21 years ago
Thanks a lot buddy.
It works with the bcel-5.0.zip
[ January 28, 2003: Message edited by: Rajesh Bhoir ]
21 years ago
Charles,
Even I am facing the same problem as reported by Jeffrey.
As per your suggestion I downloaded the jar file again , however it did not help.
I did look at the java.class.path variable in the build.xml I am using and it shows the optional.jar in the classpath list.
Any suggestions ?
21 years ago
Hello,
I have deployed a session bean in WAS 5.0
and I am trying to access the same through a Java Client. I am getting the following error
can any one tell me if I need to add anything to class path or some settings.
:::::::::::::: Error :::::::::::::::::
javax.naming.NamingException: Failed to initialize the ORB. Root exception is java.lang.reflect.Inv
ocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:313)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java
:363)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at ejb.demo.DemoClient.main(DemoClient.java:49)
Caused by: java.lang.UnsatisfiedLinkError: registerNatives
at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method)
at com.ibm.jvm.ExtendedSystem.<clinit>(ExtendedSystem.java:163)
at com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:224)
at com.ibm.rmi.util.JDKBridge.<clinit>(JDKBridge.java:203)
at com.ibm.rmi.util.RepositoryId.<clinit>(RepositoryId.java:100)
at com.ibm.rmi.iiop.CDROutputStream.<clinit>(CDROutputStream.java:917)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1146)
at com.ibm.CORBA.iiop.ORB.orbParameters(ORB.java:1102)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1101)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1639)
at org.omg.CORBA.ORB.init(ORB.java:346)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:77)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:189)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:98)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:74)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:367)
... 11 more
Hello,
I am new to WAS , I am unable to get the context of the queue connection factory in WAS 5.0.
Following is the code fragment that I am using.
import javax.jms.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import javax.rmi.*;
try {
ctx = getInitialContext();
System.out.println("got initial context.......");
Enumeration x = ctx.list("");
for ( ; x.hasMoreElements()
System.out.println(x.nextElement());
}catch (Exception e) {
System.out.println("Error :::::::::::::::::");
e.printStackTrace();
}

try {
System.out.println("2");
queueConnectionFactory = (QueueConnectionFactory) ctx.lookup("rajesh");
System.out.println("3");
queue = (Queue) ctx.lookup("bhoir");
System.out.println("4");
} catch (NamingException e) {
System.out.println("JNDI API lookup failed: " +
e.toString());
System.exit(1);
} catch (Exception e) {
System.out.println(" Exception ::");
e.printStackTrace();
}
When I execute the code .
I am getting the following error
got initial context.......
demo.DemoHome: ejb.demo._DemoHome_Stub
WSsamples: javax.naming.Context
ejb: javax.naming.Context
bhoir: com.ibm.mq.jms.MQQueue
servername: java.lang.String
eis: javax.naming.Context
mail: javax.naming.Context
distributedmap: com.ibm.websphere.cache.DistributedMap
jdbc: javax.naming.Context
plantsby: javax.naming.Context
url: javax.naming.Context
cell: javax.naming.Context
jta: javax.naming.Context
jms: javax.naming.Context
TransactionFactory: com.ibm.ejs.jts.jts.ControlSet$LocalFactory
DefaultDatasource: Default Datasource
rajesh: javax.jms.QueueConnectionFactory
Increment: com.ibm.defaultapplication._EJSRemoteCMPIncrementHome_501bb55e_Stub
Sample: javax.naming.Context
thisNode: javax.naming.Context
2
Exception ::
java.lang.ClassCastException: javax.naming.Reference
at DemoJMS.main(DemoJMS.java:56)
Exception in thread "P=574560 =0:CT" java.lang.NullPointerException
at DemoJMS.main(DemoJMS.java:86)
Can any one tell me what is wrong in this code.
Thanks
Rajesh
21 years ago