3 Replies Latest reply on Nov 19, 2002 12:07 PM by rhuk

    3.0 Template won't build - Solaris 2.7 (VM 1.4.1)

    Rubens S. Gomes Newbie

      I get the following error:
      ...
      init:
      Property ${build.compiler} has not been set
      [echo] build.compiler = ${build.compiler}
      [echo] user.home = /
      [echo] java.home = /usr/j2se/jre
      [echo] ant.home = /usr/local/java/ant
      [echo] jboss.home = /usr/local/java/jboss
      [echo] xdoclet.home = /usr/local/java/xdoclet
      [echo] java.class.path = /usr/local/java/ant/lib/xml-apis.jar:/usr/local/java/ant/lib/xercesImpl.jar:/usr/local/java/ant/lib/optional.jar:/usr/local/java/ant/lib/ant.jar:/usr/j2se/lib/tools.jar:/usr/local/java/xdoclet/lib/xdoclet.jar:/usr/local/java/xdoclet/lib/xjavadoc.jar:/usr/local/java/xdoclet/lib/xdoclet-ejb
      module.jar:/usr/local/java/commons-logging/commons-logging.jar:/usr/j2se/lib/tools.jar


      xdoclet-generate:

      BUILD FAILED
      file:/usr/local/java/jboss3.0.3/samples/template/build.xml:147: Can't create a jboss element under ejbdoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the that defined ejbdoclet.
      at xdoclet.DocletTask.createDynamicElement(DocletTask.java:345)
      at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:510)
      at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:212)
      at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:122)
      at org.apache.tools.ant.Task.perform(Task.java:318)
      at org.apache.tools.ant.Target.execute(Target.java:309)
      at org.apache.tools.ant.Target.performTasks(Target.java:336)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      at org.apache.tools.ant.Main.runBuild(Main.java:610)
      at org.apache.tools.ant.Main.start(Main.java:196)
      at org.apache.tools.ant.Main.main(Main.java:235)
      bash-2.03# more .ant.properties
      ------------------------------------------------
      here is piece of build.xml NOTICE that I added
      "modules" to the classname.








      ------------------------------------------------

      The .ant.properties look as follows:

      jboss.home=/usr/local/java/jboss
      jboss.configuration=default
      xdoclet.home=/usr/local/java/xdoclet
      xdoclet.force=false
      ejb.version=2.0
      jboss.version=3.0
      type.mapping=Hypersonic SQL
      datasource.name=java:/DefaultDS
      servlet-lib.path=/usr/local/java/jboss/server/default/lib/javax.servlet.jar

      ------------------------------------------------
      Here are some versions installed:
      Solaris SPARC 2.7 with 64-bit JVM 1.4.1 (with all needed patches installed)
      jakarta-ant-1.5.1
      jboss-3.0.3
      commons-logging-1.0.2
      JBoss.3.0TemplateAndExamples.zip
      xdoclet-bin-1.2.0-beta1

      ------------------------------------------------
      here is my Java environment:

      JAVA_APPS="/usr/local/java"
      JAVA_HOME="/usr/j2se"
      export JAVA_HOME

      JAVACMD="${JAVA_HOME}/bin/java"
      export JAVACMD

      JAVA_OPTS="-server -d64"
      export JAVA_OPTS

      JBOSS_DIST="${JAVA_APPS}/jboss"
      JBOSS_HOME="${JBOSS_DIST}"
      export JBOSS_DIST
      export JBOSS_HOME

      JBOSS_OPTS="${JAVA_OPTS} -Xrunhprof:cpu=samples,file=/var/opt/jboss.prof -Dprogram.name=run.sh"
      export JBOSS_OPTS

      ANT_HOME="${JAVA_APPS}/ant"
      export ANT_HOME

      CLASSPATH="${JAVA_HOME}/lib/tools.jar"
      CLASSPATH="${CLASSPATH}:${JAVA_APPS}/xdoclet/lib/xdoclet.jar"
      CLASSPATH="${CLASSPATH}:${JAVA_APPS}/xdoclet/lib/xjavadoc.jar"
      CLASSPATH="${CLASSPATH}:${JAVA_APPS}/xdoclet/lib/xdoclet-ejb-module.jar"
      CLASSPATH="${CLASSPATH}:${JAVA_APPS}/commons-logging/commons-logging.jar"
      export CLASSPATH

      JBOSS_CLASSPATH="${JBOSS_DIST}/bin/run.jar"
      JBOSS_CLASSPATH="${JBOSS_CLASSPATH}:${JBOSS_DIST}/bin/shutdown.jar"
      JBOSS_CLASSPATH="${JBOSS_CLASSPATH}:${CLASSPATH}"
      export JBOSS_CLASSPATH