I apologize. This question was supposed to be sent to tomcat-user.

>  -----Original Message-----
> From:         Cherie Yoon  
> Sent: Monday, December 11, 2000 6:32 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      path
> 
> Hi,
> 
> I got apache-tomcat working on linux. now i would like to load jsp page
> without having to type the parent folder. i.e. (without making change in
> existing directory structure)
> 
> localhost/myApp/test.jsp -> localhost/test.jsp 
> 
> I made some changes on server.xml and tomcat.conf file (Context path,
> Alias...etc), but it didn't work.  
> for example, i changed the line in tomcat.conf file
> Alias /myApp "/usr/local/jakarta-tomcat-3.2/webapps/myApp"
> to
> Alias / "/usr/local/jakarta-tomcat-3.2/webapps/myApp"
> Then i got error.
> Anybody knows how to do this? 
> 
> thanks in advance,
> cherie
> ------------------------------------------------
> FYI:Error msg:
> Error:500 Internal Servlet Error
> 
> java.lang.NullPointerException: 
>         at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
>         at
> org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
>         at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
>         at
> org.apache.tomcat.facade.ServletContextFacade.getRealPath(ServletContextFa
> cade.java:136)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:381)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> 797)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> on(Ajp12ConnectionHandler.java:166)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:475)
> 
> 

Reply via email to