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 EJBGenException: 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 "EJBGenException: " Watch "EJBGenException: " New topic


Mushtaq Ahmed

Joined: Sep 01, 2003
Posts: 5
Am trying to generate sources for a message bean using ant generate task:

mesage beans has this annotation :

@MessageDriven( maxBeansInFreePool = "200",
destinationType = "javax.jms.Queue",
initialBeansInFreePool = "20",
transTimeoutSeconds = "0",
defaultTransaction = MessageDriven.DefaultTransaction.REQUIRED,
durable = Constants.Bool.FALSE,
ejbName = "VIICMessageBean",
destinationJndiName = "VIICQueue")

but am getting this error whie executing generate task:

[java] Exception in thread "main" com.bea.wls.ejbgen.EJBGenException: ejbName is a required attribute
[java] at com.bea.wls.ejbgen.Bean.createBeanSpecificTags(

[java] at com.bea.wls.ejbgen.Bean.\\<init\\>(
[java] at com.bea.wls.ejbgen.MessageDrivenBean.init(MessageDrivenBean
[java] at com.bea.wls.ejbgen.EJBFactory.createBean(

[java] at com.bea.wls.ejbgen.EJBFactory.createBean(
[java] at com.bea.wls.ejbgen.EJBGenSGen.initModule(

[java] at
[java] at com.bea.wls.ejbgen.EJBGen.main(
[java] at com.bea.wls.ejbgen.EJBGen.main(
[java] at

D:\VIICApplication\build.xml:44: Java returned: 1

any help in resolving this issue will be greatly apprectiate.

kish kumar
Ranch Hand

Joined: Jan 03, 2008
Posts: 54
i am facing the similar error, any body can help ?
I agree. Here's the link:
subject: EJBGenException:
jQuery in Action, 3rd edition