S
Scott Harper
I am using XDoclet to create my deployment descriptor (web.xml) for a
servlet. I'd like to add <security-constraint>, <login-config>, and
<security-role> sections to web.xml, without having them overwritten each time
I regenerate the XDoclet. In the web.xml that gets created, there are several
commeted sections that say (for example):
"To set up security settings for your web app, create a file named
web-security.xml, put it in your project's mergedir. Organize
web-security.xml following this DTD slice:"
[...]
The problem is, I need <security-constraint>, <login-config>, *and*
<security-role> tags. Each of them is at the same level (inside web.xml).
Inside this merge file, there is no root element. So even though the XDoclet
merge works the way I want it to, Eclipse complains that there is a fatal
error in my web-security.xml file (and hence propogated all the way up to the
project level) because I have malformed XML (no root element).
Is there a way to solve this problem?
- tell Eclipse to ignore the XML error on that file (how?)
- create more than one merge file (what are they named?)
thanks
Scott
servlet. I'd like to add <security-constraint>, <login-config>, and
<security-role> sections to web.xml, without having them overwritten each time
I regenerate the XDoclet. In the web.xml that gets created, there are several
commeted sections that say (for example):
"To set up security settings for your web app, create a file named
web-security.xml, put it in your project's mergedir. Organize
web-security.xml following this DTD slice:"
[...]
The problem is, I need <security-constraint>, <login-config>, *and*
<security-role> tags. Each of them is at the same level (inside web.xml).
Inside this merge file, there is no root element. So even though the XDoclet
merge works the way I want it to, Eclipse complains that there is a fatal
error in my web-security.xml file (and hence propogated all the way up to the
project level) because I have malformed XML (no root element).
Is there a way to solve this problem?
- tell Eclipse to ignore the XML error on that file (how?)
- create more than one merge file (what are they named?)
thanks
Scott