This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 10067
    
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Naming Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfac