Okay. I forgot to mention that I'm developing the Web Apps in JBuilder
(not totally sure if that makes a lot of difference). I have found
some docs related to what you said:
Adding a server-specific XML file to the WAR file
---------------------------------------------------------------------
If you are using a server that JBuilder does not support, you will have
to add your server-specific XML file to the WEB-INF folder and to the
project. To do this,
1. Place the server-specific XML file in the web module's WEB-INF
folder.
2. In JBuilder, use the Add Files/Packages/Classes button to add the
XML file to your project.
JBuilder automatically includes all .xml files in the WEB-INF directory
in the WAR file - when you create your WAR file, the newly added file
will be included.
> I presume you are talking about the Apply button at the upper right hard
> corner of the html page.
[quoted text clipped - 8 lines]
>
> You'll then need to ./stop and then ./start the server instance.
js - 02 Dec 2005 03:07 GMT
> Okay. I forgot to mention that I'm developing the Web Apps in JBuilder
> (not totally sure if that makes a lot of difference). I have found
[quoted text clipped - 15 lines]
> in the WAR file - when you create your WAR file, the newly added file
> will be included.
What you mentioned above is probably referring to sun-web.xml that lives in
WEB-INF/ ... but that is not needed, only optional if you want to override
certain settings ( such as saving the HttpSession in a database so that you
can have your webapp load-balanced across different hosts ).
What I was referring to as the server.xml file is a configuration file for
the webserver itself ( NOT per webapp ) in sunone. It basically lists all
of your webapps that you have deployed, plus any global-JVM settings.
In any case, see this:
http://docs.sun.com/source/817-6251-10/pwadeply.html
You can deploy using the admin interface, or wdeploy, or even manually
change the server.xml file.
And then read this:
http://docs.sun.com/source/817-6248-10/crintro.html#wp999059
http://docs.sun.com/source/817-6248-10/crsrvrx.html#wp1035366
http://docs.sun.com/source/817-6248-10/crsrvrx.html#wp1029919
The WEBAPP element is the server.xml file is the one you are after.
Note that, if you manually update the server.xml file, you MAY loose your
changes if you do an "Apply Changes" on the admin interface. In order not
to loose the changes, do "Load Configuration ..." first.