wood burning stoves 2.0
The moose likes Distributed Java and the fly likes Exception while running Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic

Exception while running Session Bean

Yogesh Yadav

Joined: Sep 09, 2006
Posts: 4
hi all,

I am creating a session bean ..and simply i am calling my bean from a standalone class ..and i m getting following exception ,,
I am using WSAD5.1

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:292)
at javax.naming.InitialContext.lookup(InitialContext.java:359)

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63547

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: Exception while running Session Bean
It's not a secret anymore!