Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 77848 invoked from network); 11 Jan 2000 15:12:04 -0000 Received: from dnai-207-181-246-130.cust.dnai.com (HELO tamalpias.idsworld.net) (root@207.181.246.130) by 63.211.145.10 with SMTP; 11 Jan 2000 15:12:04 -0000 Received: from thorin ([192.168.123.20]) by tamalpias.idsworld.net (8.9.3/8.8.7) with SMTP id HAA32496 for ; Tue, 11 Jan 2000 07:14:07 -0800 Received: by localhost with Microsoft MAPI; Tue, 11 Jan 2000 07:10:16 -0800 Message-ID: <01BF5C02.E93C5B00.tfleming@idsworld.net> From: Tim Fleming To: "'cocoon-dev@xml.apache.org'" Subject: RE: Cocoon 1.5 distribution and Tomcat Date: Mon, 10 Jan 2000 16:54:23 -0800 Organization: Integrated Data Solutions, Inc. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This comes up about ever other week. You need to compile the latest Cocoon and Tomcat from CVS. Cocoon 1.5 will not work with Tomcat 3.0. -----Original Message----- From: Doug Serres [SMTP:dserres@kingston.hummingbird.com] Sent: Monday, January 10, 2000 2:00 PM To: cocoon-dev@xml.apache.org Subject: Cocoon 1.5 distribution and Tomcat Can someone help me out with this? I set up tomcat and put cocoon in it (following the installation instructions at http://xml.apache.org/cocoon/install.html). So I have a directory structure with a cocoon directory under the tomcat root. I copied the jars to the tomcat/lib directory and modified the tomcat.bat file to include them in my classpath. I added this to my server.xml file in the tomcat root directory now I try this URL http://dserres:8080/cocoon/example/hello/hello.xml and I get this message. Cocoon 1.5 Error found handling the request. java.io.FileNotFoundException: C:\tomcat\cocoon\org.apache.cocoon.Cocoon (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:68) at java.io.FileInputStream.(FileInputStream.java:99) at org.apache.cocoon.producer.FileProducer.getStream(FileProducer.jav a:77) at org.apache.cocoon.producer.AbstractProducer.getDocument(AbstractPr oducer.java:81) at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java:144) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrap per.java:626) at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrap per.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper .java:378) at org.apache.tomcat.core.Context.handleRequest(Context.java:644) at org.apache.tomcat.core.ContextManager.service(ContextManager.java: 440) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnec tion(HttpConnectionHandler.java:144) at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java :304) at java.lang.Thread.run(Thread.java:479) Warning: this page has been dynamically generated. Now I've been told that, "... one possibility is that the servlet itself is not really compatible with the 2.2 specification." The writer of this comment went on to say that he saw something similar, "... with several servlets including ones from GNU. They typically use GetResource() or GetResourceAsStream() which is good in principal but doesn't work the same way under 2.2 and it did under 2.1. Paths like "cocoon/cocoon" are a symptom of this. Servlets that use getServletPath() and getRealPath() seem to survive the transition better, even though those are "cruder" APIs (e.g. assume everything is a file in a directory)." Could this be the same issue? Is there something I'm missing in my set up? (Probably!) -- Thanks Doug Serres, Intermediate Developer - R&D Data Integration & Reporting Solutions, Hummingbird Communications Ltd. (http://www.hummingbird.com) ----- The measure of success is not whether you have a tough problem to deal with, but whether it's the same problem you had last year. --John Foster Dulles (http://www.franklincovey.com/specials/quote.html) << File: ATT00010.htm >>