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

Spring component scanning does not work within JBoss EJB container

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.5
    • 3.0 RC1
    • None
    • None
    • 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

              thomas.risberg Thomas Risberg
              pedrosans Pedro Santos
              Spring Issues Spring Issues
              Votes:
              24 Vote for this issue
              Watchers:
              34 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 47 weeks, 2 days ago