使用外部jar导致错误 [英] Using External jar causing Error

查看:131
本文介绍了使用外部jar导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在执行以下步骤:


  1. 创建一个空的Notes数据库(Domino 9 Server上的Lotus Notes 9.0.1)

  2. 仅使用一个标签创建Xpage

  3. 插入外部Jar文件(代码 - Jars)

我用不同的jar文件测试了这个设置。在大多数情况下没有问题,但我发现2个jar文件在XPage中生成错误500 没有被引用

I tested this setting with different jar Files. In most cases there are no problems but I found 2 jar Files which produce an error 500 in XPage without being referenced

starface-rpc-1.6 .442.jar

starface-rpc-1.6.442.jar

log4j-1.2.17.jar

log4j-1.2.17.jar

有人知道可能是什么问题?

Does someone has an idea what can be the problem?

推荐答案

这两个.jar文件可能来自其他.jar文件。

Those two .jar files depend probably from other .jar files.

查看项目页面,如这个用于log4j 查找你需要添加哪些.jar文件。

Look at the project pages like this for log4j to find out which .jar files you need to add to your application too.

更新:

Update:

这些.jar文件与Domino Server使用的现有Java API冲突。这就是为什么即使没有在XPage中使用它们也会得到错误,因为它们被Domino Server执行XPage使用。

Those .jar files stay in conflict with existing Java APIs used by Domino Server. That's why you get the error even without using them in an XPage as they get used by Domino Server executing an XPage.

在这里查看解释log4j问题

这篇关于使用外部jar导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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