File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes MDB JBoss deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDB JBoss deployment problem" Watch "MDB JBoss deployment problem" New topic

MDB JBoss deployment problem

Jim Sera

Joined: Jul 28, 2005
Posts: 11
New to JBoss and I'm trying to deploy a test MDB and get this error:

12:24:10,504 INFO [EARDeployer] Init J2EE application: file:/H:/jboss/server/default/deploy/JMSTest.ear
12:25:11,663 WARN [verifier] EJB spec violation: JMSATestMDB: The ejbCreate() method must define no application exceptions.
12:25:11,673 ERROR [MainDeployer] could not create deployment: file:/H:/jboss/server/default/tmp/deploy/tmp21204JMSTest.ear-contents/JMSTestPkg-EJB.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(
at org.jboss.deployment.MainDeployer.create(
at org.jboss.deployment.MainDeployer.create(
at org.jboss.deployment.MainDeployer.deploy(
at org.jboss.deployment.MainDeployer.deploy(

I entirely removed the ejbCreate() method (which was not throwing exceptions in the first place) and it still gives this problem. I also tried turning the spec verifier off in ejb-deployer.xml and it did not make any difference which is bizzare.

Anyone have any ideas what is going on?
david diaz

Joined: Jan 30, 2006
Posts: 1
I had the same problem, the error was displayed even without the trows clause in the create method. I erased the throws clause from the ejbRemove method and everything worked just fine.

I don't understand this error, correct me if Ii'm wrong but the specification doesn't forbid to declare the ejbCreate method with the throws CreateException clause it forbids to actually throw the exception.
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
MDB has no clients, so nobody to get an application exception. Not an issue of what you throw, but an issue of what you declare. EJB 2.0 spec section 15.7.3 states "The throws clause must not define any application exceptions". CreateException isn't a runtime exception, which is why the bean wouldn't deploy.

Reid - SCJP2 (April 2002)
I agree. Here's the link:
subject: MDB JBoss deployment problem
jQuery in Action, 3rd edition