tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Claassen <...@donnell.com>
Subject RE: CGI ...yeah, I know (Tomcat 4.1.29)
Date Tue, 09 Nov 2004 13:13:43 GMT
Thanks.  I did what you suggested.

I still have one question though,  

How come when I copied the source from 4.1.31 directly into my own class
(with no dependencies) I got ClassNotFound exceptions and it would not run
unless I copied my jar file into shared?  It was the exact same code, just
the package was different.  There were no compile errors, (implying no
package dependency issues the compiler could detect)...  I just don't get
it.  I have code for other things (like valves) in there, and they work
fine.  I understand that webapps don't go here, but core catalina servlets
work fine...as long as the package name doesn't change.

Mark


> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org] 
> Sent: Monday, November 08, 2004 4:33 PM
> To: 'Tomcat Users List'
> Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29)
> 
> 
> 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:mac@donnell.com]
> > 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:Phillip.Qin@shareowner.com]
> > > 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:mac@donnell.com]
> > > 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: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> tomcat-user-help@jakarta.apache.org
> > > 
> > > 
> > > !DSPAM:418bf9fd252211451334454!
> > > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message