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-468805...@n2.nabble.com<ml-node%2b4061854-468805...@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-553807...@n2.nabble.com<ml-node%2b208411-553807...@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.