You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Sharpe <pa...@miraclefish.com> on 2000/05/12 21:16:19 UTC
Newbie: java.io.IOException: bad path error on XSP example
Hi all,
I have the general examples working on this setup
Cocoon 1.7.3
Apache JServ 1.1
JDK 1.1.8
FreeBSD 3.3-RELEASE #0
but the following example
http://localhost/cocoon/samples/xsp/page.xml?message=Hello%20World!
gives the error
Error found handling the request.
java.io.IOException: bad path error
at java.io.File.getCanonicalPath(File.java)
at org.apache.cocoon.processor.xsp.XSPProcessor.java:302)
at org.apache.cocoon.Engine.handle(Engine.java:303)
at org.apache.cocoon.Cocoon.service(Cocoon.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
The only documented issue I've found was the repository setting. I
have
processor.xsp.repository = /usr/local/cocoon/repository
owned by the Apache user and permissions 0600.
Any expert advice would be appreciated.
paul
--
paul@miraclefish.com
Re: Solved: Newbie: java.io.IOException: bad path error on XSP example
Posted by Leon van Stuivenberg <le...@iae.nl>.
Paul Sharpe wrote:
>
> processor.xsp.repository = /usr/local/cocoon/repository
>
> but I'd made /usr/local/cocoon/repository a *directory*. I made it a
Oops, ditto, but Cocoon still ran though. It was the comment in the
properties file itself that made me make it a dir:
# sets the repository where the compiled pages are stored.
# NOTE: make sure the directory is readable.
> Could this answer be re-worded to avoid others making the same mistake?
Yes please, and the config file too?
Leon
Solved: Newbie: java.io.IOException: bad path error on XSP example
Posted by Paul Sharpe <pa...@miraclefish.com>.
My cocoon.properties said
processor.xsp.repository = /usr/local/cocoon/repository
but I'd made /usr/local/cocoon/repository a *directory*. I made it a
directory after reading the answer to the faq "I can't get XSP to
work. What might be wrong?". I see now that it was referring to
permissions of the directory where the repository *file* lives
i.e. /usr/local/cocoon in this example.
Could this answer be re-worded to avoid others making the same mistake?
paul
On Fri, 12 May 2000, Paul Sharpe wrote:
> Hi all,
>
> I have the general examples working on this setup
>
> Cocoon 1.7.3
> Apache JServ 1.1
> JDK 1.1.8
> FreeBSD 3.3-RELEASE #0
>
> but the following example
>
> http://localhost/cocoon/samples/xsp/page.xml?message=Hello%20World!
>
> gives the error
>
> Error found handling the request.
>
> java.io.IOException: bad path error
> at java.io.File.getCanonicalPath(File.java)
> at org.apache.cocoon.processor.xsp.XSPProcessor.java:302)
> at org.apache.cocoon.Engine.handle(Engine.java:303)
> at org.apache.cocoon.Cocoon.service(Cocoon.java:166)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
> at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java)
>
> The only documented issue I've found was the repository setting. I
> have
>
> processor.xsp.repository = /usr/local/cocoon/repository
>
> owned by the Apache user and permissions 0600.
>
> Any expert advice would be appreciated.
>
> paul
>
> --
> paul@miraclefish.com
>
>
>
--
paul@miraclefish.com