Olá pessoal, estou com um erro muito estranho. Pelos meus testes cheguei (não sei se estou certo) a seguinte conclusão: alguns recursos estão sendo filtrados pelo tamanho. Fiz uma aplicação teste, contendo 3 arquivos, sendo 1 de 20KB outro de 11KB e outro de 70KB. Consigo acessar pelo browser os dois de tamanho menor, no entanto quando tento o de 70KB acontece a seguinte exceção:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: org.apache.naming.resources.ResourceAttributes.getCanonicalPath()Ljava/lang/String;
org.apache.catalina.servlets.DefaultServlet.checkSendfile(DefaultServlet.java:1530)
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:843)
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:354)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
Apache Tomcat/5.5.20
Já testei com o mesmo tomcat no Windows e funcionou. Porém, acontece o erro no Tomcat da base de produção. Creio eu, portanto ser um problema de configuração.