[jboss-jira] [JBoss JIRA] (AS7-2775) Fail to add a complex (non-XA or XA) datasource to the configuration by DRM API in standalone mode

Vladimir Rastseluev (Commented) (JIRA) jira-events at lists.jboss.org
Fri Nov 25 09:59:40 EST 2011


    [ https://issues.jboss.org/browse/AS7-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645641#comment-12645641 ] 

Vladimir Rastseluev commented on AS7-2775:
------------------------------------------

Server also corrupts configuration xml file during parsing-marshal phase, when a comlex datasource is configured in it. In Attachment there are configuration files before server start and after server shut down.
There are description of errors, found during file processing:
1)It's impossible to add any property to the "extensionType" elements like <exception-sorter>, so the fragment:
<exception-sorter class-name="someClass">
<config-property name="property-name">PropertyValue</config-property>
</exception-sorter>
won't be processed;
2)It's impossible to add any element of type "boolean-presenceType" like <set-tx-query-timeout>.
After parsing of this fragment  : <set-tx-query-timeout/>
in model this element is set to "false" and after marshalling it disappears from the resulting xml file;
3)Attributes "name" and "enabled" in <datasource> element. If they are set in xml conf.file  - won't propagate to the model and resulting xml file too;
4)Element <wrap-xa-resource>. If it is set in xml conf.file - will present in model with right value, but disappears from the resulting xml file.

                
> Fail to add a complex (non-XA or XA) datasource to the configuration by DRM API in standalone mode
> --------------------------------------------------------------------------------------------------
>
>                 Key: AS7-2775
>                 URL: https://issues.jboss.org/browse/AS7-2775
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JCA
>         Environment: org.jboss.as.test.smoke.embedded.mgmt.datasource.DataSourceOperationsUnitTestCase.java
> public void testAddComplexDs();
> public void testAddComplexXaDs()
>            Reporter: Vladimir Rastseluev
>            Assignee: Stefano Maestri
>
> 1) It's impossible to add an element <idle-timeout-minutes> to the model at all - in some cases it causes not known throwable during model marshalling, in other cases - operation fails;
> 2)element <set-tx-query-timeout> after parsing becomes  an attribute of <time-out> element and I can't be loaded after re-parsing ;
> 3) it's impossible to add element  <blocking-timeout-wait-millis> due to an error:
>   "failure-description" => "JBAS014677: Failed to persist configuration change: JBAS014675: Failed to marshal configuration",
> 4)there are some errors in adding <recover-credential>. When added this fragment:
>         operation.get("recovery-username").set("sa");
>         operation.get("recovery-password").set("sa");
>         operation.get("recovery-security-domain").set("HsqlDbRealm");
> in XML it is:
> <recover-credential>
>    <recover-credential>
>         sa
>   </recover-credential>
>   <recover-credential>
>         sa
>   </recover-credential>
>   <recover-credential>
>         HsqlDbRealm
>   </recover-credential>
> </recover-credential>
> 5) It's impossilble to add attribute "enabled" to the root datasource element;
> 6) It's possible to add  "track-statements" element set to "nowarn" to the model, but there is a problem to load the configuration after it, because of parsing error "there are not $TrackStatement.nowarn enum". On the other side it isn't possible to add this element set to "NOWARN".
> When problems will be solver both tests must pass.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list