Hi Tomas I ended up rebuilding the VM and starting again. I had missed a step or two.
I'm now at the point of create-webapp-dir ---- [root@benrhn2d 17:37 /usr/local/git/spacewalk/java]# ant create-webapp-dir Buildfile: build.xml [available] DEPRECATED - <available> used to override an existing property. [available] Build file should not reuse the same property name for different values. [echo] Importing buildconf/build-props-tomcat6.xml test-deps: boot-deps: [echo] Symlinking ivy init-ivy: resolve-ivy: :: Ivy non official version :: http://ivy.jayasoft.org/ :: no configuration file found, using default... :: configuring :: url = jar:file:/usr/local/git/spacewalk/java/build/boot-lib/ivy.jar!/fr/jayasoft/ivy/conf/ivyconf.xml :: resolving dependencies :: [ redhat | rhn-java | working@benrhn2d ] confs: [default] :: resolution report :: --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 75 | 0 | 0 | 0 || 75 | 0 | --------------------------------------------------------------------- :: retrieving :: [ redhat | rhn-java ] confs: [default] 0 artifacts copied, 75 already retrieved resolve-local: resolve: link-jars: compile-internal: init-taskdefs: [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found. [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found. clean-webapp-dir: set-default-config-dir: init: apidoc-jsp: [echo] Importing buildconf/build-props-tomcat6.xml boot-deps: [echo] Symlinking ivy init-ivy: resolve-ivy: :: Ivy non official version :: http://ivy.jayasoft.org/ :: no configuration file found, using default... :: configuring :: url = jar:file:/usr/local/git/spacewalk/java/build/boot-lib/ivy.jar!/fr/jayasoft/ivy/conf/ivyconf.xml :: retrieving :: [ redhat | rhn-java ] confs: [default] 0 artifacts copied, 75 already retrieved resolve-local: resolve: test-deps: link-jars: compile-internal: init-taskdefs: set-default-config-dir: init: apidoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution create-webapp-dir: [mkdir] Created dir: /usr/local/git/spacewalk/java/rhnwebapp [mkdir] Created dir: /usr/local/git/spacewalk/java/rhnwebapp/META-INF [mkdir] Created dir: /usr/local/git/spacewalk/java/rhnwebapp/WEB-INF/lib [mkdir] Created dir: /usr/local/git/spacewalk/java/rhnwebapp/apidoc [exec] /usr/local/git/spacewalk/java/rhnwebapp /usr/local/git/spacewalk/java/code/webapp/index.jsp BUILD FAILED /usr/local/git/spacewalk/java/buildconf/build-webapp.xml:47: The following error occurred while executing this line: /usr/local/git/spacewalk/java/buildconf/build-webapp.xml:54: Could not create task or type of type: symlink. 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 'symlink'. 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 the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built 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 <taskdef>. - You are attempting to use a task defined using <presetdef> or <macrodef> but have spelt wrong or not defined it at the point of use 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. Total time: 12 seconds [root@benrhn2d 17:39 /usr/local/git/spacewalk/java]# ---- I'm pretty sure I have the right jar files downloaded. I did previously have problems getting the jars as I'm behind a proxy that I don't have control of. I've updated the wiki in case anyone has this problem. Not sure what I've done (or not done) to get the above error. Thanks for your patience and sorry for all the questions... CC On Mon, Nov 11, 2013 at 3:17 PM, Tomas Lestach <tlest...@redhat.com> wrote: >> Now though, I getting >> [taskdef] ... Warning: taskdef class net.sf.antcontrib.logic.For >> cannot be found > > This looks like the 1st issue described in Troubleshooting ... > https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup#Troubleshooting > > "ant create-webapp-dir" fails with "Problem: failed to create task or type > for": ant-contrib.jar needs to have a For.class. Newer versions do not have > it. Grab the version of ant-contrib.jar from our ivy repo and use it instead. > If your the real jar (not a symlink) is at > /usr/share/java/ant-contrib-1.0.jar: > wget http://sherr.fedorapeople.org/ivy/ant-contrib-1.0.jar -O > /usr/share/java/ant-contrib-1.0.jar > > > Regards, > -- > Tomas Lestach > Red Hat Satellite Engineering, Red Hat > > _______________________________________________ > Spacewalk-devel mailing list > Spacewalk-devel@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-devel -- RHCE#805007969328369 _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel