openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <>
Subject [jira] [Closed] (OPENJPA-822) hidden dependency on javax.jdo.spi.PersistenceCapable???
Date Wed, 06 Jul 2011 21:41:16 GMT


Rick Curtis closed OPENJPA-822.

    Resolution: Cannot Reproduce
      Assignee: Rick Curtis

I'm unable to reproduce this issue. 

Please reopen if you would like to spend a few cycles helping debug.

> hidden dependency on javax.jdo.spi.PersistenceCapable??? 
> ---------------------------------------------------------
>                 Key: OPENJPA-822
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.2.0
>         Environment: Windows XP SP3
> Java 6
> Maven 2.0.9
>            Reporter: Ari Meyer
>            Assignee: Rick Curtis
>            Priority: Minor
> Hi,
> It appears there's a dependency on javax.jdo.spi.PersistenceCapable when either running
the enhancer or performing lazy loading with enhanced classes, but this dependency isn't specified
in the Maven POM nor documented anywhere.  Here's some output running the Ant task via Maven:
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
>      [java] Exception in thread "Main Thread" java.lang.IllegalArgumentException: 
> java.lang.NoClassDefFoundError: javax/jdo/spi/PersistenceCapable
>      [java]     at serp.util.Strings.toClass(
>      [java]     at serp.util.Strings.toClass(
>      [java]     at serp.bytecode.BCClass.getType(
>      [java]     at org.apache.openjpa.enhance.PCEnhancer.<init>(
>      [java]     at
>      [java]     at
>      [java]     at org.apache.openjpa.enhance.PCEnhancer$
>      [java]     at org.apache.openjpa.lib.conf.Configurations.launchRunnable(
>      [java]     at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(
>      [java]     at
>      [java]     at org.apache.openjpa.enhance.PCEnhancer.main(
>      [java] Java Result: 1
> I worked around this by specifying this in my POM:
> 		<dependency>
> 			<groupId>javax.jdo</groupId>
> 			<artifactId>jdo2-api</artifactId>
> 			<version>2.0</version>
> 		</dependency>
> (Note: I chose that version because it was the latest one that didn't have a dependency
on javax.transaction, since that causes Maven pain.)
> With that change, everything seems to work fine, but I'm not sure if that dependency
is really supposed to be there at all.  Please review, and, at minimum, update the POM and
make this dependency explicit in the documentation.
> Thank you!
> Ari

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message