Results 1 to 4 of 4

Thread: Is this a bug in Spring IDE?

  1. #1
    Join Date
    Aug 2007
    Posts
    4

    Default Is this a bug in Spring IDE?

    Greetings, everyone!

    I just started with Spring two weeks ago and did some reading. Now it's time for me to try out the sample applications. However, it seems that Spring IDE can't read classes from a user library. Here is what I did:

    1. Installed Eclipse 3.3 and the latest Spring IDE (2.0.1);
    2. Created a Spring project;
    3. Imported the source from samples/showcases/java5-dao;
    4. Created a user library named "spring-library" and added spring.jar, hibernate3.jar and commons-dbcp.jar;
    5. Added spring-library to the project build path.

    Now, all the Java classes compile fine; but, for the bean configuration file, java5-dao.xml, there is an error that says "Class org.apache.commons.dbcp.BasicDataSource not found".

    Then I tried to move the dbcp jar out of the user library and put it directly under the project build path, that error disappeared!

    To me, the Spring IDE (or whichever program that is responsible for resolving class names in beans' XML) cannot resolve class names from a user defined library. It is desirable to be able to put all Spring jars into a single user library, because I don't want the whole lot of jars to clog the project explorer window of my ide.

    Any one can clarify please?

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    this seams to be a bug in the AOP support! Can you please raise a bug report at https://springide.org/project/newticket .

    Thanks

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Aug 2007
    Posts
    4

    Default

    I just opened issue #711. Thanks.

  4. #4
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    kingcu, I responded in the ticket. Please refer to the ticket for more details.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Posting Permissions

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