XDoclet exists when generating a WebSphere's DD document, the TempleteException error occurs when running, the problem is in the xdoclet-ibm-module-1.2.1.jar package xdoclet / modules / IBM / WebSphere / Web / Resources / IBM- WEB-BND_XMI.XDT, in the original document:
jndiName = ""> ejbrefbindings> xdtejbref: FORALLEJBREFS>
Replace with the following code:
jndiName = ""> ejbrefbindings> xdtweb: forallejbrefs>
It can generate the correct WebSphere's DD file!
If there is still a mistake, continue to modify according to the above modification law