Yes, remove the <dependency> on taverna-activity-test-utils - this brings in taverna=reference-impl from Taverna 3 which says
stain@biggiebuntu:~/src/taverna$ grep -r org.apache.taverna.platform.spring.ArtifactSupportNamespaceHandler . ./incubator-taverna-engine/taverna-reference-impl/src/main/resources/META-INF/spring.handlers:http\://taverna.sf.net/schema/artifact-support=org.apache.taverna.platform.spring.ArtifactSupportNamespaceHandler ... but no such class exists anymore in T3 - it was used to support Taverna 2 "Raven" extensions. https://github.com/apache/incubator-taverna-engine/blob/dc2f51d12be58d1dc35b8a0d090c1cfea360ecfe/reference-impl/src/main/java/net/sf/taverna/platform/spring/ArtifactSupportNamespaceHandler.java I've deleted the spring.handlers file from taverna-reference-impl As this error didn't show up in the command line run I don't think it's a problem for the current RC - but worth keeping in mind if the Taverna 3 workbench causes the same error. On 27 June 2016 at 16:19, Stian Soiland-Reyes <[email protected]> wrote: > On 24 June 2016 at 20:02, Thilina Manamgoda <[email protected]> wrote: >> i have changed returning result a "Array.asList" like this: >> https://github.com/ThilinaManamgoda/incubator-taverna-common-activities/blob/stream/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java > > Looks good. > > Fix the logging and early return, then it should be ready for a pull request. > > >> I can't run workbech like this: >> https://github.com/ThilinaManamgoda/incubator-taverna-common-activities/blob/stream/taverna-cwl-activity-ui/src/test/java/org/apache/taverna/cwl/ui/TestWorkBench.java >> when i try to run it, error "can't connect to database another instance is >> using it" occurs although i am not running another workbench ? > > Uhu, yes, I got that as well when trying to launch from your > repository.. I think it is caused by version 2 and version 3 > dependencies fighting a bit over their initialization. > > stain@biggiebuntu:~/.taverna-2.5.0-dev/logs$ tail taverna-2.5.0-dev.log > ERROR 2016-06-27 16:18:28,935 > (net.sf.taverna.t2.workbench.reference.config.DataManagementHelper:165) > - org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Failed to import bean definitions from relative > location [context-parts/dao_hibernate.xml] > Offending resource: class path resource > [hibernateReferenceServiceContext.xml]; nested exception is > org.springframework.beans.factory.BeanDefinitionStoreException: > Unexpected exception parsing XML document from class path resource > [context-parts/dao_hibernate.xml]; nested exception is > org.springframework.beans.FatalBeanException: NamespaceHandler class > [org.apache.taverna.platform.spring.ArtifactSupportNamespaceHandler] > for namespace [http://taverna.sf.net/schema/artifact-support] not > found; nested exception is java.lang.ClassNotFoundException: > org.apache.taverna.platform.spring.ArtifactSupportNamespaceHandler > > I'll see if there is a way to add a Maven <exclusion> to help this. > > > -- > Stian Soiland-Reyes > Apache Taverna (incubating), Apache Commons > http://orcid.org/0000-0001-9842-9718 -- Stian Soiland-Reyes Apache Taverna (incubating), Apache Commons http://orcid.org/0000-0001-9842-9718
