Hide Forgot
Description of problem: In JBDS 8.0.0, to validate <tx:timeout> from "jboss-ejb3.xml", it needs to add <trans-attribute> infron of <tx:trans-timeout>, Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Creating jboss-ejb3.xml as below: ~~~ <?xml version="1.0" encoding="UTF-8"?> <jboss:ejb-jar version="3.1" impl-version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns:tx="urn:trans-timeout" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd urn:trans-timeout http://www.jboss.org/schema/jbossas/trans-timeout-1_0.xsd"> <assembly-descriptor> <container-transaction> <description>foobar</description> <method> <ejb-name>foobar</ejb-name> <method-name>foobar</method-name> </method> <trans-attribute>Supports</trans-attribute> <tx:trans-timeout> <tx:timeout>100</tx:timeout> <tx:unit>Seconds</tx:unit> </tx:trans-timeout> </container-transaction> </assembly-descriptor> </jboss:ejb-jar> ~~~ 2. Adding following entire to XML Catalog in JBDS settings Location: http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd Key: http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd 3. There is no validation errors until removing "<trans-attribute>Supports</trans-attribute>". Actual results: ~~~ cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:trans-timeout'. One of '{"http://java.sun.com/xml/ns/javaee":method, "http://java.sun.com/xml/ns/javaee":trans-attribute}' is expected. ~~~ Expected results: No validation errors Additional info: The scenario is that code has been already set @TransactionAttribute and customer don't want duplicate settings.
Ivo Studensky <istudens> updated the status of jira JBEAP-4571 to Closed
xu zhang <zhangxu1324> updated the status of jira JBEAP-4571 to Reopened