Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
how to make files in a context 's subdirectory be accessible?

how to make files in a context 's subdirectory be accessible?

2003-10-16       - By Vince Law

 Back
Hi All,

Hope some of you can help me with this question.   I mapped a web-app or
context "test" to a physical path by creating a xml file "test.xml" and
putting it in the CATALINA_HOME/conf/Catalina/localhost directory.  The
text.xml contains the following:

==========
       <Context className="org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext"
displayName="Testing Application" backgroundProcessorDelay="-1"
privileged="false" debug="0"
charsetMapperClass="org.apache.catalina.util.CharsetMapper Source code of org.apache.catalina.util.CharsetMapper"
wrapperClass="org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper"
engineName="Catalina" cookies="true" crossContext="false"
docBase="E:\Temp\tomcat\build\test" lazy="true" path="/test"
startupTime="150" useNaming="true" cachingAllowed="true" j2EEServer="none"
j2EEApplication="none" domain="Catalina" swallowOutput="false"
reloadable="false" tldScanTime="0"
configFile="E:\jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.7\conf\Catalina\lrn\test.xml">
         <Logger className="org.apache.catalina.logger.FileLogger"
debug="0" verbosity="1" prefix="lrn_test_log." directory="logs"
timestamp="true" suffix=".txt"/>
       </Context>
==========

In the physical path "E:\Temp\tomcat\build\test", I created a subdirectory
"testsub", and put a file "index.jsp" there.

When I tried to access the file:
http://localhost:8080/test/testsub/index.jsp, I got an java exception
"java.lang.NoSuchMethodError Source code of java.lang.NoSuchMethodError" (please see the full stack trace below).  My
question is, how can I configure TomCat so that t files in the context's
subdirectory can be accessible without any error?

Thank you so much in advance!

Sincerely,
Vince


Error's stack Trace:
===================
javax.servlet.ServletException Source code of javax.servlet.ServletException
  at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:248)
  at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:856)
root cause
java.lang.NoSuchMethodError Source code of java.lang.NoSuchMethodError
  at
org.apache.jasper.compiler.JspUtil Source code of org.apache.jasper.compiler.JspUtil(JspUtil.java:948)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilation
Context.java:403)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilation
Context.java:393)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContex
t.java:605)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContext.j
ava:227)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationConte
xt.java:475)
  at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:514)
  at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:484)
  at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContext.java:5
53)
  at
org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper.java:3
00)
  at
org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:293)
  at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:240)
  at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:856)
=========


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.