首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

AIX报错java.lang.UnsatisfiedLinkError: license解决办法

2012-12-29 
AIX报错java.lang.UnsatisfiedLinkError: license我在AIX下编译运行服务器,在客户端链接到其中一个网页是

AIX报错java.lang.UnsatisfiedLinkError: license
我在AIX下编译运行服务器,在客户端链接到其中一个网页是报错,

SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.UnsatisfiedLinkError: license (A file or directory in the path name does not exist.)

        at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:896)
        at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:865)
        at java.lang.System.loadLibrary(System.java:445)
        at licensePkg.SLMStandAloneLicense.<clinit>(Unknown Source)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:148)
        at ism.security.IsmSessionServer.featureAllowed(IsmSessionServer.java:123)
        at ism.security.IsmSessionServer.featureAllowed(IsmSessionServer.java:100)
        at ism.sca.ArborFXBean.getReports(ArborFXBean.java:1788)
        at org.apache.jsp.OpCenter.Parts.Core.ArborFXPart_jsp._jspService(org.apache.jsp.OpCenter.Parts.Core.ArborFXPart_jsp:202)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(AccessController.java:270)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:727)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(AccessController.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)


        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
        at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:66)
        at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:97)
        at java.security.AccessController.doPrivileged(AccessController.java:241)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:490)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
        at org.apache.jsp.OpCenter.Pages.ArborFXMain_jsp._jspService(org.apache.jsp.OpCenter.Pages.ArborFXMain_jsp:609)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(AccessController.java:270)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:727)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(AccessController.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
这些需要的库都是set到classpath里面去了的~~而且在其他linux,solaris,HPUX上都没该问题。。
是不是和AIX 机器位数有关呀?
------解决方案--------------------


SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.UnsatisfiedLinkError: license (A file or directory in the path name does not exist.)

文件是否存在?
[解决办法]

引用:
liblicense.so,license.jar,都设置到环境变量里面去了,
license这个文件夹也是存在的~~~。。。
在程序的HOME目录下面有license文件夹


(1)liblicense.so,一般应该放在TOMCAT的bin目录、或者系统目录,比如/usr/lib或者通过LD_LIBRARY_PATH指定。放在CLASSPATH环境变量中是没用的。
(2) license文件夹在程序的HOME目录?
  应该是WebService的DocumentRoot目录吧。你应该通过你访问的URL,去看看该URL对应的物理文件应该在什么位置。我怀疑是你把URL对应的物理位置搞错了。

热点排行