Hello Guy's
I have a little problems here to connect my webservice to an oracle database with Spring.
Everything compile and run, but when i start my JUnit testing and all the DAO things is doing, ive got this uncomprehensible error here :
INFO: Application has thrown exception, unwinding now: javax/transaction/SystemException
I can't figure what is the problems, ive got no info, and no exceptions in my log files ...
Here a couple of my configuration .
PersistanceContext.xml :
Maybe im doing some error in my configuration , im kind of little noob here.Code:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns ="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx" xmlns wr="http://www.directwebremoting.org/schema/spring-dwr" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schem...ing-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schem...ema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd"> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="SpringJpaSource"/> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> <property name="showSql" value="true" /> <property name="generateDdl" value="false" /> <property name="databasePlatform" value="org.hibernate.dialect.Oracle9iDialect" /> <property name="database" value="ORACLE" /> </bean> </property> </bean> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="oracle.jdbc.OracleDriver"/> <property name="url" value="jdbc racle:thin:@***.*******.com:1521:SERVER> <property name="username" value="*******"/> <property name="password" value="********"/> </bean> <tx:annotation-driven /> <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" /> <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/> <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory"/> <property name="dataSource" ref="dataSource"/> </bean> <bean id="mybean" class="com.nomdomaine.servicepackage.dao.myimplementation"/> </beans> *************************************************** persistance.xml : <?xml version="1.0" encoding= "UTF-8"?><persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit name="SpringJpaSource" transaction-type="RESOURCE_LOCAL"/></persistence>
It will be great if someone can help me with that.
Thanks
Chris.


Reply With Quote