Results 1 to 3 of 3

Thread: Bean class not found, but is present in the EAR

  1. #1
    Join Date
    Dec 2004
    Location
    Asheville, NC
    Posts
    82

    Default Bean class not found, but is present in the EAR

    A new bean which is defined in my application's Spring configuration cannot be created because the bean class itself cannot be found, even though the class is present in the EAR file.

    This only happens when I have the Spring bean used in a Struts Action, running as part of an application running on WebLogic. When I run the application as a separate web application module in WebLogic I don't have this trouble and the bean's class is found correctly.

    My only guess is that there is somehow no CLASSPATH to this class, even though all of the other classes in my application are found OK. (I don't know what modifies this behavior in Spring.)

    Can anyone suggest where I might look for clues? Thanks in advance...


    --James

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    This sounds like a class loader issue. Where is spring.jar in your EAR file?
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Dec 2004
    Location
    Asheville, NC
    Posts
    82

    Default

    The spring.jar is located in the EAR in APP-INF/lib.

    The bean is declared in the application context configuration file like so:
    Code:
        <bean id="getHubClliListVerifier"
              class="com.level3.gets.diagnostics.webservices.verifiers.GetHubClliListVerifier"/>
    The class is not being found when Spring tries to initialize the bean, even though the class is located in the EAR:

    getsEjbs/com/level3/gets/diagnostics/webservices/verifiers/GetHubClliListVerifier.class


    It seems that it should work (especially since it *does* work when deployed as a separate Spring MVC web application WAR, not part of an EAR), but the class still isn't found.


    --James

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 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
  •