Announcement Announcement Module
Collapse
No announcement yet.
Bean class not found, but is present in the EAR Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    This sounds like a class loader issue. Where is spring.jar in your EAR file?

    Comment


    • #3
      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

      Comment

      Working...
      X