Aleksandar Kostadinov wrote:
We have jboss-web.xml working on EAP 4.2 without DOCTYPE.
Yes the DOCTYPE is problem the question is now:
Could there be a reason to use:
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Service Reference 4.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
instead of:
<!DOCTYPE jboss-web PUBLIC
"-//JBoss//DTD Web Application 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
?
Cheers
Jean-Frederic
jean-frederic clere wrote, On 09/05/2007 06:56 PM (EEST):
> Hi,
>
> I have the following jboss-web.xml:
> +++
> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Service Reference
4.2//EN"
> "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
>
> <jboss-web>
> <!-- Uncomment the security-domain to enable security. You will
> need to edit the htmladaptor login configuration to setup the
> login modules used to authentication users.
> <security-domain>java:/jaas/jmx-console</security-domain>
> -->
> </jboss-web>
> +++
>
> It causes the following error:
> +++
> Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse
> source:
>
vfsfile:/home/jfclere/jbossas_head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml@3,12
> at
> org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:184)
> at
> org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:186)
> at
>
org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:120)
> ... 22 more
> Caused by: org.xml.sax.SAXException: Element type "jboss-web" must be
> declared. @
>
vfsfile:/home/jfclere/jbossas_head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml[3,12]
> at
>
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:427)
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> +++
>
> Is that normal?
>
> Cheers
>
> Jean-Frederic
> _______________________________________________
> jboss-development mailing list
> jboss-development(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-development
_______________________________________________
jboss-development mailing list
jboss-development(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development