Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 80998 invoked from network); 10 Nov 2009 07:59:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 07:59:12 -0000 Received: (qmail 53822 invoked by uid 500); 10 Nov 2009 07:59:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 53787 invoked by uid 500); 10 Nov 2009 07:59:10 -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 53776 invoked by uid 99); 10 Nov 2009 07:59:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 07:59:10 +0000 X-ASF-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.62.198.98] (HELO mail.in-gmbh.de) (212.62.198.98) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 07:59:07 +0000 Received: from mail.in-gmbh.de (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 439B4393176 for ; Tue, 10 Nov 2009 08:58:45 +0100 (CET) Received: from insvkn31.PCIN-NET.local (unknown [192.168.5.141]) by mail.in-gmbh.de (Postfix) with ESMTP id 055D1393173 for ; Tue, 10 Nov 2009 08:58:45 +0100 (CET) Received: from insvkn16.PCIN-NET.local ([127.0.0.1]) by insvkn31.PCIN-NET.local ([194.163.142.89]) with mapi; Tue, 10 Nov 2009 08:58:42 +0100 From: Florian Roth To: "users@jackrabbit.apache.org" Date: Tue, 10 Nov 2009 08:58:37 +0100 Subject: AW: jackrabbit-webapp local access from webapp in same tomcat container Thread-Topic: jackrabbit-webapp local access from webapp in same tomcat container Thread-Index: AcphR6jUHRpjzW/+T0CY9b7T4pH9rwAkp5Pw Message-ID: <5BFF21C0838C584F91F461E6C2AAD43E1E2A7D25@insvkn16> References: <5BFF21C0838C584F91F461E6C2AAD43E1E2A7D1B@insvkn16> In-Reply-To: <5BFF21C0838C584F91F461E6C2AAD43E1E2A7D1B@insvkn16> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-Product-Ver: IMSS-7.0.0.3346-6.0.0.1038-17000.004 X-TM-AS-User-Approved-Sender: Yes;Yes Good morning, I solved one of the problems. Now I can access via crossContext the jackrab= bit-webapp. Problem was, that I had two jcr-1.0.jar. One in my WEB-INF/lib = and one in tomcat/lib. So I got an classCast exception. With Maven2 and ecl= ipse simply delete the dependency to jcr-1.0 and to servlet-api from pom fi= le. The add new library and select tomcat6 runtime. So you get the tomcat/l= ib jars to build your webapplication. Im still trying to register jackrabbit-webapp repository via bootstrap.conf= ig to tomcat JNDI. Can anybody help me? I know I could register a global re= source, but therefore I have to put all the jackrabbit jars in tomcat/lib. = I don't want that. I want to register jackrabbit-webapp. Best respects Flo Roth -----Urspr=FCngliche Nachricht----- Von: Florian Roth [mailto:Florian.Roth@in-gmbh.de]=20 Gesendet: Montag, 9. November 2009 15:20 An: users@jackrabbit.apache.org Betreff: jackrabbit-webapp local access from webapp in same tomcat containe= r Hi, I could not access jackrabbit webapp repeository from another webapp on the= same container. I have deployed jackrabbit webapp and the accessing webapp= at same tomcat 6. Access via JNDI I have the following bootstrap.properties: #bootstrap properties for the repository startup servlet. #Mon Nov 09 12:49:11 CET 2009 java.naming.factory.initial=3Dorg.apache.jackrabbit.core.jndi.provider.Dumm= yInitialContextFactory repository.home=3Dd\:\\jackrabbit rmi.enabled=3Dtrue repository.config=3Dd\:\\jackrabbit/repository.xml repository.name=3Djackrabbit.repository rmi.host=3Dlocalhost java.naming.provider.url=3Djava\:comp/env jndi.enabled=3Dtrue rmi.port=3D0 then I try the following InitialContext initialcontext =3D new InitialContext(); Context environment= =3D (Context) initialcontext.lookup("java:comp/env"); repository =3D (Repository) environment.lookup("jackrabbit.repository"); Acess via cross context also does not work for me. In the tomcats global co= ntext.xml I sai