Hi.

I am trying to translate t1 worklows into t2 workflows.
But I encountered problems with platform initialization.

My code is:
--------------------

package org.genesilico.t2workflow.test;


import net.sf.taverna.t2.platform.spring.RavenAwareClassPathXmlApplicationContext;
import net.sf.taverna.t2.platform.taverna.TavernaBaseProfile;
import org.springframework.context.ApplicationContext;

public class Test1 {
    public static void main(String[] args) {
    connector.addActivityTypesToDatabase(connector.prepareActivitytypes());
Map<T2ActivityType,List<T2ActivityParameterType>> activityTypesMap = connector. getActivityTypesFromDatabase(); ApplicationContext context = new RavenAwareClassPathXmlApplicationContext( "context.xml");
        TavernaBaseProfile profile = new TavernaBaseProfile(context);
    }
}
----------------------

Whwn I run it, I get:

--------------------------------------
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 't2.enactor.workflowParser' defined in class path resource [context-parts/platform-basic-profile.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'pluginManager' threw exception; nested exception is java.lang.NoSuchMethodError: net.sf.taverna.t2.workflowmodel.serialization.xml.XMLDeserializerImpl.<init>(Lnet/sf/taverna/t2/platform/plugin/PluginManager;)V at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1277) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at net.sf.taverna.t2.platform.spring.RavenAwareClassPathXmlApplicationContext.<init>(RavenAwareClassPathXmlApplicationContext.java:41)
        at org.genesilico.t2workflow.test.Test1.main(Test1.java:29)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'pluginManager' threw exception; nested exception is java.lang.NoSuchMethodError: net.sf.taverna.t2.workflowmodel.serialization.xml.XMLDeserializerImpl.<init>(Lnet/sf/taverna/t2/platform/plugin/PluginManager;)V at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)
        ... 17 more
-------------------------------------


In case it is a dependency proble, I attach my pom.xml file

Jerzy Orlowski
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>workflowmaker_t2_1</groupId>
	<artifactId>workflowmaker_t2_1</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>pom</packaging>
	<properties>
		<!--  Common version numbers of dependencies -->
		<depT2core>0.4-SNAPSHOT</depT2core>
		<depTaverna>1.7.2-SNAPSHOT</depTaverna>
		<depRaven>1.8</depRaven>
		<depLog4j>1.2.13</depLog4j>
		<depCommonsIO>1.3</depCommonsIO>
		<depCommonsCLI>1.0</depCommonsCLI>
		<depJdom>1.0</depJdom>
		<t2.platform.version>0.1</t2.platform.version>
		<t2.reference.version>0.1</t2.reference.version>
		<t2.core.version>0.4-SNAPSHOT</t2.core.version>
		<t2.activities.version>0.4-SNAPSHOT</t2.activities.version>
		<t2.io.version>0.3</t2.io.version>
		<t2.spidiscovery.version>0.3</t2.spidiscovery.version>
		<raven.version>1.8</raven.version>
		<t2.security.version>0.1</t2.security.version>
		<taverna.version>1.7.2-SNAPSHOT</taverna.version>
	</properties>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skip>false</skip>
					<systemProperties>
						<property>
							<name>java.awt.headless</name>
							<value>true</value>
						</property>
					</systemProperties>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>jar</goal>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<modules>
		<module>integration-testing-common</module>
		<module>dataflow-invocation-testing</module>
		<module>dataflow-serialization-testing</module>
		<module>activity-testing</module>
	</modules>
	<repositories>
		<repository>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>cyclonic</id>
			<name>Cyclonic.org repository</name>
			<url>http://www.cyclonic.org/t2platform/repository</url>
		</repository>
		<repository>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>mygrid-repository</id>
			<name>myGrid Repository</name>
			<url>http://www.mygrid.org.uk/maven/repository</url>
		</repository>
		<repository>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>mygrid-mirror</id>
			<name>myGrid maven proxy server</name>
			<url>http://www.mygrid.org.uk/maven/repo1</url>
		</repository>
	</repositories>
	
	
	
	<dependencies>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>platform-taverna-api</artifactId>
			<version>p0.1b1</version>
			<exclusions>
				<exclusion>
					<groupId>org.springframework</groupId>
					<artifactId>spring-web</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>compatibility-api</artifactId>
			<version>${t2.core.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>compatibility-impl</artifactId>
			<version>${t2.core.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>workflowmodel-api</artifactId>
			<version>${t2.core.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>workflowmodel-impl</artifactId>
			<version>${t2.core.version}</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
					<version>4.4</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>platform</artifactId>
			<version>${t2.platform.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>t2reference-api</artifactId>
			<version>${t2.reference.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>t2reference-impl</artifactId>
			<version>${t2.reference.version}</version>
		</dependency>
		<dependency>
			<groupId>net.sf.taverna.t2</groupId>
			<artifactId>t2reference-core-extensions</artifactId>
			<version>${t2.reference.version}</version>
		</dependency>
	</dependencies>
</project>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq

Reply via email to