Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-5120

Spring component scanning does not work within JBoss EJB container

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 3.0 RC1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The spring scanner functionality do not work when I create my ApplicationContext from a EJB managed by JBoss. I do test the same spring application context on diferents enviroments. Just on a managed EJB on a JBoos it is not workin.

      EJB code
      appContext = new GenericApplicationContext();
      ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner(appContext);
      scanner.scan("com");
      appContext.refresh();

      Annotated class
      @Service
      public class TransactionService {

      Exception
      ERROR: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionService' is defined

        Attachments

        1. jboss-as-sprint-int-5.0.0.GA.jar
          36 kB
        2. jboss-spring-int-vfs.jar
          15 kB
        3. vfs.patch
          12 kB
        4. vfs-fixes-2.patch
          15 kB
        5. vfs-fixes-3.patch
          16 kB

          Issue Links

            Activity

              People

              • Assignee:
                thomas.risberg Thomas Risberg
                Reporter:
                pedrosans Pedro Santos
                Last updater:
                Trevor Marshall
              • Votes:
                24 Vote for this issue
                Watchers:
                34 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 48 weeks, 2 days ago