Re: [Spacewalk-devel] Problem building dev workstation
On Mon, Nov 11, 2013 at 07:09:35PM +0800, Colin Coe wrote: > Hi Bo > > Just looking at this now. I have a pre-built, working spacewalk > environment and I want to turn it into a dev environment. Does the > script cater for this? What options are applicable? Well, it does as described: 1. It puts the Spacewalk into a bare minimal JeOS, adds required stuff and sets up your dev env with an ability to deploy to a remote host (it does not uses symlinking, but rsync). 2. Then you should git-clone the repository and run "bsp -r" within the "$SPACEWALK_SOURCES/java" directory (see "--generate-config"), and it will try to assemble the whole thing from the current sources and will deploy over. You could try skipping step #1. P.S. But I am not sure if the step #1 is still working (last time it seems to be OK was around two months ago). Give it a try: after all, your VM shoud be able to make snapshots... :-) -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer You have delighted us long enough. ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
Hi Bo Just looking at this now. I have a pre-built, working spacewalk environment and I want to turn it into a dev environment. Does the script cater for this? What options are applicable? Thanks CC On Mon, Nov 11, 2013 at 6:13 PM, Colin Coe wrote: > Will check it out. Am using rhel6 as f19 has no openjdk-1.6.0. > > CC > > On Nov 11, 2013 6:03 PM, "Bo Maryniuk" wrote: >> >> On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: >> > I ended up rebuilding the VM and starting again. I had missed a step or >> > two. >> >> My few cents: >> >> I wrote a little workaroung thing that could probably help you (if nothing >> was >> broken in between last commit and today): >> >>https://github.com/isbm/spacewalk-power-toys >> >> But I am using CentOS for it, not sure how it will fly on Fedora. >> >> HTH. >> >> -- >> Bo Maryniuk >> >> SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) >> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer >> >> Support mental health or I'll kill you! >> >> ___ >> 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
Re: [Spacewalk-devel] Problem building dev workstation
Will check it out. Am using rhel6 as f19 has no openjdk-1.6.0. CC On Nov 11, 2013 6:03 PM, "Bo Maryniuk" wrote: > On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: > > I ended up rebuilding the VM and starting again. I had missed a step or > two. > > My few cents: > > I wrote a little workaroung thing that could probably help you (if nothing > was > broken in between last commit and today): > >https://github.com/isbm/spacewalk-power-toys > > But I am using CentOS for it, not sure how it will fly on Fedora. > > HTH. > > -- > Bo Maryniuk > > SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) > GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer > > Support mental health or I'll kill you! > > ___ > Spacewalk-devel mailing list > Spacewalk-devel@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-devel > ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: > I ended up rebuilding the VM and starting again. I had missed a step or two. My few cents: I wrote a little workaroung thing that could probably help you (if nothing was broken in between last commit and today): https://github.com/isbm/spacewalk-power-toys But I am using CentOS for it, not sure how it will fly on Fedora. HTH. -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Support mental health or I'll kill you! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
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 - 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 . - You are attempting to use a task defined using or 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
Re: [Spacewalk-devel] Problem building dev workstation
> 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
Re: [Spacewalk-devel] Problem building dev workstation
Hi I've got the jars now and its looking much better. Now though, I getting [taskdef] ... Warning: taskdef class net.sf.antcontrib.logic.For cannot be found [taskdef]] Could not load definitions from emma_ant.properties. It coukd not be found ... spacewalk/java/buildconf/build-webapp.xml:47: Problem: failed to create task or type for Cause: the name is undefined Any thoughts on this? CC On Fri, Nov 8, 2013 at 6:01 PM, Tomas Lestach wrote: >> I found that apache-ivy had been installed instead of ivy (from >> jpackage). I've now corrected this but I'm still getting the >> "/usr/bin/build-jar-repository: error: Could not find ... Java >> extension for this JVM" for a whole bunch of things (quartz, jpam, >> etc) >> >> Looking at a past post, I see the jars used to exist at >> http://jmrodri.fedorapeople.org/ivy/ but there are no jars in this >> directory now. > > This definitely isn't correct. > > $ grep ivyserver java/buildconf/build-props.xml > http://sherr.fedorapeople.org"; /> > > > http://sherr.fedorapeople.org/ivy/ contains (hopefully) all the necessary > jars. :-) > > > 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
Re: [Spacewalk-devel] Problem building dev workstation
> I found that apache-ivy had been installed instead of ivy (from > jpackage). I've now corrected this but I'm still getting the > "/usr/bin/build-jar-repository: error: Could not find ... Java > extension for this JVM" for a whole bunch of things (quartz, jpam, > etc) > > Looking at a past post, I see the jars used to exist at > http://jmrodri.fedorapeople.org/ivy/ but there are no jars in this > directory now. This definitely isn't correct. $ grep ivyserver java/buildconf/build-props.xml http://sherr.fedorapeople.org"; /> http://sherr.fedorapeople.org/ivy/ contains (hopefully) all the necessary jars. :-) 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
Re: [Spacewalk-devel] Problem building dev workstation
Hi I found that apache-ivy had been installed instead of ivy (from jpackage). I've now corrected this but I'm still getting the "/usr/bin/build-jar-repository: error: Could not find ... Java extension for this JVM" for a whole bunch of things (quartz, jpam, etc) Looking at a past post, I see the jars used to exist at http://jmrodri.fedorapeople.org/ivy/ but there are no jars in this directory now. Still poking at this... Thanks CC On Thu, Nov 7, 2013 at 4:56 PM, Tomas Lestach wrote: >> /usr/local/spacewalk.git/java/buildconf/build-taskdefs.xml:5: taskdef >> class fr.jayasoft.ivy.ant.IvyRetrieve cannot be found > > Hey Colin, > > this looks like a non-compatible ivy version. > I know, guys used some old version from jpackage repo in the past. > http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ivy-1.3.1-1jpp.noarch.rpm > > > But looking at > https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup?action=diff&version=81&old_version=80 > the ivy installation was removed. > > Stephen, would you help here? > > Tomas > -- > 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
Re: [Spacewalk-devel] Problem building dev workstation
> /usr/local/spacewalk.git/java/buildconf/build-taskdefs.xml:5: taskdef > class fr.jayasoft.ivy.ant.IvyRetrieve cannot be found Hey Colin, this looks like a non-compatible ivy version. I know, guys used some old version from jpackage repo in the past. http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ivy-1.3.1-1jpp.noarch.rpm But looking at https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup?action=diff&version=81&old_version=80 the ivy installation was removed. Stephen, would you help here? Tomas -- Tomas Lestach Red Hat Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
Hi all I've tried this now on F19 (was using RHEL6). Under F19, I get: --- Buildfile: /root/spacewalk/java/build.xml [echo] Importing buildconf/build-props-tomcat7.xml set-default-config-dir: init-install: boot-deps: init-ivy: resolve-ivy: resolve-local: [echo] Symlinking ant ant/ant-junit ant-contrib antlr tomcat/jasper tomcat/jasper-el tomcat/jasper-jdt junit log4j regexp jmock jmock-cglib postgresql-jdbc bcel cglib commons-beanutils commons-cli commons-codec commons-collections commons-digester commons-discovery commons-el commons-fileupload commons-io commons-lang commons-logging commons-validator hibernate3/hibernate-ehcache-3 hibernate3/hibernate-c3p0-3 hibernate3/hibernate-core-3 hibernate/hibernate-commons-annotations slf4j/api jboss-logging javassist slf4j/log4j12 ehcache-core hibernate-jpa-2.0-api tomcat tomcat-jsp-2.2-api tomcat-servlet-3.0-api tomcat-el-2.2-api javamail jdom jpam dwr log4j oro redstone-xmlrpc-client redstone-xmlrpc struts struts-extras struts-taglib jcommon stringtree-json postgresql-jdbc jfreechart taglibs-core quartz concurrent simple-core simple-xml susestudio-java-client tanukiwrapper [exec] /usr/bin/build-jar-repository: error: Could not find antlr Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat/jasper Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat/jasper-el Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat/jasper-jdt Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find log4j Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-beanutils Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-collections Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-digester Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-discovery Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-el Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-fileupload Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-io Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-lang Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find commons-validator Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find hibernate3/hibernate-ehcache-3 Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find hibernate3/hibernate-c3p0-3 Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find hibernate3/hibernate-core-3 Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find hibernate/hibernate-commons-annotations Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find slf4j/api Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find jboss-logging Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find javassist Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find slf4j/log4j12 Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find ehcache-core Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find hibernate-jpa-2.0-api Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat-jsp-2.2-api Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat-servlet-3.0-api Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find tomcat-el-2.2-api Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find javamail Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find jdom Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find jpam Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find dwr Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find log4j Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find redstone-xmlrpc-client Java extension for this JVM [exec] /usr/bin/build-jar-repository: error: Could not find redstone-xmlrpc Java exte
[Spacewalk-devel] Problem building dev workstation
Hi all I'm building a new devel workstation to do a bit of hacking. --- [root@benrhn1d 10:39 /usr/local/spacewalk.git/java]# ant all Buildfile: build.xml [available] DEPRECATED - 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 boot-deps: [echo] Symlinking ivy init-ivy: BUILD FAILED /usr/local/spacewalk.git/java/buildconf/build-taskdefs.xml:5: taskdef class fr.jayasoft.ivy.ant.IvyRetrieve cannot be found Total time: 0 seconds [root@benrhn1d 10:39 /usr/local/spacewalk.git/java]# ant clean all Buildfile: build.xml [available] DEPRECATED - 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 clean: [delete] Deleting directory /usr/local/spacewalk.git/java/build boot-deps: [mkdir] Created dir: /usr/local/spacewalk.git/java/build/boot-lib [echo] Symlinking ivy init-ivy: BUILD FAILED /usr/local/spacewalk.git/java/buildconf/build-taskdefs.xml:5: taskdef class fr.jayasoft.ivy.ant.IvyRetrieve cannot be found Total time: 1 second [root@benrhn1d 10:39 /usr/local/spacewalk.git/java]# --- Any ideas on what I'm doing wrong? Thanks CC -- RHCE#805007969328369 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel