jstl.jar and standard.jar - Weblogic

This is a discussion on jstl.jar and standard.jar - Weblogic ; I have an application in 9.2, it is deployed as an exploded directory. For= some reason, I have to explicitly add jstl.jar and standard.jar to the web= logic system classpath. I have the jars in the /WEB-INF/lib directory. We= blogic ...

+ Reply to Thread
Results 1 to 5 of 5

jstl.jar and standard.jar

  1. Default jstl.jar and standard.jar

    I have an application in 9.2, it is deployed as an exploded directory. For=
    some reason, I have to explicitly add jstl.jar and standard.jar to the web=
    logic system classpath. I have the jars in the /WEB-INF/lib directory. We=
    blogic is able to find the classes that are in my other jars that are also =
    in that directory. I have a Spring servlet, and on startup, the applicatio=
    n context is able to load and all of my classes and the Spring classes are =
    correctly found.

    However, when I try to hit one of the pages, I get this error:
    java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/rt/core/For=
    EachTag

    I get the feeling that weblogic is correctly parsing through the standard.j=
    ar file and correctly finding the tld inside the META-INF directory in the =
    jar. Otherwise, how would it know that it needs to load the "ForEachTag" c=
    lass? I checked and I made sure that I don't have any .tld files anywhere =
    on the server. I also double checked to make sure that I have the "1.1" ve=
    rsion of both of those jars. I also checked and I made sure that my web.xm=
    l is the correct version: Here is the top of my web.xml file.

    <?xml version=3D"1.0" encoding=3D"UTF-8"?>
    <web-app version=3D"2.4"
    xmlns=3D"http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee http://java.=
    sun.com/xml/ns/j2ee/web-app_2_4.xsd" >


    I also did a test where I explicitly added standard.jar and jstl.jar to the=
    classpath (keeping them in the WEB-INF/lib directory, just adding that pat=
    h to the CLASSPATH) and everything worked.

    Any help would be greatly appreciated. I really don't want to have to modi=
    fy the startup script of my production servers to include those jars on the=
    classpath.

    Thanks, Chris

  2. Default Re: jstl.jar and standard.jar

    Did you try setting "prefer-web-inf-classes" to "true" in your weblogic.xml=
    ?

  3. Default Re: jstl.jar and standard.jar

    Yes, I tried that. No luck. But, unless I am misunderstanding something, =
    that setting only works if weblogic finds more than one version of a class =
    throughout the classpath. I thought that that setting would just tell webl=
    ogic to use the version that it finds in my WEB-INF/lib directory. If this=
    setting were to apply, wouldn't that imply that weblogic is finding some v=
    ersion of this class and I wanted to indicate which one to use. From the e=
    rror message that I get, weblogic can't find this class anywhere.

  4. Default Re: jstl.jar and standard.jar

    Time to file a support case. I'm on empty. Reporting back here for the re=
    solution would be useful.

  5. Default Re: jstl.jar and standard.jar

    will do. thanks for your help.

+ Reply to Thread