[jboss-user] [EJB 3.0] - Re: Unable to deploy a simple MDB with SwiftMQ on JBOSS 5

omerlin13 do-not-reply at jboss.com
Tue Jul 15 12:35:13 EDT 2008


Hello Peter,

You're right - there was a mistake in the jboss.xml file in the ejb-name tag. 
But when i correct this file, i have another stack trace that is much more worrying :

17:47:15,217 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/D:/win32app/jboss-5.0.0.CR1/server/default/dep
  | loy/simplemdb.ear state=Not Installed mode=Manual requiredState=Parse
  | org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/D:/win32app/jboss-5.0.0.CR1/server/default/de
  | ploy/simplemdb.ear/simplemdb-ejb.jar
  |         at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutp
  | ut.java:343)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutp
  | ut.java:303)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutp
  | ut.java:275)
  |         at org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:105)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:
  | 236)
  |         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
  |         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
  |         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1023)
  |         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
  |         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
  |         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
  |         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
  |         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
  |         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
  |         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
  |         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
  |         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
  |         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
  |         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
  |         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |         at java.lang.Thread.run(Thread.java:595)
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to parse schema for nsURI=, baseURI=null, schemaLoc
  | ation=http://www.jboss.org/j2ee/dtd/jboss.dtd
  |         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
  |         at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
  |         at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:198)
  |         at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
  |         at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
  |         at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
  |         at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:128)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutp
  | 

In Jboss 5, the jboss.dtd does not support the following jboss.xml anymore :

<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss SYSTEM "D:\download\simplemdb\simplemdb\jboss.dtd">
  | <jboss>
  | 	<enterprise-beans>
  | 		<message-driven>
  | 			<ejb-name>SimpleMessageEJB</ejb-name>
  | 			<invoker-bindings>
  | 				<invoker>
  | 					<invoker-proxy-binding-name>message-inflow-driven-bean</invoker-proxy-binding-name>
  | 				</invoker>
  | 			</invoker-bindings>
  | 			<resource-adapter-name>swiftmq.rar</resource-adapter-name>
  | 		</message-driven>
  | 	</enterprise-beans>
  | </jboss>
  | 

The tags message-driven & resource-adapter-name are no more recognized in jboss 5

So the wiki are no more valid for JCA on Jboss 5 
What is the method to configure JCA with an external JMS broker in JBoss 5 ?

regards,



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

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



More information about the jboss-user mailing list