Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 68935 invoked from network); 14 Jan 2009 14:06:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 14:06:04 -0000 Received: (qmail 26499 invoked by uid 500); 14 Jan 2009 14:06:02 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 26488 invoked by uid 500); 14 Jan 2009 14:06:02 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 26476 invoked by uid 99); 14 Jan 2009 14:06:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 06:06:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.149.128.201] (HELO smtp2.aruba.it) (62.149.128.201) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Jan 2009 14:05:54 +0000 Received: (qmail 22442 invoked by uid 89); 14 Jan 2009 14:05:29 -0000 Received: from unknown (HELO webmaildh3.aruba.it) (alessandro.cosenza@itkey.it@10.10.10.97) by smtp2.aruba.it with SMTP; 14 Jan 2009 14:05:29 -0000 Received: from 88.59.97.249 by HTTP Sender: alessandro.cosenza@itkey.it From: "Alessandro Cosenza" To: users@jackrabbit.apache.org Subject: Re: problem with Security element in repository.xml X-Mailer: Quality Web Email v3.1s X-Originating-IP: 88.59.97.249 Date: Wed, 14 Jan 2009 15:05:29 +0100 Message-id: <496df129.12a.aaa.1603135008@webmaildh3.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: smtp2.aruba.it 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org 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" 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 >