jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefan81 <stefan.schla...@process-relations.com>
Subject JackrabbitOnJBoss - Problems accessing JCA
Date Wed, 05 Sep 2007 16:10:27 GMT


I want to deploy JackRabbit on JBoss and followed the instructions under

The startup of my JBoss 4.0.5 server together with the deployment of the
repository seems to be working fine:

17:43:59,444 INFO  [RepositoryImpl] Starting repository...
17:43:59,476 INFO  [LocalFileSystem] LocalFileSystem initialized at path
17:43:59,585 INFO  [NodeTypeRegistry] no custom node type definitions found
17:43:59,585 INFO  [LocalFileSystem] LocalFileSystem initialized at path
17:44:01,288 INFO  [LocalFileSystem] LocalFileSystem initialized at path
17:44:01,413 INFO  [RepositoryImpl] initializing workspace 'default'...
17:44:01,413 INFO  [LocalFileSystem] LocalFileSystem initialized at path
17:44:01,663 INFO  [LocalFileSystem] LocalFileSystem initialized at path
17:44:01,741 INFO  [RepositoryImpl] workspace 'default' initialized
17:44:02,179 INFO  [SearchIndex] Index initialized:
17:44:02,179 INFO  [SearchIndex] Index initialized:
17:44:02,179 INFO  [RepositoryImpl] Repository started

I wrote a client program for testing the access to the repository. According
to JackrabbitOnJBoss I tried a jndi lookup which led to the following

InitialContext ctx = new InitialContext() ;
Repository repository = (Repository) ctx.lookup("java:jcr/local") ;

Exception in thread "main" 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

After some googling I tried out a lot of other things, for example acessing
via rmi:

ClientRepositoryFactory factory = new ClientRepositoryFactory();
Repository repository =
Credentials cred = new SimpleCredentials("user",new char[]{'p','w','d'}) ;
Session s = repository.login(cred);

Exception in thread "main"
org.apache.jackrabbit.rmi.client.RemoteRepositoryException: non-JRMP server
at remote endpoint: non-JRMP server at remote endpoint

Can anyone please give me a clue what is going wrong? Why does neither JNDI
lookup nor RMI access work? Did I do something wrong with the deployment of

Thx a lot!
View this message in context: http://www.nabble.com/JackrabbitOnJBoss---Problems-accessing-JCA-tf4386029.html#a12503786
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message