0 Replies Latest reply on Jun 4, 2007 5:20 PM by Oskar Carlstedt

    War inside ear, where to place taglib jars?

    Oskar Carlstedt Novice

      Hi all!

      I've been struggling a lot with a problem I didn't expect do face at all. What I try to do is to create a web application using Servlet 2.4, JSTL and Spring. This is OK in Tomcat. But creating an ear file and place all dependent jar in the ear instead of the war will make JBoss (read Tomcat) to crash and tell me that it cannot find the JSTL code in any jar. But all necessary jars are in the ear, the jboss-app.xml defines a new repository loader. It works because Spring finds and loads the spring beans xml file. Everyting seems to be alright, except when running JSPs containing taglib references. Tomcat says it cannot find implementing taglib.

      The solution I found was to put all taglib jars in the war's WEB-INF/lib folder. But shall it be this way? What if I want to use Spring, JSTL etc. in other war/jar files. In such case, do I have to duplicate these jars?

      I would be very glad if someone can help me find a solution where Tomcat can find all jars inside the ear, even those containing taglib implementations.

      With kind regards
      Oskar