File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBGenException:

 
Mushtaq Ahmed
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:29)
[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)

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

any help in resolving this issue will be greatly apprectiate.

Thanks
 
kish kumar
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing the similar error, any body can help ?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic