Description:
On certain OSX installations there have been problems starting the service manager, giving errors within the catalina.out log file such as:
SEVERE: StandardWrapper.Throwable
java.lang.UnsatisfiedLinkError: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Leading to errors such as the following from our service managerSEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError
at com.mysql.merlin.server.graph.GraphService.<init>(GraphService.java:107)
at com.mysql.merlin.server.ServiceMgr.createServices(ServiceMgr.java:406)
at com.mysql.merlin.server.ServiceMgr.<init>(ServiceMgr.java:198)
at com.mysql.merlin.server.ServiceMgr.getInstance(ServiceMgr.java:71)
at com.mysql.merlin.server.MerlinServlet.init(MerlinServlet.java:47)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
:
How to repeat:
Hard to repeat in all cases, some installations on OSX seem to be affected whilst others do not. It may be an issue with users using fink, also.
Suggested fix:
Setting libawt to headless seems to resolve the issue, please set the following within the catalina.sh script for JAVA_OPTS:
JAVA_OPTS='-Xmx512m -Djava.awt.headless=true'