| Summary: | jboss-ejb3.xml validation error for "tx:trans-timeout" tag. | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | xuzhan |
| Component: | EJB | Assignee: | Bartek Spyrko-Smietanko <bspyrkos> |
| Status: | CLOSED NOTABUG | QA Contact: | Jan Martiska <jmartisk> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4.0 | CC: | bspyrkos, cdewolf, david.lloyd, tomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-22 17:59:49 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Also causes XML validation errors in eclipse, since the URL http://www.jboss.org/j2ee/schema/trans-timeout-1_0.xsd does not exist. I see that this is not a bug in JBoss, but it's a but as jboss.org, isn't it? Tomas, trans-timeout schema is actually published under http://www.jboss.org/schema/jbossas/ - http://www.jboss.org/schema/jbossas/trans-timeout-1_0.xsd Using this URL Eclipse validation should work correctly. Thanks for the correct link! Eclipse complains about errors in this though http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd :-) (totally unrelated to the issue, so no need to answer, this was just a stupid comment) |
Description of problem: JBDS 8.0.0 thrown error and warning when validating "jboss-ejb3.xml" with "<tx:trans-timeout>" tags Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. copy below info into "jboss-ejb3.xml" <?xml version="1.0"?> <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns="http://java.sun.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/j2ee/schema/trans-timeout-1_0.xsd" version="3.1" impl-version="2.0"> <assembly-descriptor> <container-transaction> <method> <ejb-name>DaEnergyMarketBidsBean</ejb-name> <method-name>*</method-name> </method> <tx:trans-timeout> <tx:timeout>1800</tx:timeout> <tx:unit>Seconds</tx:unit> </tx:trans-timeout> </container-transaction> </assembly-descriptor> </jboss:ejb-jar> Actual results: JBDS Problems window: ---------------- Description Resource Path Location Type 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. jboss-ejb3.xml /shspoc/sms/src/java/com/isone/sms/bids/ejb line 18 XML Problem schema_reference.4: Failed to read schema document 'http://www.jboss.org/j2ee/schema/trans-timeout-1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. jboss-ejb3.xml /shspoc/sms/src/java/com/isone/sms/bids/ejb line 18 XML Problem ---------------- Expected results: No errors. Additional info: Please let us know if it is a bug of validation. If not, please provide a correct sample to us.