最近时不时的发生,oc4j读取不到jar档中的class,报java.lang.ClassNotFoundException的错误。
不做任何处理,过段时间又自己好了。
请大家帮忙给给意见,可以从哪些方向追查原因

解决方案 »

  1.   

    OC4J的版本是9.0.4.0.0
    jar档放在/oc4j/j2ee/home/lib目录下application.xml设定读取jar的顺序如下:
    <persistence path="../persistence"/>
        <!-- Path to the libraries that are installed on this server.
         These will accesible for the servlets, EJBs etc -->
        <library path="../applib"/>
        <library path="../lib"/>
        <library path="../../../sqlj/lib"/>
        <library path="../../../rdbms/jlib/xsu12.jar"/>
        <library path="../applications/pis2/pis2_web/WEB-INF/lib" />
        <library path="../../../lib/dsv2.jar"/>
        <!-- Path to the taglib directory that is shared
             among different applications. -->
        <library path="../jsp/lib/taglib"/>
        <!-- Lib for Lcmware Service -->
        <library path="../applications/pis2/pis2_web/WEB-INF/classes" />
        <library path="../applications/pis2/pis2config_web/WEB-INF/classes" />
        <!-- Comment out the jazn element to use principals.
              When both jazn and principals are present jazn is used  -->
        <principals path="./principals.xml"/>
      

  2.   

    OC4J的版本是9.0.4.0.0
    jar档放在/oc4j/j2ee/home/lib目录下application.xml设定读取jar的顺序如下:
    <persistence path="../persistence"/>
        <!-- Path to the libraries that are installed on this server.
         These will accesible for the servlets, EJBs etc -->
        <library path="../applib"/>
        <library path="../lib"/>
        <library path="../../../sqlj/lib"/>
        <library path="../../../rdbms/jlib/xsu12.jar"/>
        <library path="../applications/pis2/pis2_web/WEB-INF/lib" />
        <library path="../../../lib/dsv2.jar"/>
        <!-- Path to the taglib directory that is shared
             among different applications. -->
        <library path="../jsp/lib/taglib"/>
        <!-- Lib for Lcmware Service -->
        <library path="../applications/pis2/pis2_web/WEB-INF/classes" />
        <library path="../applications/pis2/pis2config_web/WEB-INF/classes" />
        <!-- Comment out the jazn element to use principals.
              When both jazn and principals are present jazn is used  -->
        <principals path="./principals.xml"/>
      

  3.   

    1. 你得知道找不到的class位于哪个jar中
    2. 是不是有人在运行过程中更改这个jar
      

  4.   

    这里是lib没有在classpath里检查lib的配置。
      

  5.   

    上边的lib,都带上jar文件的文件名试试。