Firstly the error shows OpenJPA has now found the persistence.xml.
I do not know whether this is the right forum on helping you to set a
classpath right, but let me try:
Classpaths in Java helps to resolve/find bytecodes of a class. If you are
using a class whose fully-qualified name is resourceM
Running like this
[luzer@cipoc enhancer]$ java -classpath
/home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model:/home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/src/META-INF:/home/luzer/tools/apache-openjpa-2.1.0/openjpa-all-2.1.0.jar
org.apache.openjpa.enhance.PCEnhancer -p persistence.xml#Account
> directory /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/src/META-INF contains
persistence.xml and is defined in the above command's classpath
If /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/src/META-INF is in classpath,
then the last command argument should be simply persistence.xml#Accounts,
and not wit
Hi Pinaki,
Thanks for the help.
Pinaki Poddar wrote:
>
> Also append a hash tag of the unit name to persistence.xml.
> i.e for a persistence unit named 'xyz'
>
> $ java org.apache.openjpa.enhance.PCEnhancer -p persistence.xml#xyz
>
when running like you suggested, I get the same error:
jav
Hello and thanks for the responses.
Rick, when running the command line you suggested
[luzer@cipoc enhancer]$ java -classpath
/home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model:/home/luzer/tools/apache-openjpa-2.1.0/openjpa-all-2.1.0.jar
org.apache.openjpa.enhance.PCEnhancer -p
/home/l
Also append a hash tag of the unit name to persistence.xml.
i.e for a persistence unit named 'xyz'
$ java org.apache.openjpa.enhance.PCEnhancer -p persistence.xml#xyz
Ensure the following
a) persistence.xml declares all the classes to be enhanced in
clause
b) the classpath contains all the cl
First off, I'd be interested in hearing about the problems that you
encountered when trying to get PCEnhancer working in eclipse.
Secondly, try something like this : java -classpath
/home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model:/home/luzer/tools/apache-openjpa-2.1.0/openjpa-all-2.1
Hi,
I'm trying to enhance my entities at build time. After failing to get the
ant script for eclipse working, I decided to run the PCEnhancer manually,
without luck though.
When I run PCEnhacer with the following cmd line:
[luzer@cipoc JpaDemo]$ java -classpath
/home/luzer/zpd/zpd-ws/jpa_demo/Jp