Axis 1.4 log4j-1.2.8.jar与XPages不兼容? [英] Axis 1.4 log4j-1.2.8.jar incompatible with XPages?

查看:175
本文介绍了Axis 1.4 log4j-1.2.8.jar与XPages不兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一些来自Apache Axis 1.4的JAR添加到 WebContent / WEB-INF / lib 目录中。其中一个JAR是 log4j-1.2.8.jar

I'm trying to add some of the JARs from Apache Axis 1.4 into the WebContent/WEB-INF/lib directory. One of the JARs is log4j-1.2.8.jar.

只要将此JAR添加到lib目录,NSF中的所有XPage都停止工作。我只是收到错误500并带有以下消息:

As soon as this JAR is added to the lib directory, all XPages in the NSF stop working. I just get an error 500 with the following message:


HTTP Web服务器:命令未处理异常。

"HTTP Web Server: Command Not Handled Exception".

以下消息将写入错误日志:

The following message is written to the error log:

java.lang.RuntimeException: com.ibm.xsp.FacesExceptionEx: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException
.    
.    
.    
.    
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)

链接到完整堆栈跟踪

有没有人有任何想法?

推荐答案

已编辑

由于Domino Web Services,AXIS jar包含在Domino安装中使用它们。如果你也包含它们,那就是冲突的原因。

The AXIS jars are included in Domino install because Domino Web Services use them. That's why there is a conflict if you include them also.

我建议使用比Axis更新的JAX-WS。 以下是如何使用它Web服务客户端。无需添加任何JAR。您也可以使用JAX-WS wsdl2java 而不是Apache。

I would recommend using JAX-WS which is newer than Axis. Here is how to use it for Web Service client. No need to add any JARs. You could also use JAX-WS wsdl2java instead of Apache one.

这两个权限需要在 java.policy <中授予/ em>文件使其工作:

These two permissions need to be granted in java.policy file for this to work:

permission java.lang.RuntimePermission "setContextClassLoader";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

请注意,任何类型的服务器更新(fe fixpack install)都会将java.policy文件重置为默认值。

Note that any kind of server update (f.e. fixpack install) will reset the java.policy file to default.

这篇关于Axis 1.4 log4j-1.2.8.jar与XPages不兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆