信息:在java.library.path中找不到基于apr的apache tomcat本机库,该库允许在生产环境中实现最佳性能:

ycl3bljg  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(1155)

我是oozie的新手,在ubuntu中用hadoop-2.2.0构建oozie-4.0.1时遇到了很多问题。现在它是建立在帮助这个链接。我现在在使用命令启动oozie时面临新的问题 bin/oozied.sh run . 错误跟踪显示: 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

我挣扎了很多,找不到任何线程与此错误有关。谢谢。。

exdqitrt

exdqitrt1#

我尝试了很多以上的错误搜索,没有得到正确的一个,但找到了错误的原因 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 这是由于ubuntu64位和32位jdk7。然后我重新安装了ubuntu32位,并按照链接上的步骤进行操作。谢谢。。。

相关问题