Hello. 

Sorry if the problem was solved on this group before but I couldn't find it 
anywhere. 

I have started developing Taverna plugin based on tutorials on Taverna website. 
I have managed to create generic plugin, build and deploy it to dropbox repo. I 
am also able to install it in standalone Taverna application. Service is 
recognized correctly and installs without errors. 

Problems start when I try to add created service to the workflow. From Taverna 
I get dialog with: "Uncaught exception …".

Logs say that one class from guava library cannot be found:

==============================================================================================================================================================================
INFO  2012-12-16 09:51:10,517 
(net.sf.taverna.t2.workbench.ui.servicepanel.ServicePanel:131) - Updating My 
example service http://www.example.com:8080/service/sos
ERROR 2012-12-16 09:51:10,519 
(net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionRegistryImpl:674) 
- Uncaught exception in Thread[Find service descriptions from My example 
service http://www.example.com:8080/service/sos,1,Service description providers]
java.lang.NoClassDefFoundError: com/google/common/collect/Lists
        at 
pl.wroc.pwr.activities.sos.ui.serviceprovider.SOSServiceProvider.findServiceDescriptionsAsync(SOSServiceProvider.java:33)
        at 
net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionRegistryImpl$FindServiceDescriptionsThread.run(ServiceDescriptionRegistryImpl.java:670)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists
        at 
net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClassLoader.java:343)
        at 
net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClassLoader.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 2 more
WARN  2012-12-16 09:51:10,520 
(net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionRegistryImpl:579) 
- Provider My example service http://www.example.com:8080/service/sos: Uncaught 
exception
java.lang.NoClassDefFoundError: com/google/common/collect/Lists
        at 
pl.wroc.pwr.activities.sos.ui.serviceprovider.SOSServiceProvider.findServiceDescriptionsAsync(SOSServiceProvider.java:33)
        at 
net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionRegistryImpl$FindServiceDescriptionsThread.run(ServiceDescriptionRegistryImpl.java:670)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists
        at 
net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClassLoader.java:343)
        at 
net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClassLoader.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 2 more
==============================================================================================================================================================================

This error pops up despite the fact that guava jar is downloaded during plugin 
installation process and I can locate it in ~/Libraries/Application 
Support/taverna-2.4.0/repository directory. This problem does not occur when I 
try plugin from TavernaWorkbenchWithExamplePlugin class.

Does anyone have any idea why this happens? I will appreciate any help.

Best Regards,
Dawid Nejman

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to