I remember I had encountered the same error.. I don't remember what I did.
But here's a part of my application context.. and yest It works :)

    <!-- Enable support for @Repository components -->
    <context:component-scan base-package="org.ramanandi.matri.domain" />
    <context:component-scan base-package="org.ramanandi.framework.domain" />

    <bean id="entityManagerFactory"
        class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
        <property name="persistenceUnitName" value="transactions-optional"/>
    </bean>

    <bean id="persistenceUnitManager"

class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
        <property name="persistenceXmlLocation">
            <value>classpath:META-INF/persistence.xml</value>
        </property>
    </bean>

    <!-- Needed so the @PersistenceUnit annotation is recognized -->
    <bean
class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
/>

    <!--
        Transaction manager for a single EntityManagerFactory (alternative
to JTA)
    -->
    <bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
        <property name="entityManagerFactory" ref="entityManagerFactory" />
    </bean>

    <!-- support for @configurable using Aspect J -->
    <context:spring-configured/>

Let me know if it solves your proble.

Thanks
SN

On Fri, Jun 11, 2010 at 8:00 AM, Cleber Dantas Silva <[email protected]>wrote:

> Hi everybody !
>
> Im using SDK 1.3.4  Spring ORM 3.0.2
>
> Im with some problems using  on GAE.
>
> Im with the follow config:(applicationContext-dao.xml)
>
> <bean
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
>  <bean id="myEmf"
> class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
>       <property name="persistenceUnitName" value="protos-domain-unit"/>
>    </bean>
>
> <!-- Transaction manager -->
>  <bean id="transactionManager"
> class="org.springframework.orm.jpa.JpaTransactionManager">
> <property name="entityManagerFactory" ref="myEmf" />
>  </bean>
>
> <!-- Activates @Transactional -->
> <tx:annotation-driven transaction-manager="transactionManager" />
>  <!-- The dao classes are autodetected POJOs labeled with the @Repository
> annotation. -->
>  <context:component-scan  base-package="com.tikaboo.protos.dao"/>
>
>
> When i start the application, it returns:
>
> SEVERE: Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'myEmf' defined in ServletContext resource
> [/WEB-INF/applicationContext-dao.xml]: Invocation of init method failed;
> nested exception is javax.persistence.PersistenceException: Provider error.
> Provider: org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
>  at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
>
> Did you experience this error?
>
> Thanks !
> Cleber
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
Sudhir Ramanandi
http://www.ramanandi.org

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to