Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 87633 invoked from network); 2 Jan 2002 21:03:05 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Jan 2002 21:03:05 -0000 Received: (qmail 22795 invoked by uid 97); 2 Jan 2002 21:02:43 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 22779 invoked by uid 97); 2 Jan 2002 21:02:42 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 22768 invoked from network); 2 Jan 2002 21:02:42 -0000 Message-ID: <00ff01c193d0$fa005150$6b64a8c0@circe> From: "John M. Corro" To: "Tomcat Users List" , References: <3C33703E.4090800@systems.dhl.com> Subject: Re: passing a file to a servlet (fopservlet) file not found error Date: Wed, 2 Jan 2002 15:01:11 -0600 Organization: Cornerstone Consulting, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N When tomcat looks for your FO file, (by default) it looks for it in the bin directory. Either try fully qualifying your fo file name or put a copy of the fo file in your bin directory (/bin). ----- Original Message ----- From: "Chuck Paussa" To: Sent: Wednesday, January 02, 2002 2:40 PM Subject: passing a file to a servlet (fopservlet) file not found error > Hi, total tomcat newbie question: > > I'm trying to pass a file to a servlet (FopServlet). The instructions > say, go to a URL like this: > http://localhost:8080/fop/fop?fo=/pathtofile/test.fo > > Tomcat returns: > > javax.servlet.ServletException: /pathtofile/test.fo (The system cannot find the path specified) > at FopServlet.doGet(FopServlet.java:78) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > The servlet source code has > FileInputStream file = new FileInputStream(foParam); > > I put the test.fo file in every tomcat sub-directory I thought might > work and called it replacing "pathtofile" with every path combination > might work. Still, I get a file not found error. So, there must be > something that I'm not understanding correctly. Why can't my servlet > find the file? I am running tomcat standalone, out of the box. Apache > Tomcat/4.0.1 > > Here is how I configured the system: > > server.xml > > > > > privileged="false"/> > > C:\jakarta-tomcat-4.0.1\webapps\fop\WEB-INF\web.xml > > > > Fop > FopServlet > > > Fop > /fop > > > > Chuck Paussa > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > > -- To unsubscribe: For additional commands: Troubles with the list: