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