RMI from Tomcat to Weblogic

半城伤御伤魂 提交于 2019-12-08 03:57:39

问题


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.

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

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

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

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


回答1:


It worked now. I did the following

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

  2. Added the following packages

    <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>
    



回答2:


step1: java -jar WL_HOME/server/lib/wljarbuilder.jar http://docs.oracle.com/cd/E12840_01/wls/docs103/client/jarbuilder.html

step2: using 7-zip open wlfullclient.jar and then delete javax.el and javax.servlet folders http://blog.csdn.net/weijianiu/article/details/7846482

step3: enjoy



来源:https://stackoverflow.com/questions/19137191/rmi-from-tomcat-to-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!