RE: File generator problem (fetch from an URI)
Thank you Steve, and sorry for my beginner's question. But by me: Here the line that start Tomcat in my startup.bat script: call %_TC_BIN_DIR%\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9 which launch the tomcat.bat script with the parameter start. You speak about a java command but it seems it is in the tomcat.bat script. Should I modify the tomcat.bat? I would prefer to modify the startup.bat! But what is the command in this case? I have also tried to add a CATALINA_OPTS environment variable with the value -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't work. Maybe a proxy access problem?!? Thank you very much Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 20:28 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: what do you mean about the java command in the tomcat startup script? I assume you run Tomcat using some startup script (batch file), %CATALINA_HOME%\bin\startup.bat comes with the distribution. That script starts a Java application, where you can set an HTTP proxy using commandline parameters (-Dhttp.proxyPort etc...) They made it easy to add those parameters since you can also store them in an environment variable called CATALINA_OPTS, which is added to the line in the %CATALINA_HOME%\bin\startup.bat that starts Tomcat: %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start OK now? /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File generator problem (fetch from an URI)
[EMAIL PROTECTED] wrote: Thank you Steve, and sorry for my beginner's question. But by me: Here the line that start Tomcat in my startup.bat script: call %_TC_BIN_DIR%\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9 hm - what version of tomcat is that? which launch the tomcat.bat script with the parameter start. You speak about a java command but it seems it is in the tomcat.bat script. there should be - perhaps using some JAVA_CMD variable that is defined in the beginning of your batch script Should I modify the tomcat.bat? I would prefer to modify the startup.bat! But what is the command in this case? I have also tried to add a CATALINA_OPTS environment variable with the value -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't work. Maybe a proxy access problem?!? Have you tried TOMCAT_OPTS? Catalina = Tomcat version 4. /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File generator problem (fetch from an URI)
Ilya A. Kriveshko wrote: 1) I don't believe you should specify the protocol when specifying the proxy host. The protocol is implied by the property that you are setting: http.proxyHost. So, try using -Dhttp.proxyHost=proxy.blabla.com (drop the 'http://' part). Sorry if that was obvious. duh - I must remember to read what I'm replying to :-| nice gotcha - the http:// part must be omitted, of course :-) /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
OK, now it works! I use Tomcat 3.3 and I have to use TOMCAT_OPTS!! I have added an environment variable like: TOMCAT_OPTS = -DproxySet=true -DproxyHost=proxy.swissptt.ch -DproxyPort=8080 and it works. Thank you all of you Sylvain -Message d'origine- De: Ilya A. Kriveshko [mailto:[EMAIL PROTECTED]] Date: mercredi, 9. octobre 2002 14:41 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: Should I modify the tomcat.bat? I would prefer to modify the startup.bat! But what is the command in this case? I have also tried to add a CATALINA_OPTS environment variable with the value -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't work. Maybe a proxy access problem?!? I missed the beginning of this post, but let me give it a try: 1) I don't believe you should specify the protocol when specifying the proxy host. The protocol is implied by the property that you are setting: http.proxyHost. So, try using -Dhttp.proxyHost=proxy.blabla.com (drop the 'http://' part). 2) If you are using Tomcat 4, use CATALINA_OPTS environment variable, if you are using Tomcat 3.x, use TOMCAT_OPTS. One of them should work for you. Sorry if that was obvious. -- Ilya - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File generator problem (fetch from an URI)
Hello, As seen in the Cocoon book from Carsten and Matthew I want to fetch some information from the URI http://linuxtoday.com/backend/biglt.rss; with the File Generator. The sitemap (simplified) looks like: map:match pattern=linuxtoday map:generate src=http://linuxtoday.com/backend/biglt.rss/ map:transform src=portal/styles/rss091.xsl/ map:serialize type=html/ /map:match When I execute the pipeline, the browser returns an error after 1 minute: type: internal-server-error message: Exception during processing of http://p.moreover.com/cgi-local/page?index_health+rss description: org.apache.cocoon.ProcessingException: Exception during processing of http://p.moreover.com/cgi-local/page?index_health+rss: java.net.ConnectException: Operation timed out: connect sender: org.apache.cocoon.servlet.CocoonServlet source: Cocoon servlet I run Cocoon in my machine and it is behind a firewall. I use a proxy server to connect to internet. Is it a connection problem? Anyone had the same problem? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File generator problem (fetch from an URI)
[EMAIL PROTECTED] wrote: I run Cocoon in my machine and it is behind a firewall. I use a proxy server to connect to internet. Is it a connection problem? Yup - you should set -Dhttp.proxyHost and http.proxyPort in your Tomcat startup script http://java.sun.com/docs/books/tutorial/networking/urls/_setProxy.html see Firewall problems on http://jakarta.apache.org/jetspeed/site/faq.html /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
I have add this line: set -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 to the startup script, just before the tomcat start. But it doesn't work. Are there anything else to configure? Thank you Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 16:24 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: I run Cocoon in my machine and it is behind a firewall. I use a proxy server to connect to internet. Is it a connection problem? Yup - you should set -Dhttp.proxyHost and http.proxyPort in your Tomcat startup script http://java.sun.com/docs/books/tutorial/networking/urls/_setProxy.html see Firewall problems on http://jakarta.apache.org/jetspeed/site/faq.html /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File generator problem (fetch from an URI)
[EMAIL PROTECTED] wrote: I have add this line: set -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 to the startup script, just before the tomcat start. But it doesn't work. Are there anything else to configure? you should add those as arguments to the java command in your tomcat startup script, or as a CATALINA_OPTS/TOMCAT_OPTS environment variable set CATALINA_OPTS=-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
what do you mean about the java command in the tomcat startup script? Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 17:13 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: I have add this line: set -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 to the startup script, just before the tomcat start. But it doesn't work. Are there anything else to configure? you should add those as arguments to the java command in your tomcat startup script, or as a CATALINA_OPTS/TOMCAT_OPTS environment variable set CATALINA_OPTS=-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File generator problem (fetch from an URI)
[EMAIL PROTECTED] wrote: what do you mean about the java command in the tomcat startup script? I assume you run Tomcat using some startup script (batch file), %CATALINA_HOME%\bin\startup.bat comes with the distribution. That script starts a Java application, where you can set an HTTP proxy using commandline parameters (-Dhttp.proxyPort etc...) They made it easy to add those parameters since you can also store them in an environment variable called CATALINA_OPTS, which is added to the line in the %CATALINA_HOME%\bin\startup.bat that starts Tomcat: %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start OK now? /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]