信息:在 java.library.path 上未找到基于 APR 的 Apache Tomcat 本机库,它允许在生产环境中实现最佳性能:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

我是 Oozie 的新手,在 ubuntu 中使用 hadoop-2.2.0 构建 oozie-4.0.1 时遇到了很多问题。现在它是在这个 link 的帮助下构建的。我现在面临使用命令 bin/oozied.sh run 启动 oozie 的新问题。跟踪的错误显示:INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 以及以下详细信息

错误:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/java/jre/lib/i386/xawt/libmawt.so: libXi.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
    at java.lang.Runtime.load0(Runtime.java:795)
    at java.lang.System.load(System.java:1062)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1653)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1682)
    at sun.awt.AppContext.run(AppContext.java:274)
    at sun.awt.AppContext.run(AppContext.java:263)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.AppContext.initMainAppContext(AppContext.java:263)
    at sun.awt.AppContext.access0(AppContext.java:133)
    at sun.awt.AppContext.run(AppContext.java:318)
    at sun.awt.AppContext.run(AppContext.java:301)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.AppContext.getAppContext(AppContext.java:300)
    at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
    at javax.imageio.ImageIO.<clinit>(ImageIO.java:65)
    at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:244)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:813)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
    ... 6 more

我苦苦挣扎,找不到与此错误相关的任何线程。 谢谢..

我尝试了很多搜索上述错误,没有找到正确的错误,但找到了错误 Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/java/jre/lib/i386/xawt/libmawt.so: libXi.so.6: cannot open shared object file: No such file or directory 的原因,这是由于 Ubuntu 64 位和 32 位 jdk 7。然后我重新安装 Ubuntu 32 位并按照对我有用的 link 上的步骤进行操作。谢谢...