You have both tapestry-hibernate and tapestry-jpa on your classpath. This
is not expected to work. Remove one of those libs.

On Tue, Nov 22, 2011 at 3:28 PM, saurabh.jain <saurabh.j...@creditpointe.com
> wrote:

> Hello,
>
>
>
> I am working on integrating JPA with Tapestry 5.3.0.
>
> I follow all steps mentions in site
> http://tapestry.apache.org/integrating-with-jpa.html
>
>
>
> But it throws following exception.
>
> Unable to attach page Createperson: Exception constructing service
> 'PersistentFieldManager': Error invoking constructor
>
> org.apache.tapestry5.internal.services.PersistentFieldManagerImpl(MetaDataLo
> cator, Map) (at PersistentFieldManagerImpl.java:39) via
> org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder)
> (at InternalModule.java:88) (for service 'PersistentFieldManager'): Error
> invoking service contribution method
>
> org.apache.tapestry5.hibernate.HibernateModule.contributePersistentFieldMana
> ger(MappedConfiguration): Service contribution (to service
> 'PersistentFieldManager') conflicts with existing contribution (by
>
> org.apache.tapestry5.jpa.JpaModule.provideEntityPersistentFieldStrategies(Ma
> ppedConfiguration) (at JpaModule.java:137)).
>
>
>
> My persistence.xml looks like as
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence";
>
>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
>                xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> persistence_2_0.xsd"
>
>                version="2.0">
>
>    <persistence-unit name="mydb" transaction-type="RESOURCE_LOCAL">
>
>        <exclude-unlisted-classes>false</exclude-unlisted-classes>
>
>        <properties>
>
>            <property name="javax.persistence.jdbc.driver"
> value="oracle.jdbc.driver.OracleDriver"/>
>
>            <property name="javax.persistence.jdbc.url"
> value="jdbc:oracle:thin:@172.20.1.115:5584:PLTDEV"/>
>
>            <property name="javax.persistence.jdbc.user" value="rage"/>
>
>            <property name="javax.persistence.jdbc.password" value="RAGE"/>
>
>        </properties>
>
>    </persistence-unit>
>
> </persistence>
>
>
>
> So please help what I do, to resolve the issue.
>
>
>
> Regards,
>
>
>
> Saurabh Jain
>
>
> This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you
>
>
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to