And really sorry for it. Five mins later, I got the answer. there is
no sun's jdo2.jar and jpox-...jar contains some RI. Finally, I remove
jdo.jar from WEB-INF/lib, everything works
/Jack
On Tue, 8 Mar 2005 17:15:19 +0800, Jack Tang <hi...@gm...> wrote:
> Hi Spring guys
>
> Does spring support JDO2? I have gooogled, it said yes. And I followed
> the tutorial <http://www.jpox.org/docs/1_1/tutorials/springframework.html>.
> Some exceptions here:
>
> ERROR - Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean wit
> h name 'jdoPMF' defined in ServletContext resource [/WEB-INF/applicationContext-
> dao.xml]: Initialization of bean failed; nested exception is javax.jdo.JDOFatalU
> serException: JDO 2.0 capabilities cannot be accessed! Please make sure that you
> do not have a JDO 1.0 jar in front of the JDO 2 classes in your CLASSPATH.
> javax.jdo.JDOFatalUserException: JDO 2.0 capabilities cannot be accessed! Please
> make sure that you do not have a JDO 1.0 jar in front of the JDO 2 classes in y
> our CLASSPATH.
> at org.jpox.AbstractPersistenceManagerFactory.<init>(AbstractPersistence
> ManagerFactory.java:113)
> at org.jpox.PersistenceManagerFactoryImpl.<init>(PersistenceManagerFacto
> ryImpl.java:437)
> at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(P
> ersistenceManagerFactoryImpl.java:80)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>
> My spring version is 1.1.5, with jpox version 1.1.0-beta-1, and
> jdo.jar I copyed it from Spring's lib.
> So, any suggestions on how to make Spring and JDO2 harmonic?
> Thanks
>
> /Jack
>
|