jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simer anand <simer.anan...@gmail.com>
Subject Re: Repository.xml configuration problem
Date Mon, 31 Aug 2009 07:20:07 GMT

Hello Users and Alex, 

                I just created jar file of mine LoginModule class files and
then placed them on them the classpath and also in the tomcat6.0/lib
directory and then i started Tomcat server then i went to
http://localhost:8080/jackrabbit-webapp-1.5.6/repository/default then GUI
appears for username and password that is Jackrabbit Webdav Server and
anything you enter that won't be accepted .

Then i compiled and executed the FirstHop Program as listed 

import org.apache.jackrabbit.rmi.repository.*; 
import javax.jcr.Repository; 
import javax.jcr.Session; 
import org.apache.jackrabbit.core.TransientRepository;
public class FirstHop { 
   public static void main(String[] args) throws Exception { 
        Repository repository = new
URLRemoteRepository("http://localhost:8080/jackrabbit-webapp-1.5.6/rmi");
	session session = repository.login(); 
	try{
            String user = session.getUserID(); 
            String name =
repository.getDescriptor(Repository.REP_NAME_DESC); 
            System.out.println( 
                   "Logged in as " + user + " to a " + name + "
repository."); 
	   } finally { 
           session.logout(); 
        } } }

but the same  Exception is coming up 

Exception in thread "main" javax.jcr.LoginException: Invalid login module
implementation class sample.SampleAcn.: Invalid login module implementation
class sample.SampleAcn.
        at
org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:116)
        at
org.apache.jackrabbit.rmi.server.ServerRepository.login(ServerRepository.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at
org.apache.jackrabbit.rmi.server.ServerRepository_Stub.login(Unknown Source)
        at
org.apache.jackrabbit.rmi.client.ClientRepository.login(ClientRepository.java:107)
        at
org.apache.jackrabbit.commons.repository.ProxyRepository.login(ProxyRepository.java:90)
        at
org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:41)
        at FirstHop.main(FirstHop.java:22)

it means still my problem is not resolved  and i' m not able to proceed so
please help me out.
Thanks 
-- 
View this message in context: http://www.nabble.com/Repository.xml-configuration-problem-tp25075919p25219295.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message