Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Error trying to create persistence unit without persistence.xml

    Using 3.1.2 (yes, it's older, too many dependencies to upgrade).

    our Spring context is as follows:


    <?xml version="1.0" encoding="UTF-8"?>
    <beans...
  2. Replies
    4
    Views
    899

    doesn't matter what trickery you try. As long as...

    doesn't matter what trickery you try. As long as someone can get at the server they can get the credentials one way or another.
    Either you have to have the decryption key in plaintext somewhere, or...
  3. override showForm and onFormSubmission instead of...

    override showForm and onFormSubmission instead of handleRequest and onSubmit.
  4. something like this? @Override ...

    something like this?


    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
    ModelAndView mav = new...
  5. Thread: Clear URLs

    by jwenting
    Replies
    4
    Views
    628

    use POST form submission instead of GET, and use...

    use POST form submission instead of GET, and use forwarding filters for the results.
  6. Replies
    4
    Views
    899

    yes, secure access to the server so not everyone...

    yes, secure access to the server so not everyone can get at the file.
    You should do that anyway.
  7. Not that we're seeing any error messages...

    Not that we're seeing any error messages whatsoever, just some informational stuff during the loading of the beans into the applicationContext.

    So it never even gets to the part where you're...
  8. ORM is not applicable when you have rules that...

    ORM is not applicable when you have rules that don't map to the ORM logic.
    Maybe your delete needs to do things that aren't mapped using the ORM framework and can't be put into a trigger for...
  9. What's your configuration like? Do you maybe have...

    What's your configuration like? Do you maybe have a typo somewhere, causing the transactionmanager to not notice the existence of the entitymanager defined in your configuration?

    You need...
  10. Replies
    7
    Views
    4,248

    I doubt he'll ever read your question, or respond...

    I doubt he'll ever read your question, or respond even if he does.

    It looks like a problem with the IBM JRE. You could try recompiling your classes using an IBM JDK, maybe even compile Spring from...
  11. Replies
    3
    Views
    998

    That indeed did the trick. Got the whole thing...

    That indeed did the trick. Got the whole thing working.

    Got to optimise the JPA code a bit still, seems to be a bit inefficient (generating too many queries that can be efficiently combined into...
  12. Replies
    3
    Views
    998

    Cheers. Will give that a try. Looked through...

    Cheers. Will give that a try.

    Looked through several books and all the examples use only primitives as fields of course.
    While they mention property editors those are almost universally limited...
  13. Replies
    2
    Views
    676

    You can't, not the way you think you want to at...

    You can't, not the way you think you want to at least.
    There is no difference in the incoming request depending on whether the request was generated using a link on your website or some other...
  14. Replies
    3
    Views
    998

    form:select selection not getting read?

    When using the form:select tag, the selected value(s) don't get set to the command bean.

    I guess I'm doing something wrong, but what?

    The main bean:


    public class Book extends PublishedItem...
  15. Replies
    6
    Views
    1,221

    name it -context.xml where...

    name it <ServletName>-context.xml where <ServletName> is the name of the Spring controller servlet.
    Place it on the classpath (so in your WEB-INF/classes directory).
  16. Replies
    1
    Views
    736

    I don't think there's a built-in mechanism, but...

    I don't think there's a built-in mechanism, but nothing prevents you from creating such a generator.
  17. Replies
    7
    Views
    21,000

    the iterate element indeed doesn't generate an...

    the iterate element indeed doesn't generate an "IN" element in the SQL, but something like "emp_id='123' or emp_id='425' or emp_id='633'".
    This could conceivably have the same effect (depending on...
  18. Replies
    3
    Views
    861

    I'm not entirely sure, but it may well be that...

    I'm not entirely sure, but it may well be that the loading takes place when the containing object instance is created, at which point the contained data isn't yet available.
    To make sure, just load...
  19. Replies
    4
    Views
    1,437

    It would certainly be cleaner to get a new...

    It would certainly be cleaner to get a new JdbcTemplate for the new query.
    While what you look to do may work (somewhat doubtful, without looking at the framework code I can't know for sure but I...
  20. Replies
    5
    Views
    1,317

    In your case the client of the webservice is the...

    In your case the client of the webservice is the real client.
    How can you guarantee that that client properly terminates the session so you can close your resources?

    Same principle applies as...
  21. Replies
    11
    Views
    2,999

    and don't use JRockit. It has problems of its...

    and don't use JRockit. It has problems of its own, which may affect interoperabillity with Sun VMs (and others).
  22. Replies
    5
    Views
    1,317

    in web applications you want to have a database...

    in web applications you want to have a database session last at most the length of a single request.
    Anything longer is a recipe for disaster (specifically connection starvation).

    The antipattern...
  23. Replies
    15
    Views
    7,218

    that would be a problem with your hibernate...

    that would be a problem with your hibernate configuration (or with your database configuration).
    Without more information noone will be able to help you further than that.
  24. Replies
    4
    Views
    983

    usually such errors (if there are no log entries)...

    usually such errors (if there are no log entries) result from typos in the web.xml (some errors there will cause log entries, some won't under all conditions).
  25. Replies
    2
    Views
    1,356

    That's not a problem with Spring but with your...

    That's not a problem with Spring but with your JSP engine, and specifically the JSP compiler/parser.
    The code generation step where it generates Java source code from your JSP doesn't recognise your...
Results 1 to 25 of 26
Page 1 of 2 1 2