• 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • 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>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">

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

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

<property name="annotatedClasses">
<list>
<value>org.satya.springhibernate.model.Stock</value>
<value>org.satya.springhibernate.model.AuditLog</value>
<value>org.satya.springhibernate.model.Account</value>
<value>org.satya.springhibernate.model.AuditLog</value>
<value>com.javahonk.di.bean.Person</value>
</list>
</property>
<property name="packagesToScan" value="org.satya.springhibernate.model" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager" />

<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>



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 ,
Satya
Capture.PNG
[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 ,
Satya
 
no wonder he is so sad, he hasn't seen this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!