Comments inlined...

----- Original Message ----- From: "Phill Moran" <[EMAIL PROTECTED]>
To: <open-jpa-dev@incubator.apache.org>
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.<clinit>(Store.java)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at $Proxy26.<clinit>(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.


Reply via email to