Dependency Injection failing - hibernate with struts2 using the full-hibernate-plugin



i'm trying to use hibernate in a struts2 example using the struts2 full hibernate plugin (http://code.google.com/p/full-hibernate-plugin-for-struts2).


I've placed all the Jars in my lib folder:


antlr-2.7.6.jar
commons-collections-3.1.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
dom4j-1.6.1.jar
freemarker-2.3.15.jar
hibernate3.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
jtds-1.2.4.jar
log4j-1.2.15.jar
ognl-2.7.3.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
spring-bea

Related to : Dependency Injection failing - hibernate with struts2 using the full-hibernate-plugin
JSR-303 dependency injection and Hibernate
Programming Languages

Spring 3.0.2,
Hibernate 3.5.0,
Hibernate-Validator 4.0.2.GA


I am trying to inject Spring dependencies into a ConstraintValidator using:


@PersistenceContext
private EntityManager entityManager;

I have configured the application context with:


<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>

Which, according to the Spring documentation, should allow “custom ConstraintValidators to benefit from dependency injection like any other Spring bean”


Within the debugger I can see

how to show two tables data in jqgrid using struts2 - jqgrid plugin and hibernate
Programming Languages

I am using Struts 2.3.7, struts2-jquery-grid-plugin-3.5.0 and hibernate 3.6. I want to show data on jqgrid which is coming from two different tables.


My problem is that I have to show two tables data in one jqgrid .First three jqgrid column is filled by Issue table and last Column name="assignedTo" is filled by Issue_Tracker table. How to show the data in last column i.e. assignedTo. Any help would be appropriated.


My jqgrid is


<sjg:grid
id="gridtable"
caption="Issue-Summary"
dataType="json"
h
Full Hibernate Plugin only working with Hibernate3. Anyway with Hibernate4?
Programming Languages

I been struggling with struts2-fullhibernatecore-plugin-2.2.2-GA for my CRUD demo project for learning purpose. Below is the error I get and than different hibernate dependencies tried to make it work. See below


ERROR


java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
com.googlecode.s2hibernate.struts2.plugin.util.HibernateSessionFactory.createAndTestSessionFactory(HibernateSessionFactory.java:284)
com.googlecode.s2hibernate.struts2.plugin.util.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:227)
com.googlecode.s2hibernate.struts2.plugin.u
Dependency Injection failing - hibernate with struts2 using the full-hibernate-plugin
Programming Languages

i'm trying to use hibernate in a struts2 example using the struts2 full hibernate plugin (http://code.google.com/p/full-hibernate-plugin-for-struts2).


I've placed all the Jars in my lib folder:


antlr-2.7.6.jar
commons-collections-3.1.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
dom4j-1.6.1.jar
freemarker-2.3.15.jar
hibernate3.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
jtds-1.2.4.jar
log4j-1.2.15.jar
ognl-2.7.3.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
spring-bea
Struts2 2.3.8 with convention plugin 2.3.8 doesnt work with hibernate 3.2.5(netbeans fw plugin)
Programming Languages

I would like to use Struts2 convention plugin(2.3.8) together
with hibernate(netbeans framework plugin 3.2.5),
but there is conflict before two different
asm.jar versions.


Hibernate works fine with struts2 fw, but when i add convention plugin, I get error:


java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

Hibernate 3.2.5 needs asm.jar
Struts2 convention plugin needs asm-3.3.jar

IMHO convention plugin needs class: ClassWriter, which is located in asm-3.3.jar, but
looks into asm.jar.


tested with maven(there is
Struts2 Dependency Injection
Programming Languages

I am currently creating web application using Struts2 with Struts2-spring plugin.


here is a snippet of my applicationContext.xml


<bean id="sessionFactory" scope="singleton"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate.cfg.xml" />
</bean>
<!-- Springs Hibernate Transaction Manager -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .