• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Needed On IBM VAJ 3.5 WTE

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi there,
I'm using IBM VAJ 3.5 for EJB developement. I'm able to test my beans with Websphere Test Environment, but when I run my own Client program to test the bean, I get following error message :
NoClassDefFoundError javax.naming.InitialContext
I get this error message when I try get InitialContext with the new Properties.
My Client code goes as follows :
--------------------------------

please do the needful,
-VaibhaV.


Please use [ code] [ /code] tags to format your code. Check out the UBB Code link below for further details


Thanks

[This message has been edited by Rahul Mahindrakar (edited May 16, 2001).]
 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add the ujc.jar file to your classpath- this file is for the Naming package, ull find this i websphere application server directory/lib , then add it by going to window-options-resources-edit-add jar/zip, after this right click on the application u made and go to run, there check classpath- compute now.
This should work around the problem of not finding InitialContext.
Regards,
Daman
 
vaibhav waghmare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi daman,
I'v tried another client program using AccessBean, but this time it gives some other error.
My Client code is :
-------------------
try
{
System.out.println("Begin Test");
VtableAccessBean a = new VtableAccessBean();
System.out.println("AccessBean Instance Created ...");
a.setInitKey_id(new BigDecimal("1"));
System.out.println("Init Key set to 1 ...");
System.out.println("Name of Employee #1 : " + a.getName());
System.out.println("Department of Employee #1 : " + a.getDepartment());
}
catch (Exception e)
{
e.printStackTrace();
}
The exception Stack trace is :
------------------------------
Debugger Stack Trace Report:
Thread[main,5,main] (Alive)
Uncaught exception (java.lang.NoClassDefFoundError: com.ibm.ejs.ras.Tr)
Class.forName0(String, boolean, ClassLoader)
arg_1=(java.lang.String) com.ibm.ejs.ns.jndi.CNInitialContextFactory
arg_2=(boolean) true
arg_3=(java.lang.ClassLoader) sun.misc.Launcher$AppClassLoader@36e2
Class.forName(String, boolean, ClassLoader)
name=(java.lang.String) com.ibm.ejs.ns.jndi.CNInitialContextFactory
initialize=(boolean) true
loader=(java.lang.ClassLoader) sun.misc.Launcher$AppClassLoader@36e2
VersionHelper12.loadClass(String)
this=(com.sun.naming.internal.VersionHelper12) com.sun.naming.internal.VersionHelper12@5ebb
arg_1=(java.lang.String) com.ibm.ejs.ns.jndi.CNInitialContextFactory
NamingManager.getInitialContext(Hashtable)
arg_1=(java.util.Hashtable) {java.naming.provider.url=iiop:///, java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory}
InitialContext.getDefaultInitCtx()
this=(javax.naming.InitialContext) javax.naming.InitialContext@689c
InitialContext.init(Hashtable)
this=(javax.naming.InitialContext) javax.naming.InitialContext@689c
arg_1=(java.util.Hashtable) {java.naming.provider.url=iiop:///, java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory}
InitialContext(Hashtable)
this=(javax.naming.InitialContext) javax.naming.InitialContext@689c
arg_1=(java.util.Hashtable) {java.naming.provider.url=iiop:///, java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory}
AbstractAccessBean.getInitContext(String, String)
nameServiceURL=(java.lang.String) iiop:///
nameServiceType=(java.lang.String) com.ibm.ejs.ns.jndi.CNInitialContextFactory
environment=(java.util.Hashtable) {java.naming.provider.url=iiop:///, java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory}
AbstractAccessBean.getGlobalHome(String, String, String)
nameServiceURL=(java.lang.String) iiop:///
nameServiceType=(java.lang.String) com.ibm.ejs.ns.jndi.CNInitialContextFactory
jndiName=(java.lang.String) vaib/demo/ejb/Vtable
home=(java.lang.Object) null
VtableAccessBean(AbstractAccessBean).getHome()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
VtableAccessBean.ejbHome()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
VtableAccessBean.instantiateEJB()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
key=(vaib.demo.ejb.VtableKey) vaib.demo.ejb.VtableKey@1f
VtableAccessBean(AbstractEntityAccessBean)._instantiate()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
VtableAccessBean(AbstractEntityAccessBean).refreshCopyHelper(Object)
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
ref=(java.lang.Object) null
VtableAccessBean.refreshCopyHelper()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
VtableAccessBean(AbstractEntityAccessBean).__getCache(String)
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
name=(java.lang.String) name
o=(java.lang.Object) null
cacheSize=(int) 0
VtableAccessBean.getName()
this=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
EntBeanTestClient.main(String [])
args=([Ljava.lang.String [Ljava.lang.String;@7c48
a=(vaib.demo.ejb.VtableAccessBean) vaib.demo.ejb.VtableAccessBean@3dd4
I'll b very helpfull if you can focus some light on this error also.
wating 4 ur reply and thx in advance !
-VaibhaV.
 
vaibhav waghmare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi daman,
unfortunately i haven't installed WAS on my m/c. and because of the same i was unable to locate the file ujc.jar. Can you tell me from where else i can get this file ?
thx in advance,
-VaibhaV.
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
vaibhav waghmare,
I was thinking of mailing you the jar file but since you do not have a mail id in your profile i cannot do it.

 
vaibhav waghmare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi rahul,
thx for the enthu you shown towards me! Somehow i've got the ujc.jar file and even i added it to my Classpath. But my problem isn't solved yet ! still my test client gives the same error! do you think there is something wrong in my development steps?
thx for the reply.
well my mail id is : vaibhavw@yahoo.com
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please change your profile to include your e-mail id. The profile link is available just under "Post New Topic button". Right Now i am busy with some work i will get back later.
 
vaibhav waghmare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i've modified my profile.
the progress is now i'm not getting the NoClassDefFoundError but now i'm getting the same problem as daman has encountere. i.e. CommunicationException ???
ne solutions ?

------------------
love n regards,
-VaibhaV.
 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes i would appreciate the same, as to why corba messes these things up? this is something we cannot do much about i guess, i had gotten the same problem a long time back, i just tried it all day, got no results , came back the next day and it worked LOL, anyways plz do suggest some ideas guys.
Regards,
Daman
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic