3 Replies Latest reply on Nov 21, 2004 1:29 AM by kazuo

    problems of building nukes2.0 in windows xp system

    jerryda

      Environmnet: winXP,jboss-3.2.6,jboss-3.2.6RC2-nukes-2.0-DR,nukes-2.0-DR-src
      I set the
      JBOSS_HOME=${jboss-3.2.6}
      NUKES_HOME=${nukes-2.0-DR-src}

      I build the nukes following the instruction in http://www.jboss.org/wiki/Wiki.jsp?page=InstallUninstallUpgrade

      when I execute the build.bat under the $NUKES_HOME/build
      I failed,the fault message is as below:

      configure:

      configure-libraries:

      configure-modules:

      configure-defaults:

      configure-tools:

      _configure:nukes:task:

      _configure:xdoclet:task:

      _configure:xdoclet:ejbdoclet:

      _configure:xdoclet:jmxdoclet:

      configure-project:
      [echo] groups: default
      [echo] modules: common,portal,api,portlet,core

      _default:init:

      init:

      _buildmagic:modules:most:

      ==============================================================
      ==
      == Executing 'most' in module 'common'...
      ==
      ==

      _buildmagic:init:

      _buildmagic:init:project-local-properties:

      configure:

      configure-libraries:

      configure-modules:

      configure-defaults:
      Overriding previous definition of reference to javac.classpath

      configure-tools:

      _configure:nukes:task:

      init:

      generate-parsers:

      _default:compile-classes:
      [depend] Deleted 0 out of date files in 0 seconds

      _default:compile-etc:

      _default:compile-resources:

      compile:

      output:

      _default:most:

      most:

      ==
      ==
      == Finished 'most' in module 'common'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'portal'...
      ==
      ==

      _buildmagic:init:

      _buildmagic:init:project-local-properties:

      configure:

      configure-libraries:
      [echo] D:\Portal\JBoss\nukes-2.0-DR-src/thirdparty/xdoclet-xdoclet/lib
      [echo] D:\Portal\JBoss\nukes-2.0-DR-src/thirdparty/sun-servlet/lib

      configure-modules:

      configure-defaults:

      configure-tools:

      _configure:nukes:task:

      init:

      _default:compile-classes:
      [depend] Deleted 0 out of date files in 1 seconds
      [javac] Compiling 1 source file to D:\Portal\JBoss\nukes-2.0-DR-src\portal\output\classes

      _default:compile-etc:

      _default:compile-resources:

      compile:
      [execmodules] 2004-11-21 13:56:05 xdoclet.XDocletMain start
      [execmodules] ??: Running
      [execmodules] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
      [execmodules] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
      [execmodules] The referring classes do not import any fully qualified classes matching these classes.
      [execmodules] However, since no packages are imported, xjavadoc has assumed that the referred classes
      [execmodules] belong to the same package as the referring class. The classes are:
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> UpgradeLifeCycleMethod qualified to org.jboss.nukes.portal.kernel.UpgradeLifeCycleMethod
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> DowngradeLifeCycleMethod qualified to org.jboss.nukes.portal.kernel.DowngradeLifeCycleMethod
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> LifeCycleMethod qualified to org.jboss.nukes.portal.kernel.LifeCycleMethod

      output:
      [jar] Building jar: D:\Portal\JBoss\nukes-2.0-DR-src\portal\output\lib\nukes-portal-lib.jar

      _default:most:

      most:

      ==
      ==
      == Finished 'most' in module 'portal'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'api'...
      ==
      ==

      _buildmagic:init:

      _buildmagic:init:project-local-properties:

      configure:

      configure-libraries:

      configure-modules:

      configure-defaults:

      configure-tools:

      _configure:nukes:task:

      init:

      _default:compile-classes:
      [depend] Deleted 0 out of date files in 0 seconds

      _default:compile-etc:

      _default:compile-resources:

      compile:

      output:

      _default:most:

      most:

      ==
      ==
      == Finished 'most' in module 'api'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'portlet'...
      ==
      ==

      _buildmagic:init:

      _buildmagic:init:project-local-properties:

      configure:

      configure-libraries:

      configure-modules:

      configure-defaults:

      configure-tools:

      _configure:nukes:task:

      init:

      _default:compile-classes:
      [depend] Deleted 0 out of date files in 0 seconds

      _default:compile-etc:

      _default:compile-resources:

      compile:
      [execmodules] 2004-11-21 13:56:12 xdoclet.XDocletMain start
      [execmodules] ??: Running
      [execmodules] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
      [execmodules] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
      [execmodules] The referring classes do not import any fully qualified classes matching these classes.
      [execmodules] However, since no packages are imported, xjavadoc has assumed that the referred classes
      [execmodules] belong to the same package as the referring class. The classes are:
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> UpgradeLifeCycleMethod qualified to org.jboss.nukes.portal.kernel.UpgradeLifeCycleMethod
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> DowngradeLifeCycleMethod qualified to org.jboss.nukes.portal.kernel.DowngradeLifeCycleMethod
      [execmodules] D:\Portal\JBoss\nukes-2.0-DR-src\portal\src\main\org\jboss\nukes\portal\kernel\Kernel.java --> LifeCycleMethod qualified to org.jboss.nukes.portal.kernel.LifeCycleMethod

      BUILD FAILED

      file:D:/Portal/JBoss/nukes-2.0-DR-src/portlet/build.xml:123: Could not create task or type of type: webdoclet.

      Ant could not find the task or a class this task relies upon.

      This is common and has a number of causes; the usual
      solutions are to read the manual pages then download and
      install needed JAR files, or fix the build file:
      - You have misspelt 'webdoclet'.
      Fix: check your spelling.
      - The task needs an external JAR file to execute
      and this is not found at the right place in the classpath.
      Fix: check the documentation for dependencies.
      Fix: declare the task.
      - The task is an Ant optional task and optional.jar is absent
      Fix: look for optional.jar in ANT_HOME/lib, download if needed
      - The task was not built into optional.jar as dependent
      libraries were not found at build time.
      Fix: look in the JAR to verify, then rebuild with the needed
      libraries, or download a release version from apache.org
      - The build file was written for a later version of Ant
      Fix: upgrade to at least the latest release version of Ant
      - The task is not an Ant core or optional task
      and needs to be declared using .

      Remember that for JAR files to be visible to Ant tasks implemented
      in ANT_HOME/lib, the files must be in the same directory or on the
      classpath

      Please neither file bug reports on this problem, nor email the
      Ant mailing lists, until all of these causes have been explored,
      as this is not an Ant bug.
      at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:324)
      at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:240)
      at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:115)
      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.taskdefs.Ant.execute(Ant.java:371)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:311)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:326)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:215)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      at org.apache.tools.ant.Task.perform(Task.java:319)
      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)

      i checked as the above said,but i still donot know where the problem is,
      it said The task needs an external JAR file to execute,what the external JAR which here said is?
      I need your help!
      tks

        • 1. 3857274
          kazuo

          1. Open <your install directory>\Nukes-2.0-DR-src\portlet\build.xml file with notepad :P
          2. Go to target name="compile" and add (bold part)


          <!-- Add module specific elements here. -->

















          ps/ I think this is ant bug.

          • 2. 3763489
            kazuo

            Dear Sir/Madam:

            Our company has the software product based on the .net
            framework with the IIS middle ware. because of the
            requirement of our current market, we need to migrate
            the whole architecture to J2ee based one.

            we plan to start with changing the presentation layer
            IIS to j2ee based one. the following are the list of
            questions we need to figure out urgently. it will be
            very appreciated if you can help on these.

            1. do you think the tomcat web server a good option
            for us or the other ones?

            2. what should be the approach we should apply to
            replace the IIS only at this stage?

            3. how can we replace IIS with tomcat on windows and
            keep all the existing binaries?

            4. if the tomcat is a good option, then after
            installing the tomcat, does the apache need to be
            installed as well? if it is, why?

            5. what is the next step for us to migrate the
            architecture to j2ee based one after replace IIS with
            tomcat?

            6. do you recommend weblogic or websphere for us at
            this stage? why?

            7. we have one staff knows only the .net architecture
            and don't know j2ee one, the other one knows only some
            of the j2ee architecture and don't know .net one. we
            want these two staff to work together to figure out a
            way to migrate from .net to j2ee in a very tight time
            frame. what can you suggest us to achieve this? what
            documentation or books we need to do this without
            recruiting additional resource?

            8. if we change the whole .net to j2ee based, what
            else we need to install, except of the tomcat? for the
            whole migration, how can we map the
            applications/components from .net to j2ee for this
            migration, like, asp.net(.net) to jsp(j2ee), iis(.net)
            to tomcat(j2ee), (sql server(.net) to oracle(j2ee)
            etc..

            it will be very appreciated if you can help on the
            above as soon as you can.

            Thanks and regards!
            David

            • 3. Re: problems of building nukes2.0 in windows xp system

              this is a tomcat issue, I think you should replace the tomcat installation in $JBOSS_HOME/server/default/deploy/jbossweb-tomcat41.sar by the 5.0 solution which is is $JBOSS_HOME/docs/examples/jbossweb-tomcat50.sar