RE: Compiling (build all) in eclipse
You can hook the process-classes phase in maven for the openJPA enhance goal. SO when ever you do a mvn package it enhances the classes. Works like a charm outside of Eclipse. This use to work in eclipse and when I imported the project into eclipse it stopped working. Just can't figure out why -Original Message- From: Rahul Thakur [mailto:[EMAIL PROTECTED] Sent: April 10, 2007 3:15 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Compiling (build all) in eclipse Comments inlined... - Original Message - From: "Phill Moran" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] >> 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.sprin
Re: Compiling (build all) in eclipse
Comments inlined... - Original Message - From: "Phill Moran" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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.f
RE: Compiling (build all) in eclipse
Eclipse clean workspace Import Maven generate project (eclipse:eclispe) Build all --> Error The same POM builds fine externally through mvn package 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] > 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(AbstractAutowireCapa
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:[EMAIL PROTECTED] > 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(AbstractAnnotationAwareTransactional