A user has requested how to specify log4j settings for running Taverna
from Eclipse when following the Service Invocation plugin tutorial [1]
- as by default you would get the error: "Unable to determine file for
log4j.properties"


Assuming you are running the Eclipse using
TavernaWorkbenchWithExamplePlugin from the example-activity-ui, do the
following:

* Make a folder example-activity-ui/conf
* Copy log4j.properties (attached) from conf/ of a normal Taverna 2.2
distribution to the new conf/ folder
* Either -
  # Modify TavernaWorkbenchWithExamplePlugin.main to include:
      System.setProperty("taverna.startup", ".");
      Launcher.main(args);
  # In Eclipse, Modify the Run->Run configuration -> Arguments -> VM
arguments to:
      -Dtaverna.startup=.

For this to work the Working Directory in the run configuration should
be the default - ie. ${workspace_loc:example-activity-ui}


Note that the logging configure will be WARN on the console, and
anything else to the log files which you can find by going to
Advanced->Show log folder once Taverna has started.

I've noted this as a bug T2-1667 [2] so that in the future we'll try
to improve the
tutorial and/or archetype to make the logging work out of the box.


[1] 
http://www.mygrid.org.uk/dev/wiki/display/developer/Tutorial+-+Service+invocation+plugin
[2] http://www.mygrid.org.uk/dev/issues/browse/T2-1667

-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

Attachment: log4j.properties
Description: Binary data

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
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