[jboss-jira] [JBoss JIRA] Commented: (JBAS-4683) The 4.2 dtds are not configured in the default schema resolver

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Mon Sep 10 10:56:43 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4683?page=comments#action_12376079 ] 
            
Alexey Loubyansky commented on JBAS-4683:
-----------------------------------------

It is registered in the JBossEntityResolver. But the public id is "-//JBoss//DTD Web Application 4.2//EN", not Web Service Reference.

> The 4.2 dtds are not configured in the default schema resolver
> --------------------------------------------------------------
>
>                 Key: JBAS-4683
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4683
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: XML services
>            Reporter: Scott M Stark
>         Assigned To: Alexey Loubyansky
>             Fix For:  JBossAS-5.0.0.Beta3
>
>
> Trying to deploy a descriptor using a 4.2 id is failing. The schema resolver known dtds needs to be updated to include the 4.2 versions, and these need to be added.
> 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 at 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)
> +++

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list