Questions tagged [struts2-s2hibernate]

Full Hibernate Plugin for Struts2.

The Struts 2 Full Hibernate Plugin provides Hibernate Validator integration, Hibernate Core Sessions injection capability, Transactions injection capability and Hibernate Core configuration management Web Tool.

18 questions
2
votes
1 answer

Hibernate and Struts2 java.lang.NullPointerException w/CRUD Demo

I have a project which I am using Hibernate and Struts2 together, and I am new to both of them. I am having trouble working out the CRUD process with the Hibernate and Struts2 combinations. I want to do this in a specific way, but am having trouble.…
rwblackburn
  • 371
  • 3
  • 13
2
votes
2 answers

Struts 2 JUnit plugin + Hibernate

I'm testing my Struts 2 web application using Struts 2 JUnit plugin, following Unit Testing. In my web application I use fullHibernateCore-plugin-1.4 to integrate Hibernate functionality. When I test an action that do some Hibernate stuff, it…
2
votes
1 answer

Java Hibernate Connection Leak

Using Hibernate with Struts2, entire flow is as: hibernate.cfg.xml as: org.hibernate.dialect.Oracle9Dialect
1
vote
1 answer

Hiberate with Struts2 - Use Full Hibernate Plugin or another method to close Sessions?

I'm using Struts 2.2.1.1 and Hibernate 3.6.2.Final. I'm also using C3P0 for my connection pool which is running on Tomcat 7.0.11. I'm having issues where my Hibernate Sessions are not being closed and I'm quickly exceeding the maximum number of…
Justin
  • 6,031
  • 11
  • 48
  • 82
1
vote
1 answer

Issues with Hibernate 4.3.5 c3p0-0.9.1

I am using Hibernate 4.3.5 I am trying to connect to Database (Oracle) And I have tried connection pooling with c3p0-0.9.1. I have set the following Properties to enable Connection pooling with c3p0-0.9.1.
Rookie007
  • 1,229
  • 2
  • 18
  • 50
1
vote
2 answers

NullPointerException while trying to add an ORM layer using Hibernate

Well, I have been trying to add an ORM layer for past 3 weeks and I haven't been able to do so. I was trying to learn from the tutorial. I have done whatever the tutorial says. Here is the code: Student.java: package…
1
vote
1 answer

Can't save an object to database using hibernate

I am new to sturts2 and hibernate frameworks. I am making test web application. I have one model class 'UserDetails' one DAO class one Implementation of DAO and action class. And when saving object to database I'm getting the following error:…
tuazku
  • 129
  • 1
  • 3
  • 17
0
votes
1 answer

Struts2 + Full Hibernate Plugin --> Session is Closed?

Related to this question (where the answer doesn't really get to the point): Hiberate with Struts2 - Use Full Hibernate Plugin or another method to close Sessions? I have the same setup: Struts 2.2.3 and the struts2-fullhibernatecore-plugin-2.2.2-GA…
Akku
  • 4,373
  • 4
  • 48
  • 67
0
votes
0 answers

HIbernate struts2 session null pointer exception

I am creating one simple login example using struts2 and hibernate. For doing this I am creating one session variable with @SessionTarget annotation. But when I am trying to use this session variable then I am getting null pointer exception. …
Shiladittya Chakraborty
  • 4,270
  • 8
  • 45
  • 94
0
votes
0 answers

Struts2 : NullPointerException interceptors login

i have finished my webApp and i want to integrate Authentication with Interceptor there I got a Null pointer Exception when trying to save an obj... what actually happen is when I implemented interceptor while inserting or getting any obj into DB,…
Student
  • 57
  • 2
  • 9
0
votes
1 answer

Struts 2 and Hibernate - What is the best practice?

I am using Struts 2 and Hibernate. I know that URL params are readily available in Action class. I also have a Model class which has getters and setters which is hooked to database table through Hibernate. To link URL params to Model Class, I have…
rabin
  • 221
  • 1
  • 11
0
votes
1 answer

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…
Chris
  • 39,719
  • 45
  • 189
  • 235
0
votes
1 answer

struts2+hibernate java.lang.reflect.InvocationTargetException

I have a problem when i am trying to list the table using hibernate, I am not getting the problem when i am adding data to table. Problem is when i am retrieving. The Action method @Action(value="list", results = { @Result(location="/index.jsp"),…
Aadam
  • 1,521
  • 9
  • 30
  • 60
0
votes
1 answer
0
votes
1 answer

Struts2 Hibernate PLugin

I'm looking for a hibernate plugin that work well with struts2 where can query data using hibernate (JPA) and display it in jsp without violate situation such as hibernate session closed. I'm using latest struts2, Hibernate (JPA). Is it better to…
nicholas
  • 2,581
  • 14
  • 66
  • 104
1
2