当前位置: 代码迷 >> Web前端 >> 摘引weblogic10的weblogic.jar
  详细解决方案

摘引weblogic10的weblogic.jar

热度:142   发布时间:2012-09-05 15:19:34.0
引用weblogic10的weblogic.jar
weblogic10及以后的版本,不能直接使用server/lib目录下的weblogic.jar,需要手动生成一个wlfullclient.jar替代weblogic.jar

操作步骤如下:
----------------------

Caused by: java.lang.NoClassDefFoundError: weblogic/utils/classloaders/GenericCl

Creating a wlfullclient.jar File for a Client Application
Use the following steps to create a wlfullclient.jar file for a client application:
Change directories to the server/lib directory.
cd WL_HOME
/server/lib
Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar ../../../modules/com.bea.core.jarbuilder_1.0.0.0.jar
You can now copy and bundle the wlfullclient.jar with client applications.
Add the wlfullclient.jar to the client application's classpath .

注意:
    java -jar ../../../modules/com.bea.core.jarbuilder_1.0.0.0.jar
    这句命令引用的com.bea.core.jarbuilder_1.0.0.0.jar,实际版本可能不是com.bea.core.jarbuilder_1.0.0.0.jar,请查看bea\modules目录下的实际jar包名称修改该命令