facebook

[Closed] XDocklet is failing

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #264330 Reply

    mss_j2ee
    Member

    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

    #264341

    Riyad Kalla
    Member

    MSS,
    This is very strange even if a new workspace isn’t helping… are you making sure to follow our EJB tutorial very closely and make sure you aren’t skipping something?

    #264352

    mss_j2ee
    Member

    Thanks for the reply, Yes it is strange as it started working when I closed and open the project again. But I guess the problem might be at our end as my company is doing some upgrading / version change…I do not know for sure…

    Thanks once again. For the time being I am good to go.

    MSS

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] XDocklet is failing

You must be logged in to post in the forum log in