By default, the Tomcat 5 for Windows installation installs to C:\Program Files\Apache Software Foundation\Tomcat 5.0, so by default, the installation path includes spaces.
Derek -----Original Message----- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: October 8, 2003 11:16 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.12, Windows, and file pathnames Not sure of the exact problem or why 5.0.9 works but 5.0.12 doesn't. However, I would recommend that you not install Tomcat to a path containing spaces. You are just asking for trouble. Also, why are resources in the classpath being modified? If you want to modify resources, you should have those resources under "WEB-INF/wikifiles" or something like that, not WEB-INF/classes. Better yet, define an context param which the deployer can override in a context configuration file which points to location outside the webapp to write files to. Doing this will keep you in-line with the servlet-spec and best practices. Jake At 11:00 AM 10/8/2003 -0400, you wrote: >Is it the responsibility of Tomcat, the application running on Tomcat, >or Java to translate or resolve Windows file paths? If it is Tomcat, >does Tomcat 5.0.12 translate or resolve these pathnames correctly? >VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki >engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, >on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its >property file, even though this file exists and is both readable and >writable. VQWiki generates the following report page: > >The error had the following >message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\ >w >ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find >the path specified) > >Tomcat's localhost_log reports the following exception: > >2003-10-08 10:46:43 Admin: Error in class >vqwiki.servlets.AdministrationServlet >vqwiki.servlets.WikiServletException: >C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ >v >qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path >specified) >Type: -1, >C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ v >qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path >specified) > at >vqwiki.servlets.AdministrationServlet.doPost(AdministrationServlet.java : >222) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a >tionFilterChain.java:284) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t >erChain.java:204) > at >org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat c >her.java:742) > at >org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati o >nDispatcher.java:506) > at >org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis p >atcher.java:443) > at >org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa t >cher.java:359) > at vqwiki.servlets.VQWikiServlet.dispatch(VQWikiServlet.java:39) > at vqwiki.servlets.WikiServlet.doPost(WikiServlet.java:375) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a >tionFilterChain.java:284) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t >erChain.java:204) > at >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v >e.java:256) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:151) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 >63) > at >org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo n >textValve.java:245) > at >org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v >e.java:199) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:151) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 >63) > at >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a >:195) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:151) > at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a >:164) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:149) > at >org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 8 >) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:149) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 >63) > at >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve . >java:156) > at >org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o >ntext.java:151) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 >63) > at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) > at >org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) > at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6 7 >0) > at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process C >onnection(Http11Protocol.java:517) > at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 7 >5) > at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l >.java:666) > at java.lang.Thread.run(Unknown Source) > >Does Tomcat not like Windows pathnames? Is it choking on the spaces? > >Derek > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]