Search:

Type: Posts; User: techfoundry; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    2,261

    Ahh this rings some bells with me. I seem to...

    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....
  2. Hi Marten, I just deploy by copying all the...

    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...
  3. Bean post-processor fails to work with Apache Tomcat

    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...
  4. I think getEntityManager() returns null as it's...

    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...
  5. Replies
    1
    Views
    951

    Try using RedirectView instead. ...

    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...
  6. How about configuring two...

    How about configuring two OpenSessionInViewInterceptor beans, one for each session factory?
  7. Replies
    1
    Views
    833

    Have you specified that the Cliente class in...

    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.
  8. The solution to this problem is the 'Front...

    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...
  9. Replies
    5
    Views
    1,124

    For production deployment I have an Ant build...

    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...
  10. Replies
    5
    Views
    1,668

    Nope, it just means you're being lazy :) Try...

    Nope, it just means you're being lazy :)

    Try http://www.memestorm.com/

    and erm Google 'Tomcat JPA Spring' !
  11. Replies
    8
    Views
    1,116

    The OpenSessionInViewFilter closes the session...

    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...
  12. Replies
    1
    Views
    1,442

    How about -

    How about -

    <input type="reset" value="Reset!">

    in your form?

    Andy.
  13. Use JCaptcha - http://jcaptcha.sourceforge.net/

    Use JCaptcha - http://jcaptcha.sourceforge.net/
  14. Awesome ! I think you did most of the work here...

    Awesome ! I think you did most of the work here :)

    I'll certainly add this to my list of test methods!

    Andy.
  15. Hibernate 3 does lazy fetching of collections by...

    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...
  16. Replies
    1
    Views
    700

    Sounds like a homework question!...

    Sounds like a homework question! www.hibernate.org and read the docs.
  17. Replies
    1
    Views
    1,033

    Update - solution was to avoid the issue by using...

    Update - solution was to avoid the issue by using annotation driven transactions, and to not use the tomcat class loader!
  18. When create executes fine but the object(s) are...

    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...
  19. Thread: Help ...

    by techfoundry
    Replies
    7
    Views
    1,024

    You need to switch web sites and read...

    You need to switch web sites and read www.hibernate.org to understand the query syntax that you need to use :)
  20. Thread: Help ...

    by techfoundry
    Replies
    7
    Views
    1,024

    c.categories like '%blabla%' ^^^^^ ...

    c.categories like '%blabla%'
    ^^^^^

    categories is a collection not a string.

    This is the problem if you ask me !

    Andy.
  21. Replies
    1
    Views
    581

    Well at LoginAction.java:23 you're calling a...

    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 -...
  22. Replies
    4
    Views
    1,275

    Which AJAX framework is better depends upon your...

    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...
  23. Replies
    4
    Views
    1,275

    Just looking at the controller code only, you're...

    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");
    ...
  24. Thread: Help ...

    by techfoundry
    Replies
    7
    Views
    1,024

    It looks like you are trying pass a collection of...

    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....
  25. I don't use Hibernate directly, I use JPA,...

    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...
Results 1 to 25 of 39
Page 1 of 2 1 2