Error found : java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, February 9, 2005 03:14 AM

Hello all, I am trying to execute a bean application , installed on WAS 5.1. after creatingexecutable jar of the application I got the above error message. " at com.ibm.websphere.naming.WsnInitialContextFactory. (WsnInitial ContextFactory.java:68) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav a:42) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 49) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243 ) at javax.naming.InitialContext.init(Initia   More>>

Hello all,

			

I am trying to execute a bean application , installed on WAS 5.1. after creatingexecutable jar of the application I got the above error message.

"

at com.ibm.websphere.naming.WsnInitialContextFactory. (WsnInitial
ContextFactory.java:68)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
49)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext. (InitialContext.java:195)
at bibliotheca.LibClient.createLibClient(LibClient.java:63)
at bibliotheca.LibClient.init(LibClient.java:36)
at bibliotheca.LibClient.main(LibClient.java:94)"

Now I have tried with keeping ras.jar

file,too,including my other needed jar files

in the classpath ,which contains this Tr.class file.


Also I have tried with steps given at http://publib.boulder.ibm.com/infocenter/ws51help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rtrb_ejbdepprobs.html
, but of no use.


Any pointers.

Thanks,

S'baaz

   <<Less

Re: Error found : java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr

Posted By:   Anonymous  
Posted On:   Thursday, February 10, 2005 06:40 AM

solved above problem .
I used was jdk to compile the application and it got succesful execution there after.
Thanks,

Re: Error found : java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr

Posted By:   ankush_purwar  
Posted On:   Wednesday, February 9, 2005 03:28 AM

Hi Shahbaaz,

When you will make Context for looking-up EJB's ,then you also pass JNDIlookupfactory class in the form of Properties or Hashtable.
that class should be in your classpath.

I think,it wil solve your problem.
About | Sitemap | Contact