ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  EJB
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
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


No Answer is Posted For this Question

Be the First to Post Answer

 
 
 
Other EJB Interview Questions
 
  Question Asked @ Answers
 
abstract methods in SessionBean?  1
In what way, the client gets a reference to an existing entity bean?  1
How the container will maintain synchronization for multiple calls to the entity bean? HCL1
How can I call one EJB from inside of another EJB? CTS2
How Client will contact the Bean? Four-soft2
Explain the architectural relationship between EJB & XML? Wipro1
when deploying an EJB, does it possible to specify multiple JNDI names? IBM1
Driver manager is a class/interface. Bally-Technologies5
What are the services that a container provides for an entity bean?  2
How does EJB 2.0 improve support for interoperability between EJB containers and other J2EE products?  1
Life cycle methods in stateless Session Beans? Virtusa3
java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectified in interfaces? CGI1
In EBs the DB state is more consistent than SBs why?  1
Difference between javaBeans and Enterprise JavaBeans? Tech-Mahindra1
what is ejb Tech-Mahindra3
How Stateful Session bean will store its State ?  1
Can Container Managed Bean-Managed Transaction ? Sony3
What transaction attributes does Java Bean containers support?  1
Life Cyle methods in Entity Bean with Bean Managed Persistence  1
What is Introspection ? Wipro1
 
For more EJB Interview Questions Click Here 
         
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com