2 Replies Latest reply on May 12, 2006 3:13 AM by ryandavid

    Sharing Libraries on Tomcat embedded

    ryandavid

      Hello,
      I am using JBoss 3.2.3 AS with Tomcat embedded version.
      Because I have many Web Applications to deploy and all of them use Struts,
      I would like to place struts jar files in a single location.

      So I read the Struts User's Guide

      http://struts.apache.org/userGuide/configuration.html#dd_config_taglib_23

      As it's described in 5.4.3.1 section I configured my Web Applications to use
      tag libraries as for Servlet 2.3/2.4, referencing in my code only the full uri.

      <%@ taglib
      uri="http://struts.apache.org/tags-html"
      prefix="html" %>

      Then, following 5.5 section, I tried to place struts.jar in a shared place (removing it from WEB-INF/lib directory). On that section it's described the way for Tomcat standalone, but not for embedded version.
      So I tried putting struts.jar into jbossweb-tomcat41.sar directory, then into default/lib, and finally into deploy.
      In all cases, when I access to the Web Application I get this exception:

      This absolute uri (http://struts.apache.org/tags-tiles) cannot be resolved in either web.xml or the jar files deployed with this application

      Have you some idea ?

      Thanks in advance
      Bye

      P.S. In jboss-service.xml I have this cfg:

      Java2ClassLoadingCompliance = true
      UseJBossWebLoader = true