Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 4928 invoked from network); 25 Nov 2009 19:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 19:21:00 -0000 Received: (qmail 86309 invoked by uid 500); 25 Nov 2009 19:20:59 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 86236 invoked by uid 500); 25 Nov 2009 19:20:59 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 86226 invoked by uid 99); 25 Nov 2009 19:20:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 19:20:59 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 19:20:57 +0000 Received: from jim.nabble.com ([192.168.236.80]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NDNPo-0003Fb-IQ for users@openjpa.apache.org; Wed, 25 Nov 2009 11:20:36 -0800 Date: Wed, 25 Nov 2009 11:20:36 -0800 (PST) From: Pinaki Poddar To: users@openjpa.apache.org Message-ID: <1259176836560-4067078.post@n2.nabble.com> In-Reply-To: <1259108636802-4062175.post@n2.nabble.com> References: <2c0ebf0c0911230954v7b578a0ei4e788bf763de98d@mail.gmail.com> <1259104057038-4061854.post@n2.nabble.com> <1259108636802-4062175.post@n2.nabble.com> Subject: Re: Question regarding -properties option of ReverseMappingTool MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Pinaki Poddar Hi, does openjpa.xml contains a) custom properties for Reverse Mapping Tool or b) is it a description of the persistence unit (i.e. isomorphic to META-INF/persistence.xml) If it is (b) then try the following $ set CLASSPATH=%CLASSPATH%;C:\crap $ java org.....ReversemappingTool -properties META-INF/openjpa.xml#myUnit where myUnit is the name of the unit defined in openjpa.xml If it is (a) then the option flag is -cp -- but I am sure you already know that. Regards -- ljnelson wrote: > > Hello; I'm running without a SecurityManager. I have no policies of any > kind set one way or another. > > Best, > Laird > > On Tue, Nov 24, 2009 at 6:07 PM, Pinaki Poddar [via OpenJPA] < > ml-node+4061854-468805492@n2.nabble.com >> wrote: > >> Hi, >> do you have the following security policies set? >> >> permission java.lang.RuntimePermission "getClassLoader"; >> permission java.io.FilePermission "read"; >> >> >> ljnelson wrote: >> The documentation for ReverseMappingTool says that the -properties >> command >> line option can take a file path or a resource name. >> >> I can get this to work if I give a file path, but not if I give a >> resource >> name. >> >> Assume I'm in the C:\crap directory. If I specify this: >> >> -properties C:\crap\META-INF\openjpa.xml >> >> ...everything works. >> >> If I specify either of these with a classpath that includes the current >> directory: >> >> -properties META-INF/openjpa.xml >> -properties /META-INF/openjpa.xml >> -properties openjpa.xml >> >> ...the openjpa.xml file is not picked up. >> >> Is the documentation in error, or do I not fully understand what a >> resource >> >> name is? >> >> OpenJPA 1.2.1. >> >> Thanks, >> Laird >> >> Pinaki >> >> >> ------------------------------ >> View message @ >> http://n2.nabble.com/Question-regarding-properties-option-of-ReverseMappingTool-tp4052794p4061854.html >> To start a new topic under OpenJPA Users, email >> ml-node+208411-553807638@n2.nabble.com >> To unsubscribe from OpenJPA Users, click here< (link removed) =>. >> >> >> > > ----- Pinaki -- View this message in context: http://n2.nabble.com/Question-regarding-properties-option-of-ReverseMappingTool-tp4052794p4067078.html Sent from the OpenJPA Users mailing list archive at Nabble.com.