Results 1 to 4 of 4

Thread: Websphere 5.1 deploy isn't get spring.jar everytime

  1. #1
    Join Date
    Apr 2005
    Posts
    19

    Default Websphere 5.1 deploy isn't get spring.jar everytime

    I have deployed a web app developed with the Spring framework. I copied the jar into its web-inf/lib folder but when i reload the app (redeploy) the server doesnt get the jar loaded and throws ClassNotFoundException randomly ponting to DispatcherServlet.
    The deploy task unpacks the war file into a app-root where the server loads the clases, descriptors, config, jsp and locates the files that belongs to the webApp. The spring-jar is unpacked correctly, is located in the correct folder and available to be loaded by the server classloader system everytime.

    I have been proceeding like this (copying the jar files into web-inf/lib folder) everytime my app uses one but is my very first having this problems... :shock:

    I really dont know if anyone have experienced the same problem or know if i could do something to get it work...

    :roll:

  2. #2
    Join Date
    Sep 2005
    Posts
    9

    Default I know the answer to your question

    Hi there,
    I am working with Websphere 6 and had the same problem. The reason is because the classloader has not load spring.jar before your application, which is required to do IoC (Am I right? ) All you need to do is copy the spring.jar, and other classes you have included in web-inf/lib into your JAVA_HOME (Websphere's), lib\ext folder, and put the jar files in there.

    Appreciate if you have any findings on Websphere development with spring too,if you can share with me. I have been looking high and low. Not many people using Websphere seems to be adopting spring at the moment (my opinion)

    Joshua

  3. #3
    Join Date
    Sep 2005
    Posts
    9

    Default

    try associate a class library to your application. Config in the websphere.

  4. #4
    Join Date
    Apr 2005
    Location
    Norman, OK USA
    Posts
    21

    Default classloader policy

    Also in the websphere admin console you can set a classloader "mode" for your web application ("PARENT_FIRST", or "PARENT_LAST").

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Websphere 6 JTA question
    By pkorwar in forum Data
    Replies: 8
    Last Post: Jul 19th, 2007, 01:16 PM
  3. Replies: 1
    Last Post: Jun 30th, 2005, 12:56 AM
  4. Replies: 1
    Last Post: Oct 22nd, 2004, 02:47 AM
  5. Replies: 1
    Last Post: Sep 8th, 2004, 02:07 PM

Posting Permissions

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