yuch7 / cwlexec

A new open source tool to run CWL workflows on LSF
Other
36 stars 8 forks source link

Error: Could not find or load main class #50

Open ionox0 opened 5 years ago

ionox0 commented 5 years ago

Command used:

./cwlexec /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl ~/Innovation-Pipeline/test/workflows/EZ_QC_test.yaml
Error: Could not find or load main class com.ibm.spectrumcomputing.cwl.Application

I've downloaded and extracted the 0.2.2 release, is there any advice on this error?

ionox0 commented 5 years ago

Also was able to start the 0.2.0 version, but ran into this error:

./cwlexec /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl ~/Innovation-Pipeline/test/workflows/EZ_QC_test.yaml
The field [SchemaType] is required by [type].

This was addressed here: https://github.com/IBMSpectrumComputing/cwlexec/issues/32

mr-c commented 5 years ago

@ionox0 Are you able to run any simple CWL description with v0.2.2?

You could also try packing your CWL into a single file with cwltool --pack /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl > qc_workflow_wo_waltz-packed.cwl. This does $import and $include processing, so that may be easier for cwlexec to ingest until they become more compliant with the entirety of CWL v1.0.

skeeey commented 5 years ago

@ionox0, do you set the CWL_EXEC_HOME environment variable? I think you may need to check it, or would you try the below commands, this will print the cwlexec version

CWL_EXEC_HOME=<your cwlexec uncompressed path>
CWL_EXEC_LIBS_PATH="$CWL_EXEC_HOME/libs"
CWL_EXEC_JAR_LIBS=`find $CWL_EXEC_LIBS_PATH -type f | awk '{printf("%s:", $1)}'`
CWL_EXEC_MAIN_CLASS="com.ibm.spectrumcomputing.cwl.Application"

java -classpath $CWL_EXEC_JAR_LIBS $CWL_EXEC_MAIN_CLASS -v
ionox0 commented 5 years ago

@mr-c Yes I believe the issue may be due to $import and $include statements. Will get back when I return to this and test with a more standard workflow, thank you!