[jboss-user] [EJB 3.0 Users] - Session EJB and MDB Configuration

kyle.bober do-not-reply at jboss.com
Wed Sep 9 16:45:31 EDT 2009


JBoss 5.1.0.GA

I am attempting to configure my Stateless MDB via the instrcutions provided at the following link : http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/reference/1.0.7/html/SessionBean_and_MDB_configuration.html

Here is my mydoamin-aop.xml :


  | <?xml version="1.0" encoding="UTF-8"?>
  | <aop xmlns="urn:jboss:aop-beans:1.0">
  |    <domain name="Strictly Pooled Message Driven Bean" extends="Message Driven Bean" inheritBindings="true">
  |       <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
  |           @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=2, timeout=10000)
  |       </annotation>
  |    </domain>
  | </aop>
  | 

Here is my jboss.xml :


  | <?xml version="1.0" encoding="utf-8"?>
  | <jboss xmlns:xs="http://www.jboss.org/j2ee/schema"
  |        xs:schemaLocation="http://www.jboss.org/j2ee/schema jboss_5_1.xsd"
  |              version="5.1">
  | 
  |    <enterprise-beans>
  |       <message-driven>
  |          <ejb-name>KATReportTopicListener</ejb-name>
  |          <destination-jndi-name>topic/KATReportTopic</destination-jndi-name>
  |          <aop-domain-name>Strictly Pooled Message Driven Bean</aop-domain-name>
  |       </message-driven>
  |    </enterprise-beans>
  | </jboss>
  | 
  | 

Both of these are included in my ejbname-ejb.jar file in the META-INF folder. My EJB Jar file is included in my EAR file which I can deploy to JBoss. When I start up the application server I receive the following exception:

16:43:20,765 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/ApplicationServers/jboss-5.1.0.GA/server/default/deploy/svc-kat0.0.1--SNAPSHOT.ear/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying service-kat-ejb-0.0.1-SNAPSHOT.jar: No container configured with name 'Strictly Pooled Message Driven Bean''
	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
	at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
	at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
	at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
	at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
	at org.jboss.Main.boot(Main.java:221)
	at org.jboss.Main$1.run(Main.java:556)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: No container configured with name 'Strictly Pooled Message Driven Bean''
	at org.jboss.ejb3.Ejb3AnnotationHandler.getMDB(Ejb3AnnotationHandler.java:333)
	at org.jboss.ejb3.Ejb3DescriptorHandler.getMDB(Ejb3DescriptorHandler.java:602)
	at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:215)
	at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
	at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
	at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
	at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
	at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
	... 34 more
16:43:20,812 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfszip:/C:/ApplicationServers/jboss-5.1.0.GA/server/default/deploy/svc-kat0.0.1--SNAPSHOT.ear/" is in error due to the following reason(s): java.lang.RuntimeException: No container configured with name 'Strictly Pooled Message Driven Bean''

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254279#4254279

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254279



More information about the jboss-user mailing list