3 Replies Latest reply on May 10, 2006 12:09 AM by Nilseu Padilha

    xdoclet tutorial

    d g Newbie

      Eclipse SDK
      Version: 3.1.2
      Build id: M20060118-1600

      jboss 1.5.1.GA

      I am following the JBoss Eclipse IDE tutorial Chapter 5. Generation of the EJB related files. When I reach :

      Click OK and the XDoclet configuration for the Tutorial will be saved. Once the configuration is saved, right-click on the Tutorial project and select Run XDoclet. The XDoclet generation will display its output in the console. The output should look like this

      nothing happens and when I refresh my project no tutoraial.interfaces is created and no META-INF folder is created. I get no error messages and I am not sure what to check or where to look.

        • 1. Re: xdoclet tutorial
          d g Newbie

          by digging more I found the following error in the log

          !ENTRY org.jboss.ide.eclipse.xdoclet.assist 4 0 2006-04-24 16:17:54.359
          !MESSAGE Error while running XDoclet
          !STACK 1
          org.eclipse.core.runtime.CoreException: Reference to undefined variable ANTMOD_HOME
          at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolve(StringSubstitutionEngine.java:259)
          at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:192)
          at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:86)
          at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:557)
          at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:347)
          at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getVMArguments(AbstractJavaLaunchConfigurationDelegate.java:515)
          at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:64)
          at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:524)
          at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:194)
          at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:590)
          at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:515)
          at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:152)
          at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:198)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
          !SUBENTRY 1 org.eclipse.core.variables 4 120 2006-04-24 16:17:54.359
          !MESSAGE Reference to undefined variable ANTMOD_HOME

          !ENTRY org.eclipse.ant.ui 4 120 2006-04-24 16:18:04.375
          !MESSAGE Error logged from Ant UI:
          !STACK 0
          java.net.SocketTimeoutException: Accept timed out
          at java.net.PlainSocketImpl.socketAccept(Native Method)
          at java.net.PlainSocketImpl.accept(Unknown Source)
          at java.net.ServerSocket.implAccept(Unknown Source)
          at java.net.ServerSocket.accept(Unknown Source)
          at org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:97)

          • 2. Re: xdoclet tutorial
            d g Newbie

            Found the problem and fixed it by creating the ANTMOD_HOME and ANT_HOME variable in Eclipse:

            1. Click on Window-->Preferences
            2. Expand run/debug
            3. Click String substitution
            4. Add variable ANTMOD_HOME and set it to the location of antmod (i.e c\antmod-1.3.1
            5. Add variable ANT_HOME and set it to the location of ant (i.e C:\eclipse\plugins\org.apache.ant_1.6.5)

            • 3. Re: xdoclet tutorial
              Nilseu Padilha Newbie


              this is a bit off-topic. I am looking (a lot) in web about ANTMOD accptance. Bu t i didnt fight not nmany references.

              I anna know ho uses antmod in this post and if is satisfied with the tool.

              thank you