I think you have run into
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24478 

Sorry - this was entirely my fault and has since been fixed. To get around this
you can take the servlets-cgi.jar from an earlier/later release if you don't
want to upgrade your entire server.

Again, please accept my apologies.

Mark

> -----Original Message-----
> From: Mark Claassen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 08, 2004 3:17 PM
> To: 'Tomcat Users List'
> Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29)
> 
> Thanks for the reply.  We have the debug set to 6 already.  
> We found that it
> almost seems to alternate with the following error.  The 
> script is there,
> accessible, and executable by the user tomcat is running as.  
> We are not
> using a security manager.  One puzzling thing is that the 
> following path has
> two sets of quotes, but I was thinking that was just an error 
> in the log
> message.  We altered the program so that the first line of the program
> touches a file so we can see if it ran at all.  It does not, 
> and we get
> either the "No such file" error or the "Broken Pipe" one.  
> Perhaps, though,
> the quotations are the crux of it all.
> 
> In the localhost log we have:
> 2004-11-08 10:06:13 cgi: findCGI:
> currentLoc=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi
> 2004-11-08 10:06:13 cgi: findCGI:
> currentLoc=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi
> 2004-11-08 10:06:13 cgi: findCGI: FOUND cgi at
> /opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl
> 2004-11-08 10:06:13 cgi: findCGI calc: name=MRlogin.pl,
> path=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl,
> scriptname=/MRcgi/MRlogin.pl, cginame=/MRlogin.pl
> 2004-11-08 10:06:13 cgi: runCGI(envp= ...
> 2004-11-08 10:06:13 cgi: runCGI (stderr):Can't open perl script
> ""/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl"
": No such
> file or directory 2004-11-08 10:06:13 cgi: runCGI: 1 lines received on
> stderr
> 
> > -----Original Message-----
> > From: Phillip Qin [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, November 05, 2004 5:20 PM
> > To: 'Tomcat Users List'
> > Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29)
> > 
> > 
> > Enable cgiservlet log (I usually set debug to 6) and see 
> > what's output in the log (very detail).
> > 
> > -----Original Message-----
> > From: Mark Claassen [mailto:[EMAIL PROTECTED] 
> > Sent: November 5, 2004 5:07 PM
> > To: 'Tomcat Users List'
> > Subject: CGI ...yeah, I know (Tomcat 4.1.29)
> > 
> > 
> > I know that Tomcat is not an ideal CGI server, but I am 
> > having real trouble getting it to work at all.  Most often I 
> > get the Exception below, and it doesn't seem to be running 
> > our perl program at all.  (We can run the perl program by 
> > hand though).  We had a bit of trouble getting it setup in 
> > the first place, and we got errors way different from this.  
> > I figured that since we were getting this, we must have 
> > everything else setup correctly.
> > 
> > Looking at the 4.1.27 source this is:
> > 1686:     commandsStdIn.flush();
> >           commandsStdIn.close();
> > commandsStdIn is the output stream to the process.
> > 
> > Anyone have any ideas on where to start looking?
> > 
> > Thanks,
> > Mark
> > 
> > java.io.IOException: Broken pipe
> >         at java.io.FileOutputStream.writeBytes(Native Method)
> >         at java.io.FileOutputStream.write(FileOutputStream.java:257)
> >         at
> > 
> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69)
> >         at 
> > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
> >         at 
> > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:128)
> >         at
> > org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServl
> > et.java:1686)
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > !DSPAM:418bf9fd252211451334454!
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to