openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1808) Can NOT find meta class & can NOT insert record in the table
Date Tue, 12 Oct 2010 00:51:32 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920040#action_12920040
] 

Michael Dick commented on OPENJPA-1808:
---------------------------------------

I think you can add the -A option as a compiler argument to the maven-compiler-plugin.

Or you can take a look at the openbooks example in SVN. It uses the antrun plugin and an ant
build file to generate the canonical metamodel classes.

Here are links to the pom.xml and build.xml we use in openbooks: 

http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?revision=981587&view=markup
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/build.xml?revision=980894&view=markup

Hope they help you get started. 

> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
>                 Key: OPENJPA-1808
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1808
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>         Environment: Windows 7,  Geronimo server
>            Reporter: LiWenQin
>         Attachments: jpa2.0.zip
>
>
> Hi,
>     I wrote a jpa 2.0 test case.
>     In the entity class Course.java:
>     @ElementCollection
>     @CollectionTable(name="COURSE_COMMENTS")
>     private List<Evaluation> evaluation;
>     Here member "evaluation" contains comments of the course in another Table:COURSE_COMMENT
>     I run it on Geronimo 3.0 server(Geronimo server uses openjpa to provide its jpa service),
howver, inserting record into the Table "COURSE" is NOT sucessful.
>  
>     The server gives warning such like this:
>   WARN   [DefaultThreadPool 198] openjpa.MetaData - Meta class
>   "org.apache.geronimo.javaee6.jpa20.entities.Course_" for entity class org.apach
>  e.geronimo.javaee6.jpa20.entities.Course can not be registered with following ex
>  ception "java.security.PrivilegedActionException: java.lang.ClassNotFoundExcepti
>   on: org.apache.geronimo.javaee6.jpa20.entities.Course_"
>    Also can Not find meta class Evaluation_
>    I'm not sure whether it is a problem created by OpenJPA?
>     Could anyone help to have a look at it?
>     Thanks in advance!
> PS: I attached the code in the attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message