user1459961
user1459961

Reputation:

Struts2 + Hibernate : No target setted for Hibernate Session object

I use Struts2 + Hibernate. I get in my console this error : No target setted for Hibernate Session object at /test - Method: xxxa.action.TestAction.testFunc(). Use the hibernatePlugin.sessionTarget property or the SessionTarget Annotation.. Is it only a warning or an error? in both cases, what is required to do? Thank you.

Upvotes: 0

Views: 716

Answers (1)

Pello X
Pello X

Reputation: 481

I've the same problem using Struts2 + Hibernate. Every part of the puzzle was ok, database, pojo class, fields,... finally I fixed this simply putting my java classes (DAO, Entity pojo class, Action class) inside a package, instead of a blank one.

Upvotes: 1

Related Questions