-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
The custom jdbc driver is added as a module to the EAP instance with the following module.xml:
<module xmlns="urn:jboss:module:1.8" name="com.example.jdbc"> <permissions> <grant permission="java.security.AllPermission"/> </permissions> <resources> <resource-root path="example_jdbc.jar"/>
And the jdbc driver is added into the standalone.xml/domain.xml.
When enabling the security manager, the error is observed at startup:
10:39:00,652 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 41) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "example_jdbc") ]) - failure description: "WFLYJCA0115: Module for driver [com.oracle.jdbc] or one of it dependencies is missing: [com.example.jdbc]"
The name attribute is needed in the <grant/>.
The module.xml should be like:
<module xmlns="urn:jboss:module:1.8" name="com.example.jdbc"> <permissions> <grant permission="java.security.AllPermission" name="*"/> </permissions> <resources> <resource-root path="example_jdbc.jar"/>
However, $JBOSS_HOME/docs/schema/module-1_9.xsd says it is optional.
546 │ <xsd:complexType name="permissionType"> 547 │ <xsd:attribute name="permission" type="xsd:string" use="required"> 548 │ <annotation xmlns="http://www.w3.org/2001/XMLSchema"> 549 │ <documentation> 550 │ The qualified class name of the permission to grant. 551 │ </documentation> 552 │ </annotation> 553 │ </xsd:attribute> 554 │ <xsd:attribute name="name" type="xsd:string"> 555 │ <annotation xmlns="http://www.w3.org/2001/XMLSchema"> 556 │ <documentation> 557 │ The permission name to provide to the permission class constructor. 558 │ </documentation> 559 │ </annotation> 560 │ </xsd:attribute>
Actually it should be required.
- clones
-
EAPDOC-1339 The name attribute is required in `<grant/>` in module.xml
- Closed