8 Replies Latest reply on Oct 20, 2004 8:30 AM by askesis

    Tutorial 1.3.0 question

    askesis

      Following the 1.3.0 tutorial I do not get the "tutorial.interfaces" package after running XDoclet. Is procedure as outlined in the tutorial wrong, and if so, what should I do instead?

        • 1. Re: Tutorial 1.3.0 question
          anewby

          Is anything being generated at all?

          If you see the ejb deployment descriptors being generated, then you know your bean is being processed by XDoclet. You should look carefully at the XDoclet tags on your business and home methods to make sure they are correct. Also, make sure that the package substitution directives are correct.

          If you don't even see deployment decsriptors then look at your XDoclet EJB configuration and make sure your fileset definition is accurate.

          Also, more information (like the ANT output) would be helpful.


          Finally, you can set the verbose option to "true" in the ejbdoclet task and examine the output carefully

          • 2. Re: Tutorial 1.3.0 question
            anewby

            Sorry - forgot to answer your other question:

            The tutorial prodecure is accurate.

            • 3. Re: Tutorial 1.3.0 question
              askesis

              After "run XDoclet" no tutorial.interfaces is generated/visible. The deployment descriptors are generated. All project settings are checked and OK.

              Eclipse 3.0.1, JBoss IDE 1.3.0

              The ant output (ejbdoclet verbose option set to "true"):

              Buildfile: D:\Workspace\Tutorial\xdoclet-build.xml
              N10004:
              [ejbdoclet] (XDocletMain.start 47 ) Running
              [ejbdoclet] (XDocletMain.start 47 ) Running
              [ejbdoclet] (XDocletMain.start 47 ) Running
              [ejbdoclet] (XDocletMain.start 47 ) Running
              _generation_:
              BUILD SUCCESSFUL
              Total time: 3 seconds

              • 4. Re: Tutorial 1.3.0 question
                anewby

                Two more questions:

                1. Could you please post the XDoclet tag you are using for the session bean's compute() method
                2. Have you added the remoteinterface and homeinterface subtasks to your XDoclet EJB configuration

                Adrian

                • 5. Re: Tutorial 1.3.0 question
                  askesis

                  XDoclet tag (generated):

                  /**
                  * Business method
                  * @ejb.interface-method view-type = "remote"
                  */

                  remoteinterface: yes
                  homeinterface: yes

                  Both no properties set

                  • 6. Re: Tutorial 1.3.0 question
                    anewby

                    Try this instead:

                    /**
                    * Business method
                    *
                    * @ejb.interface-method view-type="remote"
                    *
                    */

                    I had problems from time to time with added spaces and also when I didn't have a blank comment line before and after the tag.

                    Also, if you could post your .xdoclet file, I will try it in the tutorial project on my system to see if I can reproduce your problem.

                    • 7. Re: Tutorial 1.3.0 question
                      askesis

                      Nop, no luck. My .xdoclet file:

                      <?xml version="1.0" encoding="UTF-8"?>

























































































































































                      • 8. Re: Tutorial 1.3.0 question
                        askesis

                        Problem solved.

                        Thanks to Adrian Newby, who found out that I put my source file in the bin directory, and not in the src directory.