• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Spring Transction is giving JVMCFRE003 bad major version; class=javax/inject/Provider, offset=6 err  RSS feed

Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to understand how spring declarative transaction works .For that purpose I have created one sample app .Here is the detail about this :
The spring configuration xml :

<context:component-scan base-package="*" />

<context:property-placeholder location="properties/database.properties"
order="1" ignore-unresolvable="true" ignore-resource-not-found="false" />
<bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource" destroy-method="close">
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="maxActive" value="${jdbc.maxActive}" />
<property name="maxIdle" value="#{new Integer('1')}" />
<property name="minIdle" value="#{new Integer('1')}" />
<!-- <property name="maxActive" value="#{T(java.lang.Integer).parseInt(${jdbc.maxActive})}" /> -->
<property name="defaultAutoCommit" value="${jdbc.defaultAutoCommit}" />
<property name="maxWait" value="#{new Integer('10000')}" />
<property name="removeAbandoned" value="#{new Boolean('true')}" />
<property name="logAbandoned" value="#{new Boolean('true')}" />
<property name="removeAbandonedTimeout" value="#{new Integer('55')}"/>
<property name="validationQuery" value="SELECT 1"/>
<property name="jdbcInterceptors"
value="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor" />

<bean id="sessionFactory"

<property name="dataSource">
<ref bean="dataSource" />

<property name="hibernateProperties">
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>

<property name="annotatedClasses">
<property name="packagesToScan" value="org.satya.springhibernate.model" />
<tx:annotation-driven transaction-manager="transactionManager" />

<bean id="transactionManager"
<property name="dataSource" ref="dataSource" />

The PersonDAO class is like :

My main application :

The jars list :

while try to run the application I am getting :

I have no idea why am getting this error..

Thanks in advance ,
[Thumbnail for Capture.PNG]
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,
I have resolve the error , but now am getting :

Any idea why ?

Thanks ,
no wonder he is so sad, he hasn't seen this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!