From dev-return-19181-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Jun 13 11:35:51 2011 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1EBB67A4 for ; Mon, 13 Jun 2011 11:35:51 +0000 (UTC) Received: (qmail 52148 invoked by uid 500); 13 Jun 2011 11:35:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52107 invoked by uid 500); 13 Jun 2011 11:35:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 52099 invoked by uid 99); 13 Jun 2011 11:35:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 11:35:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 147.91.1.120 is neither permitted nor denied by domain of ognjen.d.blagojevic@gmail.com) Received: from [147.91.1.120] (HELO afrodita.rcub.bg.ac.rs) (147.91.1.120) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 11:35:45 +0000 Received: from [IPv6:2001:4170:0:4::66] (unknown [IPv6:2001:4170:0:4::66]) by afrodita.rcub.bg.ac.rs (Postfix) with ESMTP id 5C0A51919C1B for ; Mon, 13 Jun 2011 13:35:16 +0200 (CEST) Message-ID: <4DF5F5EC.70406@gmail.com> Date: Mon, 13 Jun 2011 13:35:08 +0200 From: Ognjen Blagojevic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Re: Building problems References: <4DEF6E49.1080306@gmail.com> <4DEF975B.5010408@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RCUB-MailScanner-Information: Please contact the ISP for more information X-RCUB-MailScanner-ID: 5C0A51919C1B.AB903 X-RCUB-MailScanner: Found to be clean X-RCUB-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.6, required 6, autolearn=not spam, BAYES_00 -2.60, NO_RELAYS -0.00) 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.: >> >> ---- >> > 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 >>> >>> 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 >>>> >>>> >>> >> >