wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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(Bean.java:202)

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

[java] at com.bea.wls.ejbgen.EJBFactory.createBean(EJBFactory.java:99)
[java] at com.bea.wls.ejbgen.EJBGenSGen.initModule(EJBGenSGen.java:106)

[java] at com.bea.sgen.SGen.run(SGen.java:205)
[java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:212)
[java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:238)
[java] at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:21)

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: http://aspose.com/file-tools
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