Hello,
I'm trying to run taverna from shell on my mac. I run the following command
from the "Taverna 2.4.0.app/Contents/Resources/Java" folder.
java -Xmx1024m -XX:MaxPermSize=140m -jar lib/prelauncher-2.4.jar
-Draven.profile=./conf/current-profile.xml
-Djava.system.class.loader=net.sf.taverna.raven.prelauncher.BootstrapClassLoader
-Dtaverna.startup=.
Taverna did not start and throwed the following:
Unable to determine file for log4j.properties
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.16} from 2087347332] whereas object of
type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[net.sf.taverna.raven.prelauncher.BootstrapClassLoader@a3901c6].
log4j:ERROR Could not instantiate appender named "CONSOLE".
log4j:WARN No appenders could be found for logger
(net.sf.taverna.raven.log.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception from method net.sf.taverna.raven.launcher.Launcher.main(String[])
java.lang.ExceptionInInitializerError
at
net.sf.taverna.t2.workbench.ui.impl.Workbench.getInstance(Workbench.java:159)
at
net.sf.taverna.t2.workbench.ui.impl.WorkbenchLauncher.launch(WorkbenchLauncher.java:28)
at net.sf.taverna.raven.launcher.Launcher.launchMain(Launcher.java:150)
at net.sf.taverna.raven.launcher.Launcher.main(Launcher.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
net.sf.taverna.raven.prelauncher.PreLauncher.runLauncher(PreLauncher.java:115)
at
net.sf.taverna.raven.prelauncher.PreLauncher.launchArgs(PreLauncher.java:69)
at net.sf.taverna.raven.prelauncher.PreLauncher.main(PreLauncher.java:47)
Caused by: java.lang.IllegalStateException: Could not find implementation
of class net.sf.taverna.t2.ui.menu.MenuManager
at net.sf.taverna.t2.ui.menu.MenuManager.getInstance(MenuManager.java:101)
at net.sf.taverna.t2.workbench.ui.impl.Workbench.<init>(Workbench.java:100)
at
net.sf.taverna.t2.workbench.ui.impl.Workbench$Singleton.<clinit>(Workbench.java:153)
... 11 more
I've investigated the problem and found that the ApplicationRuntime
instance, which should be a singleton, loaded twice. First under the
BootstrapClassLoader and second under the LocalArtifactClassLoader, which
is the class loader of the MenuManager class.
Thus ApplicationRuntime.getInstance().getRavenRepository() returns an
empty repository.
Is something missing in the command? After i can run taverna from shell
successfully, next step will be adding agentlib to attach the debugger.
Best wishes,
Ilhami
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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/