File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac" Watch "Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac" New topic
Author

Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac

shilpa gopinath
Greenhorn

Joined: Nov 07, 2010
Posts: 3
Hi,

I have started my jBoss server it runs without errors.
i have included the jms.jar in the eclipse and also set its path in the PATH and CLASSPATH variables.

I am trying to run the server program from my eclipse IDE, but getting the below exception:

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

Can anyone please tell me what am i supposed to do to get rid of this exception?


Thanks,
Shilpa
shilpa gopinath
Greenhorn

Joined: Nov 07, 2010
Posts: 3
I tried to create a new topic in the jBoss Admin console, but it gives the below error.

Failed to add Resource (see app server log for additional details): java.lang.RuntimeException:Failed to process template. -> java.lang.RuntimeException:java.io.FileNotFoundException: C:\JBoss\jboss-5.1.0.GA\server\default\deploy\topic\CounterTopic-service.xml (The system cannot find the path specified) -> java.io.FileNotFoundException:C:\JBoss\jboss-5.1.0.GA\server\default\deploy\topic\CounterTopic-service.xml (The system cannot find the path specified)

I guess the problem is for Jndi name: topic\CounterTopic where COunterTopic is my topic name.
I am using windows 7 how should i set the jndi name path here?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9955
    
163

See:
https://jira.jboss.org/browse/EMBJOPR-252
http://community.jboss.org/message/7992#7992


[My Blog] [JavaRanch Journal]
shilpa gopinath
Greenhorn

Joined: Nov 07, 2010
Posts: 3
Thanks, I got it resolved now.

I had not created a topic to map with my server program, hence the naming exception.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac
 
Similar Threads
Can't run first Session Bean : NameNotFoundException
problem at server start up
Error while Running the Client in JBoss
Can I get the contexts in JSP as same as in standalone JavaApp
Help with EJB standalone client