Search code examples
weblogicjstljdeveloperweblogic11goracle-adf

Multiple JSTL Versions in Weblogic J2EE App


Thanks in advance for taking a look :)

I'm hard at work on a J2EE web app (in JDeveloper) and recently added some functionality that required JSTL, and I've hit a little bit of a snag. Whenever I try to deploy my war on Weblogic 11g, I get the following error on the console:

[02:05:43 AM] Must choose only one of libraries: JSTL 1.0, JSTL 1.2.

I only have one instance of the JSTL library listed under my WebLogic deployments (1.2.0.1).

Here's what I've tried so far:

  • Google. I've got nothing.
  • Removing all files with the string JSTL in them, in both my Weblogic domain folder and my source folder
  • Removing all temp files stored by Weblogic
  • Rebooting :)

If you have any ideas on ways to squash this, I'd really love to hear them. Thanks!


Solution

  • The problem was that when I added the tags for JSTL in my JSP, JDeveloper suggested that it could automatically add JSTL to my ADF project. Thinking nothing bad could come of this, I let it do its thing and this added an older version of the JSTL to my web.xml file.

    The key (I believe) is that I had to remove the web.xml file from my classes directory entirely or else my version of JDeveloper used the old one with the bad JSTL information.

    After removing the corresponding jars and references to it and doing a clean rebuild I was good to go. Derp.

    Thanks for the help though. :)