-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: cannot update database ....
PostPosted: Fri Aug 25, 2006 2:40 am 
Beginner
Beginner

Joined: Thu Aug 10, 2006 2:06 am
Posts: 26
hi all,
i am working with JPA. i actually do not get any exception or any error but when i try updating my database or insert into the database, i am unable to do so.
actually i am using weblogic as my appserver. when i deploy the same application on jboss no such problem is encountered but with weblogic i have this problem.
my persistence.xml is :

<?xml version="1.0"?>
<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
http://java.sun.com/xml/ns/persistence/ ... ce_1_0.xsd"
version="1.0">

<persistence-unit name="jpaDaoDB" transaction-type="JTA">

<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>PayeeDetail</jta-data-source>

<class>com.infosys.j2ee.setlbank.entity.operativeaccounts.Accounts</class>
<class>com.infosys.j2ee.setlbank.entity.address.Address</class>
<class>com.infosys.j2ee.setlbank.entity.customise.Customer</class>
<class>com.infosys.j2ee.setlbank.entity.pendingtransfer.FundTransfer</class>
<class>com.infosys.j2ee.setlbank.entity.billpayments.Payee</class>
<class>com.infosys.j2ee.setlbank.entity.billpaymentsdetails.Payments</class>
<class>com.infosys.j2ee.setlbank.entity.request.Request</class>
<class>com.infosys.j2ee.setlbank.entity.transaction.Transaction</class>

<properties>
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.connection.username" value="weblogic"/>
<property name="hibernate.connection.password" value="weblogic"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@172.25.203.136:1526:PETSTORE"/>
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver"/>
<property name="hibernate.query.factory_class" value="org.hibernate.hql.classic.ClassicQueryTranslatorFactory"/>
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
<property name="hibernate.transaction.factory_class" value="org.hibernate.ejb.transaction.JoinableCMTTransactionFactory"/>
</properties>
</persistence-unit>
</persistence>


can anyone tell me what can the problem be..
thanx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.