[jboss-jira] [JBoss JIRA] Assigned: (JBAS-7824) Uncommenting both filter and filter-mapping elements in jmx-console.war\WEB-INF\web.xml results an xml parsing exception

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Fri Dec 10 07:50:52 EST 2010


     [ https://issues.jboss.org/browse/JBAS-7824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse reassigned JBAS-7824:
--------------------------------------

    Assignee:     (was: Darran Lofthouse)


> Uncommenting both filter and filter-mapping elements in jmx-console.war\WEB-INF\web.xml results an xml parsing exception
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-7824
>                 URL: https://issues.jboss.org/browse/JBAS-7824
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JMX/Web Console
>    Affects Versions: JBossAS-5.1.0.GA
>            Reporter: Radim Hanus
>            Priority: Minor
>
> I've tried to apply wiki document http://community.jboss.org/wiki/AccessControlForJMXConsole
> but it produces exception during startup because of order of elements in jmx-console.war\WEB-INF\web.xml:
>     <filter>
>       <filter-name>JmxOpsAccessControlFilter</filter-name>
>       <filter-class>org.jboss.jmx.adaptor.html.JMXOpsAccessControlFilter</filter-class>
>       <init-param>
>         <param-name>updateAttributes</param-name>
>         <param-value>UpdateAttributeRole</param-value>
>         <description>Comma-delimited Roles that define the JMX Operation denoting updation of Attributes</description>
>       </init-param>
>       <init-param>
>         <param-name>invokeOp</param-name>
>         <param-value>InvokeOpRole</param-value>
>         <description>Comma-delimited Roles that define the JMX Operation denoting updation of Attributes</description>
>       </init-param>
>    </filter>
>    <filter-mapping>
>       <filter-name>JmxOpsAccessControlFilter</filter-name>
>       <servlet-name>HtmlAdaptor</servlet-name>
>    </filter-mapping>
> but in accordance with javaee_5.xsd schema element description should be the first element of init-param:
> ...
>       <init-param>
>         <description>Comma-delimited Roles that define the JMX Operation denoting updation of Attributes</description>
>         <param-name>updateAttributes</param-name>
>         <param-value>UpdateAttributeRole</param-value>
>       </init-param>
>       <init-param>
>         <description>Comma-delimited Roles that define the JMX Operation denoting updation of Attributes</description>
>         <param-name>invokeOp</param-name>
>         <param-value>InvokeOpRole</param-value>
>       </init-param>
> ...
> org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list