1 Reply Latest reply on Jun 28, 2004 7:12 PM by sramkishan

    external static directories under 3.2.4

    Chris Lamprecht Newbie

      I'm looking at http://www.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories and trying what it says there to serve static content, and I'm getting a 404 error message: "The requested resource (/images/) is not available." I have the following line in my section of server.xml:

      <Context docBase="C:/projects/classgrabber/webapp/classgrabber/old/Images" path="/images" />


      I've ensured the directory exists. Has this changed since JBoss 3.2.3/Tomcat 4.1?

      Also, I just looked in my server.log file, and each time I try to request /images with my browser, the following log entry shows up:
      2004-06-25 05:04:57,732 DEBUG [org.jboss.web.tomcat.security.SecurityAssociationValve] Failed to determine servlet
      java.lang.NoSuchMethodError: org.apache.catalina.Container.map(Lorg/apache/catalina/Request;Z)Lorg/apache/catalina/Container;
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:43)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)


      Is this normal? Thanks


        • 1. Re: external static directories under 3.2.4
          sramkishan Newbie

          This seems to have been changed in JBoss-3.2.4/T 5.0.26

          Copy a default web.xml from <JBOSS_HOME>\server\<config-name>\deploy\jbossweb-tomcat50.sar and place it in the <JBOSS_HOME>\server\<config-name>\conf directory and modify your context code in the server.xml to point to that file as follows..

          Context docBase="C:/projects/classgrabber/webapp/classgrabber/old/Images" path="/images" defaultWebXml="${jboss.server.home.dir}/conf/web.xml"/>