Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In my project iam integrating telephone line using some
bridge. To connect my project to that telephone line they
have give some jar file. Using dat i connected with that..
To handle that event like call attented, call disposed and
idle time they have give one event listener class.. I did
every thing and this class is alsoo called when a
particular event is fired. The only thing is i wanna call
EJB from that event listener method.. But the EJB is not
getting initated and exception is thrown. This below shownn
error is occured only i try to call it from this event
listener class. In other places EJB calling is working
fine..





javax.naming.NoInitialContextException: Cannot instantiate
class: org.jnp.interfaces.NamingContextFactory [Root
exception is java.lang.ClassNotFoundException:
org/jnp/interfaces/NamingContextFactory]

at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:657)

at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:247)

at javax.naming.InitialContext.init(InitialContext.java:223)

at javax.naming.InitialContext.<init>
(InitialContext.java:197)

at
com.kgisl.etrac.desk.servicelocator.ServiceLocator.getInitia
lContext(ServiceLocator.java:82)

at
com.kgisl.etrac.commonUtils.EventListener.getAdministrationE
JBRemote(EventListener.java:206)

at
com.kgisl.etrac.commonUtils.EventListener.CallDispositioned
(EventListener.java:65)

Caused by: java.lang.ClassNotFoundException:
org/jnp/interfaces/NamingContextFactory

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at com.sun.naming.internal.VersionHelper12.loadClass
(VersionHelper12.java:42)

at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:654)

... 6 more

javax.naming.NoInitialContextException: Cannot instantiate
class: org.jnp.interfaces.NamingContextFactory [Root
exception is java.lang.ClassNotFoundException:
org/jnp/interfaces/NamingContextFactory]

at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:657)

at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:247)

at javax.naming.InitialContext.init(InitialContext.java:223)

at javax.naming.InitialContext.<init>
(InitialContext.java:197)

at
com.kgisl.etrac.desk.servicelocator.ServiceLocator.getInitia
lContext(ServiceLocator.java:82)

at
com.kgisl.etrac.commonUtils.EventListener.getAdministrationE
JBRemote(EventListener.java:206)

at
com.kgisl.etrac.commonUtils.EventListener.CallDispositioned
(EventListener.java:65)

Caused by: java.lang.ClassNotFoundException:
org/jnp/interfaces/NamingContextFactory

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at com.sun.naming.internal.VersionHelper12.loadClass
(VersionHelper12.java:42)

at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:654)

... 6 more



It would be more help full if i get the solution


10x in advance
balaji



In my project iam integrating telephone line using some bridge. To connect my project to that tele..

Answer / gowrisankar

when u r calling jar file is i think Ejb Component
when u r wring calient in event listener itself u have to
write correct "jnidi name" specific to that particular
EjbComponent.

it is not suitable u r clling jndi name with ejb component
name this is only one reason

second solution
if posible to catch jar file deploy in weblogic server
and test that ejb jar file component it give component name
and jndi name then use that particulr jndi name

or open jar file check vsddl file itself jndi name

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More EJB Interview Questions

What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?

0 Answers  


What do you mean by abstract schema?

0 Answers  


What does @inject mean in java?

0 Answers  


What Is EJB Clustering? Explain the Functionality?

1 Answers   Business Architectures, College School Exams Tests, HCL,


What is Entity Bean and Session Bean?

1 Answers   KPIT,


What are different Methods and Classes written in a Session Bean

1 Answers   DELL,


What are the design goals of EJB architecture?

1 Answers  


What is singleton session bean?

0 Answers  


What is enterprise bean provider?

0 Answers  


ejb session beans and entity beans?

1 Answers  


What’s the difference between hibernate and ejb 3?

0 Answers  


What are the various methods of an Entity Bean?

1 Answers  


Categories