Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 98388 invoked from network); 12 Oct 2009 22:50:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 22:50:59 -0000 Received: (qmail 17151 invoked by uid 500); 12 Oct 2009 22:50:58 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 17102 invoked by uid 500); 12 Oct 2009 22:50:57 -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 17091 invoked by uid 99); 12 Oct 2009 22:50:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 22:50:57 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Anit_Phukan@intuit.com designates 12.149.175.12 as permitted sender) Received: from [12.149.175.12] (HELO mail2.intuit.com) (12.149.175.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 22:50:54 +0000 DomainKey-Signature: s=default; d=intuit.com; c=nofws; q=dns; h=X-SBRS:X-IronPort-AV:Received:Received:x-mimeole: Content-class:MIME-Version:Content-Type:Subject:Date: Message-ID:In-Reply-To:X-MS-Has-Attach: X-MS-TNEF-Correlator:Thread-Topic:Thread-Index:References: From:To:Return-Path:X-OriginalArrivalTime; b=YSWjt0xYUHd6THX0WMnRNzAq1jkAb0eWAEfymkDMXOvth5XVk6CS+u5y 7vm7HYsKjna0fvkoId/VdSHOIJ6uvjmvgj0BVGPvwx3b0U8sk2nqsGE0E NLWaU9aNhmNZm1N; X-SBRS: None X-IronPort-AV: E=Sophos;i="4.44,548,1249282800"; d="scan'208,217";a="107863227" Received: from sdgexbh03.corp.intuit.net ([172.17.135.77]) by mail2.sdg.ie.intuit.com with ESMTP; 12 Oct 2009 15:50:33 -0700 Received: from SDGEXEVS07.corp.intuit.net ([172.17.135.182]) by SDGEXBH03.corp.intuit.net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 15:50:33 -0700 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA4B8E.64D300C3" Subject: RE: Location of repository.xml and workspace.xml Date: Mon, 12 Oct 2009 15:50:28 -0700 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Location of repository.xml and workspace.xml Thread-Index: AcpJi41iBEQ1WY12TGSHVlnUzPnXcQCAhn/A References: <25795093.post@talk.nabble.com> From: "Phukan, Anit" To: X-OriginalArrivalTime: 12 Oct 2009 22:50:33.0649 (UTC) FILETIME=[680B4A10:01CA4B8E] ------_=_NextPart_001_01CA4B8E.64D300C3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Guo, I have one more query regarding deploying a war on jboss which has jackrabbit dependencies. I get the following JAXB exception while trying to deploy my war file to jboss: 2009-10-12 14:45:38,217 SEVERE [javax.enterprise.resource.webservices.jaxws.server.http] (ResourceContainer.invoker.nonDaemon-1) WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContext javax.xml.ws.WebServiceException: Unable to create JAXBContext at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIM odelImpl.java:158) at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelIm pl.java:87) at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.jav a:262) at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.jav a:322) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.jav a:188) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467) Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.util.List java.util.List does not have a no-arg default constructor. this problem is related to the following location: at java.util.List Did anyone encounter this type of issue on JBOSS or any other application server? Any suggestions would be highly appreciated. Thanks Anit -----Original Message----- From: Guo Du [mailto:mrduguo@gmail.com]=20 Sent: Saturday, October 10, 2009 2:24 AM To: users@jackrabbit.apache.org Subject: Re: Location of repository.xml and workspace.xml On Sat, Oct 10, 2009 at 12:55 AM, Phukan, Anit wrote: > Hi, > > Could anyone please let me know the correct directory location for the 2 > config files that I mentioned in the subject. > > It seems to work fine when the repository.xml file resides directly > under the project (outside src). However, if I create a server and > client project separately in my IDE(IntelliJ IDEA) and try to run the > test cases, it's not able to read from the xml files. Is there a fixed > location that these files have to reside under? > > Any piece of advice would be appreciated. > There are different place to load the repository, they will finally invoke following constructor: public TransientRepository(final File xml, final File dir) Default constructor will detect the locations based on your current java working directory with following code. private static final String CONF_PROPERTY =3D"org.apache.jackrabbit.repository.conf"; private static final String CONF_DEFAULT =3D "repository.xml"; private static final String HOME_PROPERTY =3D "org.apache.jackrabbit.repository.home"; private static final String HOME_DEFAULT =3D "repository"; public TransientRepository() { this(System.getProperty(CONF_PROPERTY, CONF_DEFAULT), System.getProperty(HOME_PROPERTY, HOME_DEFAULT)); } You may see more details from the TransientRepository class. -Guo ------_=_NextPart_001_01CA4B8E.64D300C3--