• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,
I have resolve the error , but now am getting :

Any idea why ?

Thanks ,
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic