Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
That is exactly the line I am referring to. Simply replacing the call to res.setStatus with res.sendError would definitely be wrong due to what you described. That change is not what I am suggesting. It is simply what I did for a quick test. I was thinking it would be worth it to add a flag as a s

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Konstantin Kolinko
2015-03-16 21:52 GMT+03:00 Jacob Haverkost : > Version: 6.0.43 > OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work fine > > This appears to be due to the line, res.setStatus(404);, inside of doGet()

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jacob, On 3/16/15 2:52 PM, Jacob Haverkost wrote: > Version: 6.0.43 OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work > fine > > This appears to

Re: CGIServlet - php

2011-09-04 Thread throwsCode
Thanks Mark: If I'm reading this right you did in a couple hours what I have been working on for eight days. FM! Retracing my steps is proving difficult, so many paths taken and abandoned. Thanks for demonstrating one definitive solution. TC -- View this message in context: http://old.nabbl

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message - > From: throwsCode > To: users@tomcat.apache.org > Cc: > Sent: Saturday, September 3, 2011 5:13 PM > Subject: Re: CGIServlet - php > > > Terence, Ken, Mark thanks for all your input.  Much to consider. > > Mark your the first pers

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Terence, Ken, Mark thanks for all your input. Much to consider. Mark your the first person who replied who sounds like they have actually run php and tomcat. Despite your concerns, this gives me the confidence that i can get it running with all this help. Perhaps I'm wrong but I don't think at

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message Edited - > From: Mark Eggers > To: Tomcat Users List > Cc: > Sent: Saturday, September 3, 2011 3:53 PM > Subject: Re: CGIServlet - php > > C. Configure web.xml > > I put everything into my web application's web.xml since I didn'

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message - > From: throwsCode > To: users@tomcat.apache.org > Cc: > Sent: Saturday, September 3, 2011 11:44 AM > Subject: Re: CGIServlet - php > > > Wow thanks Konstantin a lot of good questions and suggestions.  Please give > me some time to put

Re: CGIServlet - php

2011-09-03 Thread Ken Bowen
Even if you don't want to run in Resin, studying (open source) Quercus should give you the details/direction you want: http://www.caucho.com/resin-3.0/quercus/ --Ken On Sep 3, 2011, at 3:16 PM, Terence M. Bandoian wrote: > On 1:59 PM, Konstantin Kolinko wrote: >> 2011/9/3 throwsCode: >> I do

Re: CGIServlet - php

2011-09-03 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2011/9/3 throwsCode: I do not quite understand you. I'm trying to implement PHP on tomcat 7.0.20 with no luck. Does anyone know how I can tell whether the CGIServlet is running? I uncommented all of the sections indicated in the Tomcat document. What se

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Wow thanks Konstantin a lot of good questions and suggestions. Please give me some time to put together a cogent reply. I have looked at hundreds of documents and thousands of Internet pages so it will take me some time to filter the ones that I thought applied and actually tried. With regard t

Re: CGIServlet - php

2011-09-03 Thread Konstantin Kolinko
2011/9/3 throwsCode : > I do not quite understand you. > I'm trying to implement PHP on tomcat 7.0.20 with no luck.  Does anyone know > how I can tell whether the CGIServlet is running? > > I uncommented all of the sections indicated in the Tomcat document. What sections? What document did you

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Thanks Hassan: I could use all the luck I can get. I was on NetBeans a couple years back but had to bail when they pretty much abandoned web developers. Oracle put the nail in the coffin but it all began with the killing of Woodstock and the Visual Development Environment and that is on Sun.

Re: CGIServlet - php

2011-09-02 Thread Hassan Schroeder
On Fri, Sep 2, 2011 at 9:25 PM, throwsCode wrote: > I am predominantly a JSF/Facelets/IceFaces developer but recently I have > been asked to assist some non-profits which calls for php. Yeah, that's similar to how I got sucked into doing PHP too :-) (Fool me once, shame on me yadda yadda...) >

Re: CGIServlet - php

2011-09-02 Thread throwsCode
Hi Hassan: I am predominantly a JSF/Facelets/IceFaces developer but recently I have been asked to assist some non-profits which calls for php. I would like to use my existing development environment which is Eclipse and Tomcat. If I can discover the secrets to php in Tomcat that would be the be

Re: CGIServlet - php

2011-09-02 Thread Hassan Schroeder
On Fri, Sep 2, 2011 at 5:06 PM, throwsCode wrote: > I'm trying to implement PHP on tomcat 7.0.20 Dear god, why? I would rather duct-tape rabid weasels inside my shorts than do, well, anything with PHP again, but if you must -- just use Apache HTTPD. Seriously. -- Hassan Schroeder ---

Re: CGIServlet - php

2011-09-02 Thread throwsCode
Hi all: An update I entered the following directly into my browser: http://localhost:8080/secondDynamicWeb/cgi-bin/echoInfo.php And got the a 404 Error - Servlet CGI not available. >From this it appears that the servlet is not available but has been defined because the URL pattern /cg

RE: CGIServlet followed by a Filter that modifies the response

2010-07-26 Thread Caldarale, Charles R
> From: Anthony Brew [mailto:atb...@gmail.com] > Subject: Re: CGIServlet followed by a Filter that modifies the response > > > Unfortunately I am coming across the following: > > > > java.lang.IllegalStateException: getWriter() has already > > been called for thi

Re: CGIServlet followed by a Filter that modifies the response

2010-07-25 Thread Anthony Brew
> I had hoped to use a CGIServlet to do some stuff for me and then modify the > response on the fly on the way back with a > > like this: > > > mod > com.util.web.PageFilter > > > > mod > cgi > > > cgi > > org.apache.catalina.servlets.CG

Re: CGIServlet in Tomcat 6

2008-09-10 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User In order to add privileged="true" property simply edit $CATALINA_HOME/conf/context.xml replace tag by In Response To: Hi all, I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat 6 I get

Re: CGIServlet in Tomcat 6

2008-08-13 Thread Konstantin Kolinko
2008/8/13 Mark Thomas <[EMAIL PROTECTED]>: > > The privileged attribute needs to be set on the context. > In your own web application create a file, META-INF/context.xml, with the following content: See the manager application for an example. Then redeploy your application, and it should work

Re: CGIServlet in Tomcat 6

2008-08-13 Thread Mark Thomas
Martin Gainty wrote: grant tomcat access to CGIServlet.jar edit $TOMCAT_HOME/conf/catalina.policy grant codeBase "file:${catalina.home}/webapps/YourWebApp/WEB-INF/lib/CGIServlet.jar" { permission java.security.AllPermission; }; HTH That won't help at all. The CGIServlet bypasses the s

RE: CGIServlet in Tomcat 6

2008-08-13 Thread Martin Gainty
contained within this transmission. > Date: Tue, 12 Aug 2008 14:32:50 -0500 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: CGIServlet in Tomcat 6 > > See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf > of a User > > Add

Re: CGIServlet in Tomcat 6

2008-08-12 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User Add it where exactly? In $CATALINA_HOME/conf/context.xml? In $CATALINA_HOME/conf/server.xml? Please provide the exact path and a snippet of the code... In Response To: Hi all, I'm using CGI servlet in

Re: CGIServlet in Tomcat 6

2008-03-14 Thread rachmat
> See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on > behalf of a User > > Sorry for a kind of a necropost, but is't enough to add privileged="true" > to the root tag of main context.xml which is in > $CATALINA_HOME/conf/context.xml > > In Response To: > > Hi all, > > I'm using C

Re: CGIServlet in Tomcat 6

2008-03-13 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User Sorry for a kind of a necropost, but is't enough to add privileged="true" to the root tag of main context.xml which is in $CATALINA_HOME/conf/context.xml In Response To: Hi all, I'm using CGI servlet in Tom

Re: CGIServlet

2007-07-02 Thread Robert J. Carr
Both. You've made the incorrect assumption that "made visible" means "made visible to web applications", which is incorrect. A classloader makes classes and resources visible to whoever has access to the classloader; webapps do not have access to the Catalina classloader. ... Tomcat is the o

RE: CGIServlet

2007-07-01 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Subject: RE: CGIServlet > > > So, in summary, you're saying the only way I can get CGIServlet > > defined in a single webapp is to leave servlets-cgi.jar in > > /server/lib and require an administrator

RE: CGIServlet

2007-07-01 Thread Caldarale, Charles R
> From: Robert J. Carr [mailto:[EMAIL PROTECTED] > Subject: Re: CGIServlet > > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html > > So I'm not following, are the resources "TOTALLY invisible to web > applications" or are they "made

Re: CGIServlet

2007-06-30 Thread Robert J. Carr
Thanks for the quick reply, I don't believe I've tried that, but it isn't the complete solution I was looking for. Remember, tomcat (5.5) is shipped with the CGIServlet jar in a package named /server/lib/servlets-cgi.renametojar. Using your solution would remove the servlet setup from the global

Re: CGIServlet

2007-06-30 Thread Mark Thomas
Robert J. Carr wrote: > To do this, I simply put the servlet definitions into my own web.xml, > and then put the servlets-cgi.jar into my own lib. When doing this, I > get a ClassNotFound exception on CGIServlet. Try just putting the definition in your web.xml and leave the jar where it is. Mark

Re: CGIServlet in Tomcat 6

2007-01-23 Thread Yannick Haudry
ok, now it works ! thanks for your answer Martin Yannick On 1/23/07, Martin Dubuc <[EMAIL PROTECTED]> wrote: Not sure if this is all that is required, but in the Context section of the webapp context.xml file, you need to add privileged=true property. Martin On 1/23/07, Yannick Haudry <[EMAIL

Re: CGIServlet in Tomcat 6

2007-01-23 Thread Martin Dubuc
Not sure if this is all that is required, but in the Context section of the webapp context.xml file, you need to add privileged=true property. Martin On 1/23/07, Yannick Haudry <[EMAIL PROTECTED]> wrote: Hi all, I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat 6 I get thi