Hello all,

I use Taverna 1.7.2 and specifically the bootstrap jar 1.7.2.1. I want to run it from my web application (war) launched by jetty-runner.jar, but I get a conflict when I try to execute a workflow. I have my own log4j jar embedded into my webapp with my config, and it seems that Bootstrap get its own too, which lead to a jar hell and make my app shuting down, as you can see below when I try to execute given example workflow "file:/taverna/taverna-1.7.2/examples/fetch_today_s_xkcd_comic.xml" with Boostrap.main(workflowArgs):

   /log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "stdout".
   log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "rollingFile".
   log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "rollingFile".
   log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "stdout".
   log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "stdout".
   log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "rollingFile".
   log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "stdout".
   log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "rollingFile".
   log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "stdout".
   log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "rollingFile".
   log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
   assignable to a "org.apache.log4j.Appender" variable.
   log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
   log4j:ERROR [loader{log4j:log4j:1.2.12} from 31539877] whereas
   object of type
   log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
   [contextloa...@archetype Created Web Application : ProticPort].
   log4j:ERROR Could not instantiate appender named "CONSOLE".
   Unable to determine file for log4j.properties
   log4j:WARN No appenders could be found for logger
   (net.sf.taverna.utils.MyGridConfiguration).
   log4j:WARN Please initialize the log4j system properly.
   2010-06-16 19:11:57.440:INFO::Shutdown hook executing/


Does anyone of you know how to avoid such a jar hell ? Is it possible to disable log for Taverna in order Bootstrap runs correctly ?

Running bootstrap jar from command line work correctly.

Any help would be greatly appreciated.

Raphael.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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