Hi Dan,

this error is most probably caused by Cocoon not getting back to the web server. This for example can happen if there is no DNS available on your machine and http://mytestweb.com could not be resolved. But also firewalls or other network configurations might prevent a connection from the Cocoon machine to http://mytestweb.com.

Jörg

On 04.12.2006 00:29, Dan Hertz wrote:
I'm running cocoon with apache/mod_jk for some php stuff.

If I type this in my browser:

http://mytestweb.com/getname.php?name=john

cocoon passes it off to apache (I have a pipeline reader), and returns the following XML:

<?xml version="1.0" encoding="ISO-8859-1"?>
<result>smith</result>

But if I put that url in a cinclude:

<php-text-here>
   <cinclude:include src="http://mytestweb.com/getname.php?name=john"/>
</php-text-here>

I get this error. Why do I get the file not found error, instead of <result>smith</result> inserted into the <php-text-here> element?

I'm scratching my head on this one... Thanks!

== error from log file ==

ERROR (2006-12-03) 18:02.47:533 [sitemap.handled-errors] (/php/getname) TP-Processor8/ErrorHandlerHelper: Failed to process pipeline
java.io.FileNotFoundException: http://mytestweb.com/getname.php?name=john
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1866) at java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:438)
   at java.net.URLConnection.getLastModified(URLConnection.java:526)
at org.apache.excalibur.source.impl.URLSource.getInfos(URLSource.java:164) at org.apache.excalibur.source.impl.AbstractSource.checkInfos(AbstractSource.java:62) at org.apache.excalibur.source.impl.URLSource.getInputStream(URLSource.java:227) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:190) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:158) at org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:556) at org.apache.cocoon.transformation.CIncludeTransformer.startTransformingElement(CIncludeTransformer.java:263) at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:457)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to