Krzysztof, I think the missing setters is the problem even if you use XmlAccessType.FIELD. Add the setters and try it. You can also check what happens if you switch to XmlAccessType.PROPERTY. The user manual mentions some JAXB plugins which could generate setters [1].
Milosz [1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_xmlmapping > Milosz, > Will try now with 8.3jdbc3 that is included with openjpa. I have been using > jdbc4 for a while without any problems (no XML however). > > JAXB classes use @XmlAccessorType(XmlAccessType.FIELD) everywhere - so there > are getters, no setters. Do you think this could be a problem? > > I tried to test the snapshot sources with PG9 but it did not build for me, > some problem with openbooks example (tried on OSX). > > ... > [INFO] OpenJPA JEST ...................................... SUCCESS [1.771s] > [INFO] OpenJPA Aggregate Jar ............................. SUCCESS [6.712s] > [INFO] OpenJPA Aggregate Jar with Dependencies ........... SUCCESS [3.900s] > [INFO] OpenJPA Project Docs and Assemblies ............... SUCCESS [25.596s] > [INFO] OpenJPA Examples .................................. SUCCESS [0.061s] > [INFO] OpenJPA Examples - Simple ......................... SUCCESS [1.174s] > [INFO] OpenJPA Examples - image-gallery .................. SUCCESS [1.802s] > [INFO] OpenJPA Examples - OpenBooks ...................... FAILURE [0.424s] > [INFO] OpenJPA Integration Tests ......................... SKIPPED > [INFO] OpenJPA Integration Tests - Daytrader ............. SKIPPED > [INFO] OpenJPA Integration Tests - Examples .............. SKIPPED > [INFO] OpenJPA Integration Tests - SLF4JLogFactory ....... SKIPPED > [INFO] OpenJPA Integration Tests - JPA TCK ............... SKIPPED > [INFO] OpenJPA Integration Tests - Bean Validation ....... SKIPPED > [INFO] OpenJPA Integration Tests - JMX Platform MBeans ... SKIPPED > [INFO] OpenJPA tools ..................................... SKIPPED > [INFO] OpenJPA Maven Plugin .............................. SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2:25.570s > [INFO] Finished at: Fri May 06 13:04:43 CEST 2011 > [INFO] Final Memory: 49M/240M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-antrun-plugin:1.3:run (genmodel) on project > openbooks: An Ant BuildException has occured: The following error occurred > while executing this line: > [ERROR] > /Users/knienart/gaia/openjpa/openjpa-examples/openbooks/build.xml:116: *** > Error: > [ERROR] The directory for OpenJPA libraries can not be located at > /Users/knienart/.m2/repository/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT. > [ERROR] Make sure openjpa.lib property value is correct in build.properties > file. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :openbooks > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/XMLValueHandler-strategy-not-supported-in-Postgres-tp6331286p6337236.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
