1 2 Previous Next 19 Replies Latest reply: Jul 5, 2012 7:34 AM by Keith Babo RSS

Forge install switchyard issue

Gary Brown Master

I think I'm jinxed at the moment.

 

Trying to install switchyard into forge, so that I can install switchyard into openshift, I get the following:

 

install-forge:
     [echo] Creating switchyard directory...
     [echo] Unzipping switchyard forge plugin module...
    [unzip] Expanding: /home/gbrown/tools/jboss/switchyard-installer-0.5/res/switchyard-forge-plugins.zip into /home/gbrown/.forge/plugins/org/switchyard
     [echo] Unzipped SwitchYard forge plugin.
     [echo] Installing forge plugin to /home/gbrown/.forge ... 
     [java] /home/gbrown/tools/jboss/forge-distribution/modules/org/jboss/forge/shell/api/main does not exist.
     [java]     at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
     [java]     at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69)
     [java]     at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:123)
     [java]     at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:107)
     [java]     at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourceCollectionContainer.java:265)
     [java]     at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.iterator(BaseResourceCollectionContainer.java:142)
     [java]     at org.apache.tools.ant.types.Path.iterator(Path.java:712)
     [java]     at org.apache.tools.ant.types.Path.iterator(Path.java:706)
     [java]     at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:123)
     [java]     at org.apache.tools.ant.types.resources.Union.list(Union.java:86)
     [java]     at org.apache.tools.ant.types.Path.list(Path.java:379)
     [java]     at org.apache.tools.ant.types.Path.addExisting(Path.java:332)
     [java]     at org.apache.tools.ant.types.Path.addExisting(Path.java:320)
     [java]     at org.apache.tools.ant.types.Path.concatSpecialPath(Path.java:573)
     [java]     at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:533)
     [java]     at org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoader.java:355)
     [java]     at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:269)
     [java]     at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:290)
     [java]     at org.apache.tools.ant.loader.AntClassLoader5.<init>(AntClassLoader5.java:51)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     [java]     at org.apache.tools.ant.util.ReflectUtil.newInstance(ReflectUtil.java:49)
     [java]     at org.apache.tools.ant.AntClassLoader.newAntClassLoader(AntClassLoader.java:1555)
     [java]     at org.apache.tools.ant.Project.createClassLoader(Project.java:339)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:128)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:811)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
     [java] Java Result: -1

 

I used the version of forge 1.0.0.beta3 referenced in the switchyard install forge docs, and am using switchyard 0.5 installer.

 

Any ideas?

  • 1. Re: Forge install switchyard issue
    Gary Brown Master

    This is what I get using switchyard 0.5 installer with forge 1.0.5.Final:

     

     

    install-forge:
         [echo] Creating switchyard directory...
        [mkdir] Created dir: /home/gbrown/.forge/plugins/org/switchyard
         [echo] Unzipping switchyard forge plugin module...
        [unzip] Expanding: /home/gbrown/tools/jboss/switchyard-installer-0.5/res/switchyard-forge-plugins.zip into /home/gbrown/.forge/plugins/org/switchyard
         [echo] Unzipped SwitchYard forge plugin.
         [echo] Installing forge plugin to /home/gbrown/.forge ... 
         [java] java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
         [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
         [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         [java]     at org.apache.tools.ant.Main.runBuild(Main.java:811)
         [java]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
         [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
         [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
         [java] Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
         [java]     at java.lang.ClassLoader.defineClass1(Native Method)
         [java]     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
         [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
         [java]     at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128)
         [java]     at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299)
         [java]     at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355)
         [java]     at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
         [java]     at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1074)
         [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         [java]     at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
         [java]     at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
         [java]     at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
         [java]     at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
         [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         [java]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         [java]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
         [java]     at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:107)
         [java]     at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:87)
         [java]     at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:92)
         [java]     at org.jboss.forge.shell.InstalledPluginRegistry.install(InstalledPluginRegistry.java:177)
         [java]     at org.switchyard.forge.installer.Installer.install(Installer.java:41)
         [java]     at org.switchyard.forge.installer.Installer.main(Installer.java:49)
         [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
         [java]     ... 33 more
         [java] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
         [java]     at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
         [java]     at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
         [java]     at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
         [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         [java]     ... 64 more
         [java] Java Result: -1
    
    

     

    Also using JDK1.6.0_25

  • 2. Re: Forge install switchyard issue
    Keith Babo Master

    You need Forge 1.0.2.Final.  Later versions might work.  I will update the docs.  Sorry for all the hassle today, Gary.

  • 3. Re: Forge install switchyard issue
    Keith Babo Master

    Which version of Ant are you using?  I'm using 1.8.2 with Forge 1.0.2.Final.

  • 4. Re: Forge install switchyard issue
    Gary Brown Master

    I'm using 1.8.4 of ant. With 1.0.2.final of forge I get:

     

     

    install-forge:
         [echo] Creating switchyard directory...
         [echo] Unzipping switchyard forge plugin module...
        [unzip] Expanding: /home/gbrown/tools/jboss/switchyard-installer-0.5/res/switchyard-forge-plugins.zip into /home/gbrown/.forge/plugins/org/switchyard
         [echo] Unzipped SwitchYard forge plugin.
         [echo] Installing forge plugin to /home/gbrown/.forge ... 
         [java] java.lang.NullPointerException
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
         [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
         [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         [java]     at org.apache.tools.ant.Main.runBuild(Main.java:811)
         [java]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
         [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
         [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
         [java] Caused by: java.lang.NullPointerException
         [java]     at org.jboss.forge.shell.InstalledPluginRegistry.install(InstalledPluginRegistry.java:157)
         [java]     at org.switchyard.forge.installer.Installer.install(Installer.java:41)
         [java]     at org.switchyard.forge.installer.Installer.main(Installer.java:49)
         [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [java]     at java.lang.reflect.Method.invoke(Method.java:597)
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
         [java]     ... 33 more
         [java] Java Result: -1
    

     

     

    If you think it might be ant related, then I'll try with that version tomorrow.

  • 5. Re: Forge install switchyard issue
    Keith Babo Master

    Hmmm ... I will give it a try with my combo and confirm it works.  Then we can see if the exact same version combo works for you.

  • 6. Re: Forge install switchyard issue
    Magesh Bojan Master

    Gary,

     

    When you upgraded forge, did you clean your local plugin repository? The new version of forge has some additional attributes for plugin entry that might have been missed when installing switchyard plugins. Here is what I would suggest:

     

    1. Uninstall forge
    2. Backup your existing repo /home/gbrown/.forge
    3. Install forge
    4. Now use the switchyard installer
  • 7. Re: Forge install switchyard issue
    Gary Brown Master

    Hi Magesh

     

    I didn't originally have forge installed, so was running into these problems from fresh installations. To make sure, I also removed the .forge folder before trying out each different version, but no difference

     

    Regards

    Gary

  • 8. Re: Forge install switchyard issue
    Magesh Bojan Master

    Gary, Could you attach your .forge/plugins/installed.xml?

  • 9. Re: Forge install switchyard issue
    Gary Brown Master

    Just checked, and that file is empty.

  • 10. Re: Forge install switchyard issue
    Magesh Bojan Master

    Then you have not installed any SwitchYard plugins yet

  • 11. Re: Forge install switchyard issue
    Gary Brown Master

    The .forge/plugin folder also contains org/switchyard/switchyard-forge-plugin/0.5.0-SNAPSHOT + dependencies, so looks like it tried

  • 12. Re: Forge install switchyard issue
    Magesh Bojan Master

    That alone is not sufficient, the xml should be there. Here is what I have, you can try adding this manually:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <installed>
      <plugin name="org.switchyard.switchyard-forge-plugin" slot="0.5.0-SNAPSHOT" api-version="1.0.2.Final"/>
    </installed>
    
    
  • 13. Re: Forge install switchyard issue
    Magesh Bojan Master

    Wait a minute! Did you say 0.5.0-SNAPSHOT? Then there is something wrong with our installer, as the version should have been Beta right? I haven't tried the release bits yet.

  • 14. Re: Forge install switchyard issue
    Gary Brown Master

    After manually adding the xml, it showed the plugin when I did "forge list-plugins", so possibly it was just a version mismatch issue.

1 2 Previous Next