dev@jsftemplating.java.net

Re: getting back into jsft - question on testing code changes to glassfish

From: Michael Phoenix <michaelandrewphoenix_at_gmail.com>
Date: Sun, 3 Jun 2007 21:32:47 -0700

Ken,

Well i'm sure that I set up docroot exactly as you told me. I formatted the
URL as you sent me in your last message:
http://localhost:8080/docroot/header.jsf<http://localhost:8080/docroot/info.jsf>
I have also set the access olgs as you suggested, but it didn't tell me
much. Only the server log under access has any text in it and what it
contains is:
"127.0.0.1" "NULL-AUTH-USER" "03/Jun/2007:21:11:05 -0800" "GET
/docroot/header.jsf HTTP/1.1" 200 0
Any ideas?

Mike



On 6/3/07, Ken Paulsen <Ken.Paulsen_at_sun.com> wrote:
>
>
> Hi Mike!
>
> A general debugging tip for GlassFish... enable access logging. This will
> help you see what the browser is requesting and give you an idea of why it's
> not working. You can do this by going to the admin console (localhost:4848)
> and then:
>
> Configuration -> HTTP Service
>
> Then make sure the "accessLoggingEnabled" property in the table is "true"
> (it's false by default).
>
> You will then be able to see the access log in
> .../domains/domain1/logs/access/*
>
> The URL you listed below looks incorrect because you are missing the
> context root. Normally you deploy an app with a context root (the default
> is the name of the directory it is in). So your url should look something
> like:
>
> http://localhost:8080/docroot/info.jsf
>
> Also... backslashes '\' will not work in URLs, not even in Windows I
> think. M$ made a big mistake using the character typically used for
> escaping other characters for a directory separator... they've been
> confusing people ever since...
>
> Good luck!
>
> Ken
>
> Michael Phoenix wrote:
>
> OK I moved the files to WEB-INF/lib, deployed docroot, and set the DEBUG
> parameter to "true". Now when I set the browser to "locolhost:8080\xxx.jsf",
> it displays a blank page not matter what .jsf file it points to. I thought
> that this would let me view the jsf pages. What am I missing here?
>
> On 6/2/07, Ken Paulsen <Ken.Paulsen_at_sun.com> wrote:
> >
> >
> >
> > When you built GlassFish, you have a directory:
> >
> > .../glassfish/admin-gui/src/docroot
> >
> > This is the "docroot" directory I am talking about. This directory is
> > part of the source code of the application. You will see it doesn't have
> > any jar files in ".../glasfish/admin-gui/src/docroot/WEB-INF/lib/*". You
> > need to have them there if you want to deploy the "docroot" directory on
> > GlassFish. If you do this, then every file in this directory is directly
> > accessed when you visit: http://localhost:8080/docroot/<file> (where
> > "docroot" in the url is the "contextroot" which is configured to point to
> > .../glassfish/admin-gui/src/docroot).
> >
> > Deploying this directory can be done via the admin console (
> > http://localhost:4848). Goto Web Applications, and click the deploy
> > button.
> >
> > The jar files you need to copy will exist in a directory like
> > .../publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/*.
> >
> > When I say "deploy your source" I mean deploy the directory containing
> > the source files for this web app (in this case
> > ".../glassfish/admin-gui/src/docroot").
> >
> > Ken
> >
> >
> >
>