从Tomcat到Weblogic的RMI [英] RMI from Tomcat to Weblogic

查看:50
本文介绍了从Tomcat到Weblogic的RMI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 web 应用程序,它与 weblogic 服务器上的 RMI 接口集成.在开发过程中,我使用了 wlfullclient.jar,一切都很好.

I have a webapp that is integrating with a RMI interface on a weblogic server. During development I used the wlfullclient.jar and everything was fine.

但是当我在 Tomcat 上部署 war 时,我遇到了一个问题:validateJarFile(.../wlfullclient-10.3.2.jar) - jar 未加载.参见 Servlet Spec 2.3 ...违规类:javax/servlet/Servlet.class

But as I deployed the war on Tomcat I encountered a problem: validateJarFile(.../wlfullclient-10.3.2.jar) - jar not loaded. See Servlet Spec 2.3 ...Offending class: javax/servlet/Servlet.class

所以 wlfullclient.jar 有自己的 javax.servlet.Servlet 实现,Tomcat 不喜欢它.

So wlfullclient.jar has its own implementation of javax.servlet.Servlet and Tomcat doesnt like it.

我能做什么?没有 wlfullclient.jar 我得到javax.sercurity.auth.login.LoginException:登录失败:忽略所有模块

What can I do? Without wlfullclient.jar I get javax.sercurity.auth.login.LoginException: Login failure: all modules ignored

我尝试过使用 wlthint3client.jar、wls-api.jar、wlclient.jar.似乎不起作用,我的集成测试不起作用.有什么想法吗?

I have tried using wlthint3client.jar, wls-api.jar, wlclient.jar. Doesn't seem to work, my integration tests wont work. Any ideas?

推荐答案

现在有效了.我做了以下

It worked now. I did the following

  1. 修改 wlfullclient.jar:删除了 javax-package.很糟糕,但我似乎找不到替代方案.wlthinclient 或 wlclient 都不起作用.

  1. Modified wlfullclient.jar: removed javax-package. Pretty bad but I cannot seem to find an alternative. Neither the wlthinclient or wlclient works.

添加了以下包

<dependency>
    <groupId>javax.ejb</groupId>
    <artifactId>ejb-api</artifactId>
    <version>3.0</version>
</dependency>

<dependency>
    <groupId>javax.security.jacc</groupId>
    <artifactId>javax.security.jacc-api</artifactId>
    <version>1.4</version>
</dependency>

<dependency>
    <groupId>javax.transaction</groupId>
    <artifactId>transaction-api</artifactId>
    <version>1.1</version>
</dependency>

这篇关于从Tomcat到Weblogic的RMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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