This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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:
Similar Threads
problems in ANT script for generating ejb for jboss 5.1.0
Problem in Maven2 pom for converting ejb2.1 project into sources.
Generate Xquery from SQL
How to compile a java file in a different directory location from the original java directory?
how to move a variable's value from bean page to another java class