Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 84094 invoked from network); 15 Nov 2008 18:47:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2008 18:47:10 -0000 Received: (qmail 15350 invoked by uid 500); 15 Nov 2008 18:47:17 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 15311 invoked by uid 500); 15 Nov 2008 18:47:17 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 15300 invoked by uid 99); 15 Nov 2008 18:47:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Nov 2008 10:47:17 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 15 Nov 2008 18:45:55 +0000 Received: from source ([209.85.132.251]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSR8ZDRcbK2q42JxE1TEAeANRe/90Xsgg@postini.com; Sat, 15 Nov 2008 18:46:39 UTC Received: by an-out-0708.google.com with SMTP id c38so735726ana.15 for ; Sat, 15 Nov 2008 10:46:36 -0800 (PST) Received: by 10.100.96.9 with SMTP id t9mr1002293anb.109.1226772996594; Sat, 15 Nov 2008 10:16:36 -0800 (PST) Received: by 10.100.42.14 with HTTP; Sat, 15 Nov 2008 10:16:36 -0800 (PST) Message-ID: Date: Sat, 15 Nov 2008 19:16:36 +0100 From: "Alexander Klimetschek" To: dev@jackrabbit.apache.org Subject: Re: Configuration element SecurityManager not found in Security In-Reply-To: <20507624.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20507624.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org What DTD is declared in your repository.xml? What Jackrabbit version do you use - did you upgrade? Regards, Alex On Fri, Nov 14, 2008 at 9:16 PM, rokham wrote: > > Hi, > > I'm totally baffled by this error, since I didn't change the code and it > popped up all of a sudden: > > javax.jcr.RepositoryException: Invalid repository configuration: > repository.xml: Configuration element SecurityManager not found in > Security.: Configuration element SecurityManager not found in Security. > > The error occurs when trying to create a new session. > > I read here > http://www.nabble.com/OCM-5min-tutorial-build-error-td17077209.html that > under the Security element in repository.xml, we need to add a > SecurityManager element. That also seems to be what the error is suggesting. > This is where things get very confusing. I added the code suggested, to the > repository.xml: > > class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" > workspaceName="security"> > > > > > > but now the SAX parser complains that it doesn't know the SecurityManager > element: > 423 [main] WARN org.apache.jackrabbit.core.config.ConfigurationErrorHandler > - Warning parsing the configuration at line 36 using system id > file:/Users/cfislotta/encore/eclipse/workspace/roolo-mock/repository.xml: > org.xml.sax.SAXParseException: Element type "SecurityManager" must be > declared. > 424 [main] WARN org.apache.jackrabbit.core.config.ConfigurationErrorHandler > - Warning parsing the configuration at line 61 using system id > file:/Users/cfislotta/encore/eclipse/workspace/roolo-mock/repository.xml: > org.xml.sax.SAXParseException: The content of element type "Security" must > match "(AccessManager,LoginModule?)". > 495 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting > repository... > 537 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > LocalFileSystem initialized at path repository/repository > 543 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Shutting down > repository... > 547 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository has > been shutdown > > ...and the *program* terminates (not just the repository or session) > > Any thoughts on this would be appreciated. > > Thank you > Ali > -- > View this message in context: http://www.nabble.com/Configuration-element-SecurityManager-not-found-in-Security-tp20507624p20507624.html > Sent from the Jackrabbit - Dev mailing list archive at Nabble.com. > > -- Alexander Klimetschek alexander.klimetschek@day.com