sun-web.xml and war export

is there an option to force the war-export to include the sun-web.xml file? I am deploying to a sun server, so I need this file included. I have read previous posts (some from years ago) asking for the ability to either include or exclude this file, though it seems currently it is always excluded. Is there anyway to change this? If for no other reason to save me the time of adding it in myself when I am rapidly deploying. Thanks

[439 byte] By [jbjonesjr] at [2007-11-26 6:45:23]
# 1
If you want to deploy to another sun appserver, try to use the remote deployment supported by JSC2
dongmei at 2007-7-6 15:05:27 > top of Java-index,Development Tools,Java Tools...
# 2
I'm actually using portlets, so the war file itself is going to be important to me not just putting the files on the app server).
jbjonesjr at 2007-7-6 15:05:27 > top of Java-index,Development Tools,Java Tools...
# 3

The problem is that the sun-web.xml is specific to the server you're deploying to. (It might look like the one for the bundled PE but that's just by accident:-()

Also different containers (like the Sun Web Server, the Application Server) use the same file name but different schemas/DTD's for that file:-(

So we decided to not include it.

But you have the source, everything is done via Ant;-) Look at the build.xml and nbproject/build-impl.xml in your project;-)

I hope that helps;-)

-- Marco

mw46 at 2007-7-6 15:05:27 > top of Java-index,Development Tools,Java Tools...
# 4
You can use the Deployment Tool that is bundled with the Sun Java System Application Server.For getting Deployment Tool run the Creator_Install_Dir/SunAppServer8/bin/deploytool.sh/bat script.You can set all needed parameters and sun-web.xml will be created and added to WAR
Grif at 2007-7-6 15:05:27 > top of Java-index,Development Tools,Java Tools...