----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


Hi!

I've installed the servlet engine under my RedHat 6.1 Apache
installation and the servlet engine is working perfect, but....

I've also installed Cocoon and tried to associcate .xml with
org.apache.cocoon.Cocoon via ApjServAction but it seems that Apache
ignores this fact :(

In my jserv.conf the following line should imply that i want cocoon to
handle xml files....

ApJServAction .xml /servlet/org.apache.cocoon.Cocoon

but when i try to access an xml file, eg.
http://localhost/cocoonsamples/index.xml i just get the pure xml file
and the Cocoon servlet haven't even been loaded.

I can start cocoon via http://localhost/servlet/org.apache.cocoon.Cocoon
but the only output i get here is a error message with the following
contents(dynmically generated via cocoon):

<error snip from cocoon>
Cocoon 1.6
File not found.

           java.io.FileNotFoundException:
/home/httpd/html/servlet/org.apache.cocoon.Cocoon (No such file or
directory)
                     at java.io.FileInputStream.open(Native Method)
                     at java.io.FileInputStream.(FileInputStream.java,
Compiled Code)
                     at java.io.FileInputStream.(FileInputStream.java,
Compiled Code)
                     at
org.apache.cocoon.producer.ProducerFromFile.getStream(ProducerFromFile.java:77)
                     at
org.apache.cocoon.producer.AbstractProducer.getDocument(AbstractProducer.java:95)
                     at org.apache.cocoon.Engine.handle(Engine.java:271)
                     at
org.apache.cocoon.Cocoon.service(Cocoon.java:145)
                     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
                     at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
                     at
org.apache.jserv.JServConnection.run(JServConnection.java, Compiled
Code)
                     at java.lang.Thread.run(Thread.java, Compiled Code)
</enderrorsnip>

If try to access http://localhost/Cocoon.xml which is listed in the
installation doc as a virtual page that contains some info the following
is written to the apache logs:

==> access_log <==
127.0.0.1 - - [24/Jan/2000:15:17:34 +0100] "GET /Cocoon.xml HTTP/1.0"
404 204

==> error_log <==
[Mon Jan 24 15:17:34 2000] [error] [client 127.0.0.1] File does not
exist: /home/httpd/html/Cocoon.xml

and the return from the server is just a standard "Not Found"
message.....

Does anyone have any ideas whats wrong ? :(

With hope
 Max


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to