users@glassfish.java.net

Re: Java Persistence API and german umlauts in path

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jan 2008 20:26:46 PST

I am having the same problem now and even though i picked up the latest v2.1 V2.1_build_b15 from the glassfish site its still not resolving. following is my stack..

<<Exception >>: org.springframework.
beans.factory.BeanCreationException: Error creating bean with name 'accumulatorD
AO': Injection of persistence fields failed; nested exception is org.springframe
work.beans.factory.BeanCreationException: Error creating bean with name 'entityM
anagerFactory' defined in URL [jar:file:/C:/Program Files/jboss-4.0.4.GA/server/
default/tmp/deploy/tmp44119Product-0.0.1-SNAPSHOT.ear-contents/Server-0.0.1-SNAP
SHOT.jar!/ApplicationContext.xml]: Invocation of init method failed; nested exce
ption is javax.persistence.PersistenceException: No Persistence provider for Ent
ityManager named toplinkLocal: The following providers:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
oracle.toplink.essentials.PersistenceProvider
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'accumulatorDAO': Injection of persistence fields failed; nest
ed exception is org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'entityManagerFactory' defined in URL [jar:file:/C:/Progr
am Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp44119Product-0.0.1-SNAPSHOT
.ear-contents/Server-0.0.1-SNAPSHOT.jar!/ApplicationContext.xml]: Invocation of
init method failed; nested exception is javax.persistence.PersistenceException:
No Persistence provider for EntityManager named toplinkLocal: The following pro
viders:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
oracle.toplink.essentials.PersistenceProvider
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating ng bean with name 'entityManagerFactory' defined in URL [jar:file:/C:/Program Fi
les/jboss-4.0.4.GA/server/default/tmp/deploy/tmp44119Product-0.0.1-SNAPSHOT.ear-
contents/Server-0.0.1-SNAPSHOT.jar!/ApplicationContext.xml]: Invocation of init
method failed; nested exception is javax.persistence.PersistenceException: No Pe
rsistence provider for EntityManager named toplinkLocal: The following provider
s:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
oracle.toplink.essentials.PersistenceProvider
Returned null to createEntityManagerFactory.

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1362)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:485)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:455)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:169)

I dont think that it is because of any spring related stuff as this is working fine in pojo mode.
[Message sent by forum member 'vaidya1973' (vaidya1973)]

http://forums.java.net/jive/thread.jspa?messageID=251856