信息:在java.library.path中找不到基于APR的Apache Tomcat Native库,它允许在生产环境中获得最佳性能:

时间:2015-02-17 05:29:30

标签: tomcat hadoop oozie

我是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$2.run(AppContext.java:274)
    at sun.awt.AppContext$2.run(AppContext.java:263)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.AppContext.initMainAppContext(AppContext.java:263)
    at sun.awt.AppContext.access$400(AppContext.java:133)
    at sun.awt.AppContext$3.run(AppContext.java:318)
    at sun.awt.AppContext$3.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

我很努力,找不到任何与此错误相关的线程。 感谢..

1 个答案:

答案 0 :(得分:0)

我尝试了很多搜索上面的错误,没有得到正确的一个,但发现错误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位并遵循它对我有用的链接上的步骤。感谢...