geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LiWenQin (JIRA)" <>
Subject [jira] Created: (GERONIMO-5631) Can NOT find meta class & can NOT insert record in the table
Date Tue, 28 Sep 2010 02:55:36 GMT
Can NOT find meta class & can NOT insert record in the table

                 Key: GERONIMO-5631
             Project: Geronimo
          Issue Type: Test
      Security Level: public (Regular issues)
          Components: persistence
    Affects Versions: 3.0
            Reporter: LiWenQin
         Attachments: jpa2.0-test.7z

    I wrote a jpa 2.0 test case.
    In the entity class
    private List<Evaluation> evaluation;

    Here member "evaluation" contains comments of the course in another Table:COURSE_COMMENT

    I run it on Geronimo 3.0 , 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.lang.ClassNotFoundExcepti
  on: org.apache.geronimo.javaee6.jpa20.entities.Course_"

   Also can Not find meta class Evaluation_

   I'm not sure whether I should create meta class(Course_,  Evaluation_ and so on ) befroe
deploy the app on the server?
Need I do manual operation such like below:
Eg:  javac -classpath path/to/openjpa-all.jar -Aopenjpa.metamodel=true packageName/
    Or the Geronimo will create meta class automatically?

    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.

View raw message