VFS Exception:Could not list the contents of "/pages" because it is not a folder

"Duane Adams" <[email protected]> Tue, 20 Jul 2004 20:52:15 +0000
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
In my webapp when i start the server and request a page, i get the following 
error:
org.jpublish.servlet.JPublishServlet  - Error rendering page: Could not list 
the contents of "/pages" because it is not a folder.

What i think is happening is that somewhere the vfs is thinking that when it 
asks for the /pages directory, it will be relative to the webapp root, 
however, when deploying on sun one web server 6.0/iplanet, i'm guessing the 
server thinks it wants the root of the server, or the filesystem. so it's 
bombing out on "/pages"

I've been digging through the jpublish source trying to find where this is 
happening so i can patch it, but i've yet to find the answer. Does anyone 
know of a workaround, or can point me in the right direction?

Thanks,
Duane

Can anyone intimately familiar with the innards of jpublish give me some 
guidance? details below:

20/Jul/2004:13:11:00] info ( 2853): 2004-07-20 13:11:00,851 [Thread-435] 
ERROR org.jpublish.servlet.JPublishServlet  - Error rendering page: Could 
not list the contents of "/pages" because it is not a folder.
[20/Jul/2004:13:11:00] failure ( 2853): Internal error: servlet service 
function had thrown ServletException (uri=/edu2/about/): 
javax.servlet.ServletException: Error rendering page, stack: 
javax.servlet.ServletException: Error rendering page
at org.jpublish.servlet.JPublishServlet.doPost(JPublishServlet.java:269)
at org.jpublish.servlet.JPublishServlet.doGet(JPublishServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:937)
at 
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1071)
at 
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:999)
, root cause: org.apache.commons.vfs.FileSystemException: Could not list the 
contents of "/pages" because it is not a folder.
at 
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractFileObject.java:471)
at 
org.apache.commons.vfs.provider.AbstractFileObject.getChild(AbstractFileObject.java:520)
at org.jpublish.page.DefaultPageManager.getPage(DefaultPageManager.java:199)
at org.jpublish.JPublishEngine.render(JPublishEngine.java:267)
at org.jpublish.servlet.JPublishServlet.doPost(JPublishServlet.java:246)
at org.jpublish.servlet.JPublishServlet.doGet(JPublishServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:937)
at 
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1071)
at 
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:999)
org.jpublish.RenderException: Could not list the contents of "/pages" 
because it is not a folder.
at org.jpublish.JPublishEngine.render(JPublishEngine.java:336)
at org.jpublish.servlet.JPublishServlet.doPost(JPublishServlet.java:246)
at org.jpublish.servlet.JPublishServlet.doGet(JPublishServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:937)
at 
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1071)
at 
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:999)

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click