Results 1 to 2 of 2

Thread: Class NOT Found Error

  1. #1
    Join Date
    Sep 2004
    Location
    Phoenix, Arizona USA
    Posts
    2

    Default Class NOT Found Error

    I have installed the Spring IDE plugin for eclipse. I can clean build and run my project and have no errors.

    When I have the spring xml config file open and "Show Spring Beans View" I get Class not found errors. The classes do exist in my WEB-INF\classes directory.

    When selecting the Spring Beans tab I can open the graph view and all of the classes appear.

    So the question is: Where is it looking for the class files in the editor and / or how can I change where it is looking for them?

    Thanks, John

  2. #2
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default Re: Class NOT Found Error

    Spring IDE's beans project validator and the editor context menu action "Open Java Type" are looking for corresponding bean classes in JDT's abstract syntax trees (ASTs). They access the JDT project the file within the editor belongs to and asks for a JDT type with a specific full qualified class name via "IProject.findType()".
    Spring IDE supports project references too (specified via "Project Properties / Project References").

    To make your bean classes accessible for Spring IDE you have to add them to your Java project's classpath via Project Properties:

    - add source code of bean classes to "Java Build Path/Source"
    - add bean classes in jars to "Java Build Path/Libraries"
    - add bean classes in external projects with relevant classes/libraries to "Project References"

    The beans graph is only a different representation of the same model already displayed in the beans view. No access to beans classes is necessary to build the tree view or to draw the graph.

    Only the validator and the context menu are using IProject.findType() to access the bean class.

    Cheers,
    Torsten

Similar Threads

  1. ERROR: Context initialization failed
    By makhlo in forum Architecture
    Replies: 8
    Last Post: Jul 11th, 2008, 01:41 AM
  2. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

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