Multiple JSTL Versions in Weblogic J2EE Application

Thanks in advance for watching :)

I am working on a J2EE web application (in JDeveloper) and recently added some features that require JSTL and I hit a bit. Whenever I try to deploy my war on Weblogic 11g, I get the following error on the console:

[02:05:43 AM] Only one of the libraries needs to be selected: JSTL 1.0, JSTL 1.2.

I have only one JSTL library instance specified in my WebLogic deployments (1.2.0.1).

Here is what I have tried so far:

  • Google I have nothing.
  • Removing all files with a JSTL line in them, both in my Weblogic domain folder and in my source folder
  • Delete all temp files stored in Weblogic
  • Reboot :)

If you have any ideas on how to crush this, I would love to hear them. Thanks!

+4
source share
2 answers

The problem was that when I added tags for JSTL in my JSP, JDeveloper suggested that it could automatically add JSTL to my ADF project. There could be nothing wrong with that, I let it do this and it added an older version of JSTL to my web.xml file.

The key (I believe) is that I had to completely remove the web.xml file from the class directory, otherwise my version of JDeveloper used the old one with bad JSTL information.

After removing the corresponding cans and references to it and performing a clean overhaul, I was fine. Derp.

Thanks for the help.:)

+3
source

The JSTL library is available as a deployable library in Weblogic 11g (v10.3.1). If it is not already deployed, you will have to deploy it in the Weblogic domain before any application can link to it.

After deployment, the application can reference the deployed JSTL library through the library link in weblogic.xml - after deployment, JSTL is available as a shared library.

Keep in mind that using a different version of JSTL will require a much more difficult solution, especially if you have deployed the JSTL library that comes with Weblogic.

+2
source

All Articles