2 Replies Latest reply on Nov 25, 2008 2:38 PM by Rodrigo A B Freire

    Shared lib failure: org.apache.jasper.JasperException

    Rodrigo A B Freire Newbie


      When using the displaytag feature from an in-house built .war, the server yields exception:

      16:24:46,181 ERROR [HibernateSessionFilter] Hibernate Session Filter runtime error. The absolute uri: http://displaytag.sf.net cannot be rolved in either web.xml or the jar files deployed with this application
      org.apache.jasper.JasperException: The absolute uri: http://displaytag.sf.net cannot be resolved in either web.xml or the jar files deployed with this application

      The clues:

      * It worked with tomcat 5.5; the displaytag libs were installed at shared/lib (we migrated from Tomcat -> JBoss) ;

      * It does work with our official JBoss [EAP] 4.3.0.GA_CP02 if the lib is packaged inside the application WAR at WEB-INF/lib;
      Our development team highly resists this solution; they allege it worked on Tomcat; they have lots of .war and the maintainability of all of them on new releases of the lib would make their life miserable

      * Throws exception on JBoss if the lib is located at JBOSS_HOME/server/instance/lib, or even $CLASSPATH, JBOSS_HOME/lib or JBOSS_HOME/lib/endorsed (desperate attempt);

      * When the lib is at JBOSS_HOME/server/instance/lib, it *is* recognized, see sysout from boot.log:

      11:50:01,338 DEBUG [RepositoryClassLoader] Added url: file:/usr/local/j2ee/jboss-eap-4.3/jboss-as/server/01/lib/displaytag-1.1.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@3295cfbe{ url=null ,addedOrder=2}
      11:50:00,574 DEBUG [SARDeployer] deployed classes for file:/usr/local/j2ee/jboss-eap-4.3/jboss-as/server/01/lib/displaytag-1.1.jar

      Any hints regarding this issue?

      # cat /etc/issue
      Red Hat Enterprise Linux Server release 5.2 (Tikanga)

      # uname -a
      Linux hostname.blahblah 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

      Java + JBoss:
      16:24:21,639 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)
      16:24:21,825 INFO [ServerInfo] Java version: 1.5.0_15,Sun Microsystems Inc.
      16:24:21,825 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_15-b04,Sun Microsystems Inc.
      16:24:21,825 INFO [ServerInfo] OS-System: Linux 2.6.18-92.1.13.el5,amd64


      Rodrigo A B Freire