[
https://jira.jboss.org/jira/browse/JBAS-7824?page=com.atlassian.jira.plug...
]
Radim Hanus updated JBAS-7824:
------------------------------
Workaround Description: description must be the first element of init-param element,
so move it (was: description element must be the first element of init-param, move it)
Description:
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'.
was:
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>
...
org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.d:
Invalid content was found starting with element 'description'.
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://jira.jboss.org/jira/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
Assignee: Darran Lofthouse
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.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira