jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Cosenza" <alessandro.cose...@itkey.it>
Subject Re: problem with Security element in repository.xml
Date Wed, 14 Jan 2009 14:05:29 GMT
thanks for help, but i find the ridicolous mistake in
repository.xml.
the complete paths to AccessManager and LoginModule impl
were wrong.


----- Original Message -----
Da : "Todd Seiber" <todd.seiber@gmail.com>
A : users@jackrabbit.apache.org
Oggetto : Re: problem with Security element in
repository.xml
Data : Wed, 14 Jan 2009 06:48:13 -0500

> OK, so RMI and or the repository is not starting so that
> is why you get 'Connection refussed'. You problem is
> probably not with SimpleCredentials vs. your User object.
> Your AccessManager is probably denying access to the
> system session for some critical portion of creating the
> repository. Try changeing the log4j.properties file to
> giving you debugging in the org.apache.jackrabbit.core
> package. Your logs will have alot in it but you will
> probably find your problem. Also log your AccessManager
> and LoginModule.
> 
> On Wed, Jan 14, 2009 at 4:12 AM, Alessandro Cosenza <
> alessandro.cosenza@itkey.it> wrote:
> 
> > my situation actually is:
> > 1. modify Security element in repository.xml with my
> > AccessManager and
> > LoginModule implementations.
> > 2. start tomcat and while loading the jackrabbit webapp
> > (with RepositoryStartupServlet ecc)
> > these exceptions are thrown:
> >
> > *ERROR* RepositoryStartupServlet:
> > RepositoryStartupServlet initializing failed:
> > javax.servlet.ServletException: Error while creating
> > repository (RepositoryStartupServlet.java, line 257)
> > javax.servlet.ServletException: Error while creating
> > repository
> >        at
> >
> >
> org.apache.jackrabbit.j2ee.RepositoryStartupServlet.initRe
> >        pository(RepositoryStartupServlet.java:422) at
> >
> >
> org.apache.jackrabbit.j2ee.RepositoryStartupServlet.startu
> >        p(RepositoryStartupServlet.java:250) at
> >
> >
> org.apache.jackrabbit.j2ee.RepositoryStartupServlet.init(R
> >        epositoryStartupServlet.java:223) at
> >
> >
> javax.servlet.GenericServlet.init(GenericServlet.java:212)
> ecc. >
> > and finally when starting my application
> >
> > Repository repository = new
> >
> RMIRemoteRepository("//localhost:1099/jackrabbit.repositor
> > y"); User u = new User ("ale","ok"); //my own
> > Credentials impl used in my LoginModule
> > Session s = repository.login(u);
> >
> > these exceptions are thrown
> >
> > Exception in thread "main"
> > javax.jcr.RepositoryException: Repository access error:
> > //localhost:1099/jackrabbit.repository: Connection
> > refused to host: localhost; nested exception is:
> >        java.net.ConnectException: Connection refused:
> > connect: Connection refused to host: localhost; nested
> >        exception is: java.net.ConnectException:
> >        Connection refused: connect at
> >
> >
> org.apache.jackrabbit.rmi.repository.RMIRemoteRepositoryFa
> ctory.getRemoteRepository(RMIRemoteRepositoryFactory.java:
> >        71) at
> >
> >
> org.apache.jackrabbit.rmi.repository.AbstractRemoteReposit
> oryFactory.getRepository(AbstractRemoteRepositoryFactory.j
> >        ava:59) at
> >
> >
> org.apache.jackrabbit.commons.repository.ProxyRepository.l
> >        ogin(ProxyRepository.java:100) at
> >
> >
> org.apache.jackrabbit.commons.AbstractRepository.login(Abs
> >        tractRepository.java:53) at
> > it.itkey.repository.TestJCR.main(TestJCR.java:26) Caused
> > by: java.rmi.ConnectException: Connection refused to
> >        host: localhost; nested exception is:
> java.net.ConnectException: Connection refused: connect >
> > need help!
> > thanks.
> >
> 
> 
> 
> -- 
> Todd Seiber
> 830 Fishing Creek Rd.
> New Cumberland, PA 17070
> 
> h. 717-938-5778
> c. 717-497-1742
> e. todd.seiber@gmail.com
> 

Mime
View raw message