这很容易你可以在startWebLogic.sh之前启动一个.bat文件让你的classpath(包含你的jar路径)生效, 然后startWebLogic.sh
或者直接将jar跟在weblogic.properties中的类路径中

解决方案 »

  1.   

    老兄,我在window喔,怎么启动startWeblogic.sh啊,它是启动一个EXE文件,但我不知道它调用那些文件的配置。如果在linux,直接加到startWeblogic.sh里就可以。
      

  2.   

    本人的尝试
    在weblogic目录下
    编辑setenv.cmd
    在它的classpath下加入你自己的.jar
    再运行它。不过我加了之后还是不能调用包含自己的.jar的javabean
      

  3.   

    问题解决拉,直接将jar跟在weblogic.properties中的类路径中,加分我一定给,等着!哈哈
    #
    # Servlet reload properties
    # ------------------------------------------------
    # Put servlets and classes they depend on below this directory to take
    # advantage of dynamic reloading. (WebLogic classes don't belong
    # here, and NO directories can be both in your system/environment
    # CLASSPATH and in the servlet classpath.) WebLogic checks for modified
    # servlets every reloadCheckSecs and reloads servlets and classes they
    # depend on as needed. If reloadCheckSecs is set to -1, classes will
    # never be reloaded.
    #weblogic.httpd.servlet.classpath=@WEBLOGIC_HOME/myserver/servletclasses
    weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses;E:/JDeveloper3.1/xerces-1_3_0/xerces.jar;D:/weblogic/cocoon/cocoon.jar;D:/weblogic/cocoon/xalan_1_0_1.jar;D:/weblogic/cocoon/fop_0_12_1.jar;D:/weblogic/cocoon/ant.jar
    weblogic.httpd.servlet.reloadCheckSecs=1