1 Reply Latest reply on Feb 15, 2007 4:07 AM by alesj

    Spring Deployer - bean factory dependencies not working

    bucegiomu

      I'm using JBOSS 4.0.0 and latest version od jboss-spring deployer (for spring 2.0).
      It seeems that the bean factory dependency between 2 spring modules is not working.
      My configuration:

      myapp.ear/
      subscription.spring/
      META-INF/
      jboss-spring.xml
      admin.spring/
      META-INF/
      jboss-spring.xml

      jboss-spring.xml in subscription.spring:

      ...
      <beans>
       <description>BeanFactory=(iocbeanfactory-subscription)</description>
       ...
      </beans>
      

      jboss-spring.xml in admin.spring:
      ...
      <beans>
       <description>BeanFactory=(iocbeanfactory-admin) ParentBeanFactory=(iocbeanfactory-subscription)</description>
       ...
      </beans>
      

      application.xml:
       ...
       <module>
       <ejb>subscription.spring</ejb>
       </module>
       <module>
       <ejb>admin.spring</ejb>
       </module>
       ...
      

      Here is what I get when I start the server.
      17:48:39,977 ERROR [MainDeployer] Could not create deployment: file:/C:/dev/java/app_server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp17966myapp
      .ear-contents/admin.spring
      org.jboss.deployment.DeploymentException: Failure during parent bean factory JNDI lookup: iocbeanfactory-subscription;
      nested exception is javax.naming.NameNotFoundException: iocbeanfactory-subscription not bound;
      - nested throwable: (org.springframework.beans.factory.BeanDefinitionStoreException:
      Failure during parent bean factory JNDI lookup: iocbeanfactory-subscription;
      nested exception is javax.naming.NameNotFoundException: iocbeanfactory-subscription not bound)
      


      Any suggestions?