Results 1 to 3 of 3
  1. #1
    fredand44 is offline Member
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    0

    Default Is it possible to use Spring with DefaultClassloader

    Hello!

    I got an webapplication that uses Spring 2.0.3 for transactions and together with hibernate 3.2.1 for the ORM.

    But when I deployed my app I got an error that I can not use own classloaders since the Tomcat that I use is shared among other webapplications. Since I did not do it in my code I guess it is Spring that use it's own classloader beacuse I found this in the log:

    at org.springframework.orm.jpa.persistenceunit.Spring PersistenceUnitInfo.getNewTempClassLoader

    Is there a possibility to use Spring with some defaultclassloader? If so is it possible to configure that in applicationContext.xml? Or do I have to remove Spring from my webapplication?

    Best regards Fredrik

  2. #2
    kire9dk is offline Member
    Join Date
    Sep 2009
    Posts
    15
    Rep Power
    0

    Default Re: Is it possible to use Spring with DefaultClassloader

    try to find your answer here 17.*Web MVC framework, maybe you forget to put something into your web.xml.

  3. #3
    fredand44 is offline Member
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    0

    Default Re: Is it possible to use Spring with DefaultClassloader

    Hello!

    Thanks for your reply!
    Right now I do not think this might have to do with spring since the webapp does not work at all.
    I have stripped it down to a minimum (hello world struts2 app) and I just keep getting:
    HTTP Status 404 - result 'null' not found

    --------------------------------------------------------------------------------

    type Status report

    message result 'null' not found

    description The requested resource (result 'null' not found) is not available.


    --------------------------------------------------------------------------------

    Apache Tomcat/6.0.32

    The index.jsp works but when I click a link like:
    http://www.mysite.se/login.action
    ...I get the error above.
    In the dev-env it works fine but not at the webhotel so my guess is that there is some config the webhotel does that not works for me.
    But I have not figure out what it is.
    Best regards
    Fredrik

Similar Threads

  1. Spring MVC
    By vitaliy1901 in forum Spring
    Replies: 1
    Last Post: 11-05-2012, 03:11 PM
  2. Spring MVC
    By BALUBALU in forum Spring
    Replies: 4
    Last Post: 08-02-2012, 11:33 AM
  3. new to spring mvc with JPA
    By javastuden in forum New To Java
    Replies: 0
    Last Post: 07-26-2011, 09:25 AM
  4. Replies: 1
    Last Post: 12-27-2010, 05:21 PM
  5. EJB 3.0 VS Spring
    By nanaji in forum Advanced Java
    Replies: 4
    Last Post: 01-28-2009, 04:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •