Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 30366 invoked from network); 10 Apr 2007 07:15:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 07:15:40 -0000 Received: (qmail 37022 invoked by uid 500); 10 Apr 2007 07:15:46 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 36994 invoked by uid 500); 10 Apr 2007 07:15:45 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 36984 invoked by uid 99); 10 Apr 2007 07:15:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 00:15:45 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 210.54.141.244 is neither permitted nor denied by domain of rahul.thakur.xdev@gmail.com) Received: from [210.54.141.244] (HELO fep02.xtra.co.nz) (210.54.141.244) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 00:15:37 -0700 Received: from nonec03d6244ff ([222.155.144.100]) by fep02.xtra.co.nz with ESMTP id <20070410071513.LXBC19815.fep02.xtra.co.nz@nonec03d6244ff> for ; Tue, 10 Apr 2007 19:15:13 +1200 Message-ID: <001c01c77b40$17ff01e0$4001a8c0@nonec03d6244ff> From: "Rahul Thakur" To: References: <011f01c77ac9$74d26870$6601a8c0@tyan2400> Subject: Re: Compiling (build all) in eclipse Date: Tue, 10 Apr 2007 19:14:42 +1200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org Comments inlined... ----- Original Message ----- From: "Phill Moran" To: Sent: Tuesday, April 10, 2007 5:06 AM Subject: RE: Compiling (build all) in eclipse > Eclipse clean workspace > Import Maven generate project (eclipse:eclispe) > Build all > --> Error There is no enhancement being done here by the Enchancer, Eclipse is simply generating class files - I'd imagine that is causing the error. > > The same POM builds fine externally through mvn package What do you mean that POM 'builds' fine through 'mvn package' - do you have the OpenJPA Maven plugin set up to enhance classes. > > Other interesting points: > I was getting a NPE from maven build so I turn off the maven builder > but that > had no effect. > Have also tried clean then build all, and physically deleted all > resources > All openJPAXXX jar are in the lib (repository) > > I am certain this is a configuration problem. Just not sure what > > Phill > > -----Original Message----- > From: Patrick Linskey [mailto:plinskey@bea.com] > Sent: April 9, 2007 12:59 PM > To: open-jpa-dev@incubator.apache.org > Subject: RE: Compiling (build all) in eclipse > > Hmm. It sounds like maybe the Persistable class hasn't been enhanced. > It's a surprising error, but it looks like OpenJPA hasn't really > gotten into the > loop at this point, which would explain why you're not seeing anything > more > informative. > > Could this explain the situation? > > -Patrick > > -- > Patrick Linskey > BEA Systems, Inc. > > _______________________________________________________________________ > Notice: This email message, together with any attachments, may > contain > information of BEA Systems, Inc., its subsidiaries and > affiliated > entities, that may be confidential, proprietary, copyrighted > and/or legally > privileged, and is intended solely for the use of the individual or > entity named > in this message. If you are not the intended recipient, and have > received this > message in error, please immediately return this by email and then > delete it. > >> -----Original Message----- >> From: Phill Moran [mailto:pjmoran@rogers.com] >> Sent: Monday, April 09, 2007 9:50 AM >> To: open-jpa-dev@incubator.apache.org >> Subject: Compiling (build all) in eclipse >> >> Troubles continue.... Any suggestions for this problem in eclipse??? >> >> org.springframework.beans.factory.BeanCreationException: >> Error creating bean >> with name 'personFactory' defined in file >> [C:\BidSpec\emall\development\emall\target\classes\application >> Context.xml]: >> Initialization of bean failed; nested exception is >> java.lang.NoSuchMethodError: >> ca.BidSpec.emall.persistence.Persistable.pcGetManagedFieldCount()I >> Caused by: java.lang.NoSuchMethodError: >> ca.BidSpec.emall.persistence.Persistable.pcGetManagedFieldCount()I >> at ca.BidSpec.emall.stores.Store.(Store.java) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:169) >> at $Proxy26.(Unknown Source) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCo >> nstructorAccessorI >> mpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Dele >> gatingConstructorA >> ccessorImpl.java:27) >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) >> at >> org.springframework.aop.framework.JdkDynamicAopProxy.getProxy( >> JdkDynamicAopProxy >> .java:115) >> at >> org.springframework.aop.framework.ProxyFactory.getProxy(ProxyF >> actory.java:110) >> at >> org.springframework.aop.framework.autoproxy.AbstractAutoProxyC >> reator.createProxy >> (AbstractAutoProxyCreator.java:401) >> at >> org.springframework.aop.framework.autoproxy.AbstractAutoProxyC >> reator.postProcess >> AfterInitialization(AbstractAutoProxyCreator.java:279) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.app >> lyBeanPostProcessorsAfterInitialization(AbstractAutowireCapabl >> eBeanFactory.java: >> 318) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.ini >> tializeBean(AbstractAutowireCapableBeanFactory.java:1119) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.cre >> ateBean(AbstractAutowireCapableBeanFactory.java:431) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory$ >> 1.getObject(Abstra >> ctBeanFactory.java:254) >> at >> org.springframework.beans.factory.support.DefaultSingletonBean >> Registry.getSingle >> ton(DefaultSingletonBeanRegistry.java:144) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory. >> getBean(AbstractBe >> anFactory.java:251) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory. >> getBean(AbstractBe >> anFactory.java:163) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.aut >> owireByName(AbstractAutowireCapableBeanFactory.java:862) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.pop >> ulateBean(AbstractAutowireCapableBeanFactory.java:810) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapa >> bleBeanFactory.aut >> owireBeanProperties(AbstractAutowireCapableBeanFactory.java:273) >> at >> org.springframework.test.AbstractDependencyInjectionSpringCont >> extTests.injectDep >> endencies(AbstractDependencyInjectionSpringContextTests.java:179) >> at >> org.springframework.test.AbstractDependencyInjectionSpringCont >> extTests.prepareTe >> stInstance(AbstractDependencyInjectionSpringContextTests.java:158) >> at >> org.springframework.test.AbstractSingleSpringContextTests.setU >> p(AbstractSingleSp >> ringContextTests.java:88) >> at junit.framework.TestCase.runBare(TestCase.java:132) >> at >> org.springframework.test.ConditionalTestCase.runBare(Condition >> alTestCase.java:69 >> ) >> at >> org.springframework.test.annotation.AbstractAnnotationAwareTra >> nsactionalTests.ac >> cess$001(AbstractAnnotationAwareTransactionalTests.java:47) >> at >> org.springframework.test.annotation.AbstractAnnotationAwareTra >> nsactionalTests$1. >> run(AbstractAnnotationAwareTransactionalTests.java:115) >> at >> org.springframework.test.annotation.AbstractAnnotationAwareTra >> nsactionalTests.ru >> nTest(AbstractAnnotationAwareTransactionalTests.java:180) >> at >> org.springframework.test.annotation.AbstractAnnotationAwareTra >> nsactionalTests.ru >> nTestTimed(AbstractAnnotationAwareTransactionalTests.java:153) >> at >> org.springframework.test.annotation.AbstractAnnotationAwareTra >> nsactionalTests.ru >> nBare(AbstractAnnotationAwareTransactionalTests.java:111) >> at >> org.springframework.test.jpa.AbstractJpaTests.runBare(Abstract >> JpaTests.java:159) >> at >> org.springframework.test.jpa.AbstractJpaTests.runBare(Abstract >> JpaTests.java:239) >> at junit.framework.TestResult$1.protect(TestResult.java:110) >> at junit.framework.TestResult.runProtected(TestResult.java:128) >> at junit.framework.TestResult.run(TestResult.java:113) >> at junit.framework.TestCase.run(TestCase.java:124) >> at junit.framework.TestSuite.runTest(TestSuite.java:232) >> at junit.framework.TestSuite.run(TestSuite.java:227) >> at >> org.junit.internal.runners.OldTestClassRunner.run(OldTestClass >> Runner.java:35) >> at >> org.junit.internal.runners.CompositeRunner.run(CompositeRunner >> .java:29) >> at >> org.junit.internal.runners.TestClassRunner$1.runUnprotected(Te >> stClassRunner.java >> :42) >> at >> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(B >> eforeAndAfterRunne >> r.java:34) >> at >> org.junit.internal.runners.TestClassRunner.run(TestClassRunner >> .java:52) >> at >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run >> (JUnit4TestReferen >> ce.java:38) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestEx >> ecution.java:38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest >> s(RemoteTestRunner >> .java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest >> s(RemoteTestRunner >> .java:673) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem >> oteTestRunner.java >> :386) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(Re >> moteTestRunner.jav >> a:196) >> >> >> >> > > Notice: This email message, together with any attachments, may > contain > information of BEA Systems, Inc., its subsidiaries and > affiliated > entities, that may be confidential, proprietary, copyrighted > and/or legally > privileged, and is intended solely for the use of the individual or > entity named > in this message. If you are not the intended recipient, and have > received this > message in error, please immediately return this by email and then > delete it. >