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

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 ?
Have you checked out Aspose?
subject: EJBGenException:
It's not a secret anymore!