jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astra123 <sandhya.jayachand...@tcs.com>
Subject getting exception while trying to register repository with jndi
Date Tue, 05 May 2009 04:20:18 GMT


I have created one Web application project in NetBeans IDE.
To that lib folder i have added the jackrabbit-standalone-1.5.4.jar file.
Then i have created one java file and placed the sample code which is given
in below link.


by running that java file ,im able to add/retrieve contents in repository.

Now i need to view the repository nodes using JCR browser.
For that i have downloaded the WAR file jcr-explorer.war from net.
Deployed it in tomcat 6 and imported that war project inside NetBeans IDE.
now im able to launch the Login page of it.
It is asking for JNDI name,username and pwd.

so i tried registering the repository with JNDI by refering the below link


To my Web application's (where sample code resides) web.xml and the java
file i have added the code snippets as given in above link.When i run that
java file.

Im getting below exception:

May 5, 2009 9:39:19 AM NewClass1 main
SEVERE: null
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.InitialContext.rebind(InitialContext.java:408)
        at NewClass1.main(NewClass1.java:41)

Please help me to resolve this.(i'm new to JCR ,please tell me whether im in
rite path)

Thanks in advance, 
View this message in context: http://www.nabble.com/getting-exception-while-trying-to-register-repository-with-jndi-tp23380779p23380779.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message