https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362010-02-04T18:39:37ZEcoinformatics RedmineKepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162152010-02-04T18:39:37Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>This is not just files with spaces in the path - I'm getting an error as well:</p>
<p>Unsupported file type or connection not available: file:/Users/leinfelder/workspace_kepler/kruger/workflows/tpc02-water-flow/tpc02-water-flow-base.kar</p> Kepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162162010-02-11T12:27:47ZDavid Welkerwelker4kepler@gmail.com
<ul></ul><p>This bug does not exist when running ant "run-workflow" against an ordinary workflow which is stored in an XML file. I just ran it on outreach/resources/demos/getting-started/04-HelloWorld.xml and it worked fine.</p>
<p>The problem here is simply that it is not possible to run workflows stored in kar files from the command-line.</p>
<p>This brings up a related issue. It seems to me that the KAR file format is obsolete. The original purpose, as I understand it, is to allow actors or workflows to include jars and other resources they need. But, shouldn't such resources be generally provided by modules?</p>
<p>Perhaps the KAR format is still relevant if what we want to distribute with an actor is a special image or icon to represent that actor in Kepler that we would not expect a module to provide...</p>
<p>Anyway, I am renaming this bug. The problem appears to be that workflows stored in kar files cannot be executive by Kepler from the command-line. As the build merely defers this work to the command-line, if the command-line worked, so would this ant command.</p> Kepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162172010-02-12T20:25:15ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>The spaces aren't the issue. I can run this with no problem:</p>
<p>java -classpath build-area/lib/ant.jar:kepler.jar org.kepler.build.runner.Kepler -runwf -nogui /Users/berkley/project/kepler/outreach/resources/demos/getting-started/01\ Simple\ Addition.xml</p>
<p>However, I cannot run this:<br />ant run-workflow -Dworkflow=/Users/berkley/project/kepler/outreach/resources/demos/getting-started/01\ Simple\ Addition.xml</p>
<p>So the problem is in the build system runner. Also, running workflows from kars is supported. you just need the -runkar arg.</p>
<p>I'll figure this out and get a fix checked in asap.</p> Kepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162182010-02-12T21:27:19ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>This is actually two bugs.</p>
<p>Bug 1: Spaces in the paths on a workflow run does not work. I found this to be true and I fixed it.</p>
<p>Bug 2: -runkar does not work. This is also true. I'm working on this. it looks like the code in loader that processed the kar file might have been removed.</p> Kepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162192010-02-16T22:20:30ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Running kars is not supported except in a server configuration. The reason for this is that the kar is first sent to a host, the workflow is extracted, then it is run. There is no kepler client side code to do this and AFAICT there never has been. If you want to run a workflow inside of a kar, you need to extract it first. Since this is not a 2.0 feature, I'm closing this bug. If this is needed, please add a new feature request for post 2.0.</p>
<p>I have confirmed that spaces in paths do now work for running workflows.</p> Kepler - Bug #4730: Kepler cannot run workflows stored in KAR files from the command-line.https://projects.ecoinformatics.org/ecoinfo/issues/4730?journal_id=162202013-03-27T21:27:54ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4730</p>