Ahh this rings some bells with me. I seem to remember a similar problem I was having.
The problem was that the set of three Hibernate libs I was using were not actually compatible with each other....
Type: Posts; User: techfoundry; Keyword(s):
Ahh this rings some bells with me. I seem to remember a similar problem I was having.
The problem was that the set of three Hibernate libs I was using were not actually compatible with each other....
Hi Marten,
I just deploy by copying all the class files, JSP's, etc. no war file. I think this must be something to do with Tomcat's class loader, because the web app works fine in my IDE...
Can't seem to find the answer to this in the docs - I'm sure it's been raised before (something to do with using a different type of bean processor for Tomcat?)
Anyway, I'm using the bean post...
I think getEntityManager() returns null as it's not designed to be invoked by a end-user client class, it's more of an internal method. I tried to use it also, but discovered that there is a whole...
Try using RedirectView instead.
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/web/servlet/view/RedirectView.html
that mechanism of using the 'redirect' prefix is...
How about configuring two OpenSessionInViewInterceptor beans, one for each session factory?
Have you specified that the Cliente class in META-INF/persistence.xml ?
The config you have looks the same as mine, and I have no problems - post your persistence.xml file.
The solution to this problem is the 'Front Controller' design pattern. Google this for more info.
Basically, in your front controller class check the database to see if all the variables have been...
For production deployment I have an Ant build script that uses production versions of files such log4j.properties, and for other files containing development properties I use Ant's regex replacement...
Nope, it just means you're being lazy :)
Try http://www.memestorm.com/
and erm Google 'Tomcat JPA Spring' !
The OpenSessionInViewFilter closes the session (associated with the thread handling the HTTP request) at the end of each HTTP request AFAIK (based upon the behaviour of...
How about -
<input type="reset" value="Reset!">
in your form?
Andy.
Use JCaptcha - http://jcaptcha.sourceforge.net/
Awesome ! I think you did most of the work here :)
I'll certainly add this to my list of test methods!
Andy.
Hibernate 3 does lazy fetching of collections by default. Either set you hibernate configuration to fetch the field eagerly, or in your code access the field to force it to be fetched from the...
Sounds like a homework question! www.hibernate.org and read the docs.
Update - solution was to avoid the issue by using annotation driven transactions, and to not use the tomcat class loader!
When create executes fine but the object(s) are not created in the database it means the transaction is not being committed.
The link you supplied requires an IBM password and I don't have one so...
You need to switch web sites and read www.hibernate.org to understand the query syntax that you need to use :)
c.categories like '%blabla%'
^^^^^
categories is a collection not a string.
This is the problem if you ask me !
Andy.
Well at LoginAction.java:23 you're calling a method that you expect to return an object of type com.lbi.equalito.service.LoginService but instead you're getting the web application context object -...
Which AJAX framework is better depends upon your requirements of course.
I use script.aculo.us with prototype (http://www.prototypejs.org/) and use JSON (http://www.json.org/) to send complex data...
Just looking at the controller code only, you're missing a few things. Here's what I use for writing AJAX responses -
response.setContentType("application/json");
...
It looks like you are trying pass a collection of objects as a parameter to the like argument.
E.g. c.categories is a class portal.model.Category - you need to pass the string typed field instead....
I don't use Hibernate directly, I use JPA, however from what I understand there is a direct equivalence between a Hibernate Session and a JPA EntityManager in the way it relates to storing object...