Christopher, Here is the stack trace of the FileNotFoundException: java.io.FileNotFoundException: /home/me/mountDir/fichi��.txt (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at SambaMountServletTest.doGet(SambaMountServletTest.java:102) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Note that last week, I also try to set the fileEncoding init parameter to UTF-8 ( in the default servlet in my conf/web.xml) without positive results. Thanks, Sylvie. Christopher Schultz a écrit : -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sylvie,On 9/18/2009 8:35 AM, Sylvie Perrin wrote:So, I change this property in the servlet test, by adding JAVA_OPTS=-Dsun.jnu.encoding=UTF-8[snip]But my issue is still here, ie. the FileNotFoundException.I wonder if it has nothing to do with the encoding. Can you post the entire stack trace of the exception, including any "caused by" clauses? There are other reasons to get FileNotFoundException... - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqzrm0ACgkQ9CaO5/Lv0PBWqQCfXdeshqIZBpA6zPgj0T4Rxo/9 SoMAn0FMDbGWlwmqT+T79NvtGIv+i3f0 =Dnsy -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --
T : +33.4.77.23.78.12 ![]() |
- Create FileInputStream in servlet from remote file wit... Sylvie Perrin
- Re: Create FileInputStream in servlet from remote... Christopher Schultz
- Re: Create FileInputStream in servlet from re... André Warnier
- Re: Create FileInputStream in servlet from re... Sylvie Perrin
- Re: Create FileInputStream in servlet fro... Christopher Schultz
- Re: Create FileInputStream in servlet... Sylvie Perrin
- Re: Create FileInputStream in se... André Warnier
- Re: Create FileInputStream i... Sylvie Perrin
- Re: Create FileInputStre... ramzi khlil
- Re: Create FileInputStre... André Warnier
- Re: Create FileInputStream i... Christopher Schultz
- Re: Create FileInputStre... André Warnier
- Re: Create FileInputStre... Sylvie Perrin
- Re: Create FileInputStre... André Warnier
- Re: Create FileInputStre... Sylvie Perrin
- Re: Create FileInputStre... Christopher Schultz