You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "LiWenQin (JIRA)" <ji...@apache.org> on 2010/09/28 04:55:36 UTC
[jira] Created: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Can NOT find meta class & can NOT insert record in the table
------------------------------------------------------------
Key: GERONIMO-5631
URL: https://issues.apache.org/jira/browse/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
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 , 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 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/Course.java
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.
[jira] Assigned: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn Jiang reassigned GERONIMO-5631:
-------------------------------------
Assignee: Shawn Jiang
> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
> Key: GERONIMO-5631
> URL: https://issues.apache.org/jira/browse/GERONIMO-5631
> Project: Geronimo
> Issue Type: Test
> Security Level: public(Regular issues)
> Components: persistence
> Affects Versions: 3.0
> Reporter: LiWenQin
> Assignee: Shawn Jiang
> Attachments: jpa2.0-test.7z
>
>
> 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 , 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 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/Course.java
> 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.
[jira] Commented: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923375#action_12923375 ]
Shawn Jiang commented on GERONIMO-5631:
---------------------------------------
Please add following in your root pom build section. This will generate the metamodel for you at the build time.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<compilerArgument>-Aopenjpa.metamodel=true</compilerArgument>
</configuration>
</plugin>
> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
> Key: GERONIMO-5631
> URL: https://issues.apache.org/jira/browse/GERONIMO-5631
> Project: Geronimo
> Issue Type: Test
> Security Level: public(Regular issues)
> Components: persistence
> Affects Versions: 3.0
> Reporter: LiWenQin
> Assignee: Shawn Jiang
> Attachments: jpa2.0-test.7z
>
>
> 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 , 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 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/Course.java
> 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.
[jira] Updated: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Posted by "LiWenQin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
LiWenQin updated GERONIMO-5631:
-------------------------------
Attachment: jpa2.0-test.7z
> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
> Key: GERONIMO-5631
> URL: https://issues.apache.org/jira/browse/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
>
>
> 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 , 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 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/Course.java
> 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.
[jira] Commented: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Posted by "LiWenQin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924449#action_12924449 ]
LiWenQin commented on GERONIMO-5631:
------------------------------------
Hi Shawn, meta-class can be created so that this problem is resolved.
Thanks a lot for Shawn's help!
> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
> Key: GERONIMO-5631
> URL: https://issues.apache.org/jira/browse/GERONIMO-5631
> Project: Geronimo
> Issue Type: Test
> Security Level: public(Regular issues)
> Components: persistence
> Affects Versions: 3.0
> Reporter: LiWenQin
> Assignee: Shawn Jiang
> Attachments: jpa2.0-test.7z
>
>
> 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 , 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 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/Course.java
> 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.
[jira] Closed: (GERONIMO-5631) Can NOT find meta class & can NOT
insert record in the table
Posted by "LiWenQin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
LiWenQin closed GERONIMO-5631.
------------------------------
Resolution: Fixed
Fix Version/s: 3.0
The problem has been resolved so that close it.
> Can NOT find meta class & can NOT insert record in the table
> ------------------------------------------------------------
>
> Key: GERONIMO-5631
> URL: https://issues.apache.org/jira/browse/GERONIMO-5631
> Project: Geronimo
> Issue Type: Test
> Security Level: public(Regular issues)
> Components: persistence
> Affects Versions: 3.0
> Reporter: LiWenQin
> Assignee: Shawn Jiang
> Fix For: 3.0
>
> Attachments: jpa2.0-test.7z
>
>
> 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 , 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 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/Course.java
> 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.