2 Replies Latest reply on Aug 8, 2003 5:41 AM by afluegge

    Struts and EJB Problem

    afluegge

      Hello,

      I've managed it to create a little test application which use an entity bean from within an servlet. I've used Eclipse (JBossIDE plugin) and Xdoclet to generate the needed stuff (deployment descriptors and so on). All works fine!

      Now I'd like to start a project using Struts and EJBs. I started the same way as for the test application. For the Stuts-stuff I also inserted Xdoclet tags.

      The problem seems to be that the web.xml deployment descriptor misses the Struts parts. The EJB elements are all ok.

      I've tried different Xdoclet configurations but I cant't get it run.

      My question: Is it possible to create EJB/Struts applications with xdoclet only using JBossIDE?
      If it is the case, can anyone tell me a correct configuration or a link to a document which explains it?

      Or have I to use another plugin like Lomboz or anything else?

      Thank you for help!

      Andreas

        • 1. Re: Struts and EJB Problem

          Hi,

          The real question is : can I build Struts/EJB applications with XDoclet ?
          JBoss-IDE offers a full supoprt for XDoclet :
          - if you can do it with XDoclet, you can do it with JBoss-IDE (in a cool way)
          - if you can't do it with XDoclet, you can't do it with JBoss-IDE.

          By the way, have you try to use the merge file to include the Struts fragment in your web.xml ?

          Laurent.

          • 2. Re: Struts and EJB Problem
            afluegge

            Thank you very much,

            the hint to the mergedir option was quite good.
            I needed a moment to realize that the servlet-mappings.xml file was the key to my problem.

            Andreas.