I am on myEclpise 3.1. I am trying a EJB project (Session bean) using xdoclet feature. I create session bean using wizard (.ejb as last package name), added standard EJB doclet. But when I try to run XDoclet it does not create interfaces for me and it also does not create ejb-jar.xml file properly.
I get error
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
[ejbdoclet] (XDocletMain.start 54 ) <<Generated file [file:X:/Manisha on X drive/Training Projects1/TestEJB/src/META-INF/ejb-jar.xml:line 33] Message=[Element “enterprise-beans” requires additional elements.] is not valid according to its DTD or XML Schema. This might be due to some missing tags in your source.>>
There is nothing inside <enterprise-beans>.
Below is my bean XDocklet tags generated automatically –
* @ejb.bean name=”Test”
* display-name=”Name for Test”
* description=”Description for Test”
* jndi-name=”ejb/Test”
* type=”Stateless”
* view-type=”remote”
*/
public class TestBean implements SessionBean {
..
}
I tried to create new workspace, tried to create new project but some how I am unable to get through this. Surprisingly on my colleagues machine same thing runs and yesterday it was running on my machine too…
Thanks in advance
MSS