Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

xdoclet help with Weblogic EJB  RSS feed

Bk Smith
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed in my managed server log that my EJBs were getting recompiled on the fly and producing a warning. After digging a bit, I noticed that the DTD in the weblogic-ejb-jar.xml was still saying WebLogic 6.0.0 and I'm running on Weblogic 8.1. I'm using xdoclet v1_2b4 to generated the descriptors.

I updated xdoclet to v1_2_2 and added the version parameter to the weblogic ant task in my ejbdoclet. After doing this, the weblogic-ejb-jar.xml looks fine. However, now the ejb-jar.xml is messed up. When I try to deploy my ear, I get the following error:

Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that you
r deployment descriptor corresponds to the format in the DTD. The error was:
Error parsing file 'META-INF/ejb-jar.xml' at line: 78 column: 11. The content of element type "ejb-jar" must match "(description?,display-name?,sm

Has anyone noticed anything like this with the latest version of xdoclet?
My EJB tags look like the following:
* @ejb:bean type="Stateless"
* name="myEJB"
* jndi-name="myEJBRemote"
* local-jndi-name="myEJBLocal"
* display-name="myEJB"
* view-type="both"
* @ejb:transaction type="NotSupported"
* @weblogic ool
* max-beans-in-free-pool="50"
* initial-beans-in-free-pool="1"
* @weblogic:clustering
* stateless-bean-methods-are-idempotent="True"
* home-is-clusterable="True"

Any ideas?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!