You're right, it is versioning problem. I thought that since 2.1 beta 2 is no longer a snapshot, I assumed that I should no longer use version 0.4-SNAPSHOT for the workbench-api, menu-api, and perspective-core. So I tried with version 0.4, it turns out that this change is not necessary. I still can use the 0.4-SNAPSHOT without encountering class-cast problem I mentioned before :) Cheers,
Wibi. On Mon, Dec 7, 2009 at 7:23 PM, Ian Dunlop <[email protected]>wrote: > Hello, > > That looks correct. So..... > > The locations of the files are critical, should be in > src/main/resources/**path to package**/xmlfilename. > > eg > src/main/resources/net/sf/taverna/t2/ui/perspectives/results/results-perspective.xml > > > You also need the SPI file so that your plugin can be found in > src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.ui.zaria.PerspectiveSPI > > You also have to tell taverna the details of the plugin (can't remember the > exact details but again the version numbers are critical). > > The sort of errors you are having tend to point towards a versioning > problem somewhere, maybe there is still a rogue version number in the pom > you are using. If you post your pom.xml & plugins.xml we can have a look. > > Cheers, > > Ian > > 2009/12/7 Adianto Wibisono <[email protected]> > >> Hi, perhaps somebody can help me with my problem. I have developed plugin >> for AIDA toolkit for Marco Roos. A perspective plug in similar to >> myexperiments plugin for Taverna. Back in may/june it used to work for >> 2.1-SNAPSHOT, nightly build 20090506. Has there been any significant changes >> between the two version ? >> >> I have adjusted the pom.xml, I am quite sure now that I am using the >> correct libraries needed for the Taverna 2.1-beta.2, because I look at the >> Taverna repository in this release, and I had matched all needed >> dependencies. What I am not sure is the configuration file where mapping >> between net.sf.taverna.t2.workbench.ui.zaria.UIComponentFactorySPI and the >> perspective factory for my plug in is defined. >> >> Now I have this class cast exception : >> Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: >> org.vle.aid.taverna.AIDComponentFactory cannot be cast to >> net.sf.taverna.t2.workbench.ui.zaria.UIComponentFactorySPI >> at >> net.sf.taverna.t2.workbench.ui.impl.WorkbenchZBasePane.getMenuItem(WorkbenchZBasePane.java:50) >> >> >> The mapping that I meant was an xml description containing the following >> information, which used to be located under resources of the plug in : >> <basepane> >> <child> >> <znode classname="net.sf.taverna.zaria.ZRavenComponent"> >> <namedcomponent scroll="false"> >> <name>AID Plugin</name> >> </namedcomponent> >> </znode> >> </child> >> <namedcomponents> >> <namedcomponent> >> <groupid>org.vle.aid.taverna</groupid> >> <artifact>aid-plugin</artifact> >> <classname>org.vle.aid.taverna.AIDComponentFactory</classname> >> <name>AID Plugin</name> >> </namedcomponent> >> </namedcomponents> >> </basepane> >> >> >> Has there been any changes on where to put this information ? >> >> Any help would be appreciated. >> >> Thank you very much in advance, >> >> Wibi. >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> taverna-hackers mailing list >> [email protected] >> Web site: http://www.taverna.org.uk >> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ >> Developers Guide: http://www.mygrid.org.uk/tools/developer-information >> > > > > -- > Ian Dunlop > myGrid Team > School of Computer Science > University of Manchester > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > taverna-hackers mailing list > [email protected] > Web site: http://www.taverna.org.uk > Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ > Developers Guide: http://www.mygrid.org.uk/tools/developer-information >
------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev
_______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
