Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32579 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2015-09-11 18:59 +0200 |
| Last post | 2015-09-12 14:07 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
Why is my class not enhanced Cecil Westerhof <Cecil@decebal.nl> - 2015-09-11 18:59 +0200
Re: Why is my class not enhanced Arne Vajhøj <arne@vajhoej.dk> - 2015-09-11 21:48 -0400
Re: Why is my class not enhanced Cecil Westerhof <Cecil@decebal.nl> - 2015-09-12 14:07 +0200
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-09-11 18:59 +0200 |
| Subject | Why is my class not enhanced |
| Message-ID | <871te4uc1s.fsf@Equus.decebal.nl> |
Still busy with getting to grips with JPA. I am getting further, but
there are still some hurdles to take.
I can create an EntityMangerFactory and an EntityManger. But when I do
an em.find I get:
org.apache.openjpa.persistence.ArgumentException: The type "class nl.part1.part2.part3.NotifyMessage" has not been enhanced.
But I have in my pom.xml:
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<includes>nl/part1/part2/part3/**/*.class</includes>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${version.openjpa}</version>
</dependency>
</dependencies>
</plugin>
So I would expect my classes to be enhanced, but they are not. What
could be the problem?
I also tried to change:
<includes>nl/part1/part2/part3/**/*.class</includes>
to:
<includes>nl/part1/part2/part3/*.class</includes>
but that did not help.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2015-09-11 21:48 -0400 |
| Message-ID | <mt009f$nhg$1@speranza.aioe.org> |
| In reply to | #32579 |
On 9/11/2015 12:59 PM, Cecil Westerhof wrote:
> I can create an EntityMangerFactory and an EntityManger. But when I do
> an em.find I get:
> org.apache.openjpa.persistence.ArgumentException: The type "class nl.part1.part2.part3.NotifyMessage" has not been enhanced.
>
> But I have in my pom.xml:
> <plugin>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa-maven-plugin</artifactId>
> <version>2.2.0</version>
> <configuration>
> <includes>nl/part1/part2/part3/**/*.class</includes>
> </configuration>
> <executions>
> <execution>
> <id>enhancer</id>
> <phase>process-classes</phase>
> <goals>
> <goal>enhance</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa</artifactId>
> <version>${version.openjpa}</version>
> </dependency>
> </dependencies>
> </plugin>
>
> So I would expect my classes to be enhanced, but they are not. What
> could be the problem?
>
> I also tried to change:
> <includes>nl/part1/part2/part3/**/*.class</includes>
> to:
> <includes>nl/part1/part2/part3/*.class</includes>
> but that did not help.
I don't know OpenJPA, but a wild guess:
<includes>**/nl/part1/part2/part3/**/*.class</includes>
Arne
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-09-12 14:07 +0200 |
| Message-ID | <87twqzsuwa.fsf@Equus.decebal.nl> |
| In reply to | #32582 |
On Saturday 12 Sep 2015 03:48 CEST, Arne Vajhøj wrote:
> On 9/11/2015 12:59 PM, Cecil Westerhof wrote:
>> I can create an EntityMangerFactory and an EntityManger. But when I
>> do an em.find I get:
>> org.apache.openjpa.persistence.ArgumentException: The type "class
>> nl.part1.part2.part3.NotifyMessage" has not been enhanced.
>>
>> But I have in my pom.xml:
>> <plugin>
>> <groupId>org.apache.openjpa</groupId>
>> <artifactId>openjpa-maven-plugin</artifactId>
>> <version>2.2.0</version>
>> <configuration>
>> <includes>nl/part1/part2/part3/**/*.class</includes>
>> </configuration>
>> <executions>
>> <execution>
>> <id>enhancer</id>
>> <phase>process-classes</phase>
>> <goals>
>> <goal>enhance</goal>
>> </goals>
>> </execution>
>> </executions>
>> <dependencies>
>> <dependency>
>> <groupId>org.apache.openjpa</groupId>
>> <artifactId>openjpa</artifactId>
>> <version>${version.openjpa}</version>
>> </dependency>
>> </dependencies>
>> </plugin>
>>
>> So I would expect my classes to be enhanced, but they are not. What
>> could be the problem?
>>
>> I also tried to change:
>> <includes>nl/part1/part2/part3/**/*.class</includes>
>> to:
>> <includes>nl/part1/part2/part3/*.class</includes>
>> but that did not help.
>
> I don't know OpenJPA, but a wild guess:
>
> <includes>**/nl/part1/part2/part3/**/*.class</includes>
No, that does not make a difference. Thanks anyway.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web