Kevin,
The tests are running fine now. I am unable to reproduce it anymore, it
seems that clean checkout and build solved the thing. :( Sorry for the
false alarm.
-Ognjen
On 8.6.2011 20:40, Kevin Sutter wrote:
> Sorry that you are still having issues performing an OpenJPA build and
> tests. I just verified that the whole openjpa-kernel test bucket runs
> successfully. And, then I tested the specific TestProxyManager test without
> any problems.
>
> All of the build dependencies and environment setup is documented here:
> http://openjpa.apache.org/build-and-runtime-dependencies.html
>
> What version of Java are you using? Since you are hitting an
> AbstractMethodError, that might be something that is different. I am on
> Windows with the IBM JDK:
> java full version "JRE 1.6.0 IBM Windows 32 build pwi3260sr8fp1-20100624_01
> (SR8 FP1)"
>
> You might have to do more experimentation with helping to figure out why
> your environment is producing these errors. Let us know what you find out.
>
> Thanks,
> Kevin
>
> On Wed, Jun 8, 2011 at 10:38 AM, Ognjen Blagojevic<
> ognjen.d.blagojevic@gmail.com> wrote:
>
>> Kevin,
>>
>> Thanks for your help, it compiles now. I added problem and workaround to:
>>
>> https://issues.apache.org/jira/browse/OPENJPA-2009
>>
>> However, now I have test errors at openjpa-kernel, e.g.:
>>
>> ----
>> <testcase time="0" classname="org.apache.openjpa.util.TestProxyManager"
>> name="testCopyProxyCollection">
>> ...
>> java.lang.AbstractMethodError:
>> org.apache.openjpa.util.java$util$ArrayList$proxy.newInstance(Ljava/lang/Class;Ljava/util/Comparator;ZZ)Lorg/apache/openjpa/util/ProxyCollection;
>> at
>> org.apache.openjpa.util.ProxyManagerImpl.newCollectionProxy(ProxyManagerImpl.java:192)
>> at
>> org.apache.openjpa.util.TestProxyManager.testCopyProxyCollection(TestProxyManager.java:176)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> -----
>>
>> 18 errors, all in the class TestProxyManager.
>>
>> Is there anything I need to do before I run the tests?
>>
>>
>> Regards,
>> Ognjen
>>
>>
>>
>>
>> On 8.6.2011 16:03, Kevin Sutter wrote:
>>
>>> Hi,
>>> What maven command are you using to build with? I just tried "mvn clean
>>> install" and it worked without a hitch.
>>>
>>> Concerning the errors you are getting... OpenBooks was updated a while
>>> back
>>> to run against the trunk binaries, which is the 2.2.0-SNAPSHOT version.
>>> So,
>>> you will need the directory and it's contents downloaded from one of the
>>> main repositories. Just creating the directory is not sufficient.
>>>
>>> My guess is that creating the directory got you by the initial error, but
>>> since it's empty, you don't have the rest of the binaries that make up the
>>> OpenJPA 2.2.0-SNAPSHOT deliverable and that's why you have the other
>>> errors
>>> with missing javax.persistence.* packages.
>>>
>>> Good luck,
>>> Kevin
>>>
>>> 2011/6/8 Ognjen Blagojevic<ognjen.d.blagojevic@gmail.com>
>>>
>>> Hi,
>>>>
>>>> I am trying to build the trunk, and I have two problems:
>>>>
>>>> 1. First it reports:
>>>>
>>>> [INFO] Building OpenJPA Examples - OpenBooks
>>>> ...
>>>> [INFO] Executing tasks
>>>> [echo] Running OpenBooks genmodel
>>>>
>>>> info:
>>>> [echo]
>>>> [echo] Builds OpenBooks demo application.
>>>> [echo] OpenJPA Library:
>>>> d:/java/lib-maven2/repo/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT
>>>> [echo] Build mode : jse
>>>> [echo] Deploy Location:
>>>> D:\java-ext\openjpa\openjpa-examples\openbooks/target/openbooks
>>>> [echo]
>>>>
>>>> check-env:
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] An Ant BuildException has occured: The following error occurred
>>>> while executing this line:
>>>> D:\java-ext\openjpa\openjpa-examples\openbooks\build.xml:116: *** Error:
>>>> The directory for OpenJPA libraries can not be located
>>>> at
>>>> d:/java/lib-maven2/repo/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT.
>>>> Make sure openjpa.lib property value is correct in
>>>> build.properties file.
>>>>
>>>>
>>>> This one is possible to workaroud by manually creating folder
>>>> openjpa-all/2.2.0-SNAPSHOT inside
>>>> d:/java/lib-maven2/repo/org/apache/openjpa.
>>>>
>>>>
>>>> 2. Afther that one, it reports:
>>>>
>>>> [INFO] Building OpenJPA Examples - OpenBooks
>>>> ...
>>>> generate-canonical-model:
>>>> [javac] Compiling 8 source files to
>>>> D:\java-ext\openjpa\openjpa-examples\openbooks\target\classes
>>>> [javac]
>>>>
>>>> D:\java-ext\openjpa\openjpa-examples\openbooks\src\main\java\openbook\domain\Author.java:20:
>>>> package javax.persistence does not exist
>>>> [javac] import javax.persistence.Entity;
>>>> ...
>>>>
>>>> And bunch of similar errors regarding javax.persistence package.
>>>>
>>>> Is some dependency missing in pom.xml of openjpa-exmaples?
>>>>
>>>>
>>>> Regards,
>>>> Ognjen
>>>>
>>>>
>>>
>>
>
|