JBoss Community

Re: Implementing a non-flat deployment for Weld Integration

created by Flavia Rainone in JBoss Microcontainer Development POJO Server - View the full discussion

As the pseudocode below shows, we need to know which services should be added to the lib BDAs:

 

Flavia Rainone wrote:

Roughly speaking, this is how we would fill in the gaps of the TODO mark you added in your getLibraries method:

 

... 
// finally create the Archive
Archive archive = ArchiveFactory.createArchive(archiveInfo, new ArrayList<EjbDescriptor<?>>());
// ... and the corresponding BDA
ServiceRegistry serviceRegistry = new SimpleServiceRegistry();
// TODO: fill in serviceRegistry? With which services?
libs.add(archive.createBeanDeploymentArchive(serviceRegistry));

 

Right now, Ales is getting the following error because of the missing services:

 

IllegalStateException: WELD-000117 Required service org.jboss.weld.injection.spi.ResourceInjectionServices
                       has not been specified

 

 

Pete or Marius, do you know which services we need to add to these BDAs?

This is one of the final missing pieces to close this issue :-)

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development POJO Server at Community