Paul Hopton schrieb:
>
> strange indeed. To answer your question I'm running a Kubuntu desktop
> as dev machine. I also did a testSetup on another unix desktop this
> morning and everything worked as it should. I'm not sure I can run a
> debugger on a live server. Ive only ever done that locally where the
> problem doesn't happen.
>
> I replaced my test app with the myfaces-axample-simple, and the
> problem persists.
>
> A further oddity is that if i create a subdirectory faces servlet
> finds it and renders it, and everything is ok. but once I restart
> tomcat it is unable to find it.
>
> I can only assume there is some kind of way-out server problem that I
> can't see. I replaced the tomcat libs directory with one form a fresh
> download, but that had no visible effect. I have to wait for my
> sysadmin but tomorrow will try a different setup on a different
> machine. I'll let you know the outcome.
>
> Thanks for confirming that I haven't lost my mind.
A wild guess: maybe some kind of error is occurring while JSF is
processing the page, and so something is then trying to forward to an
error page that doesn't exist, thus triggering a 404?

Have you tried enabling logging in your environment? Just putting
log4j.jar in WEB-INF/lib and a log4j.xml or log4j.properties file in
your WEB-INF/classes dir should be sufficient to enable logging for
myfaces; setting the default logging level to DEBUG might result in some
useful output. Facelets uses java.util.logging, and I'm not sure how to
enable logging for that but it should be possible. I believe tomcat
6.0.16 uses the java.util.logging API, then provides an implementation
of that API called "juli"; see the tomcat docs for how to enable tomcat
logging.

If this problem is only occurring on some servers, it does suggest that
a closer look at the tomcat configuration files is worth-while, eg
$TOMCAT_HOME/conf/server.xml and config files in any subdirs.

Good luck tracking the problem down...

Regards,
Simon

-- 
-- Emails in "mixed" posting style will be ignored
-- (http://en.wikipedia.org/wiki/Posting_style)

Reply via email to