Fabio Schmitz Tani [http://community.jboss.org/people/fstani] created the 
discussion

"Re: From Tomcat 6 Spring/JPA/JTA to JBoss EAP 5.1.0"

To view the discussion, visit: http://community.jboss.org/message/563831#563831

--------------------------------------------------------------
After some more digging I was finally able to find the solution to the problem, 
as the error message indicated there was an invalid argument, but the problem 
was not that visible.

The thing is that, as Phil Meyer pointed out (thread:  
http://community.jboss.org/message/560465#560465 
http://community.jboss.org/message/560465), the xml parsing of the *-ds.xml in 
JBoss AS 5 does not like line breaks, or at least found some unknown hidden 
char in the specific configuration file, so, solving it was really simple.

I've changed my *-ds.xml, removing the line breaks, and got this configuration 
file instead (shortened for simple read):
...
     <xa-datasource> 
        <jndi-name>jdbc/Datasource1DS</jndi-name> 
        <track-connection-by-tx>true</track-connection-by-tx> 
        <isSameRM-override-value>false</isSameRM-override-value> 
        
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
 
        *<xa-datasource-property 
name="URL">jdbc:oracle:thin:@oracle-db:1521:schema</xa-datasource-property>*
        <xa-datasource-property name="User">userName</xa-datasource-property> 
        <xa-datasource-property name="Password">pwd</xa-datasource-property> 
        
*<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>*
 
        <no-tx-separate-pools/> 
        <metadata>
            <type-mapping>Oracle9i</type-mapping>
        </metadata>
    </xa-datasource> 

    ...
 
    <mbean 
code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" 
name="jboss.jca:service=OracleXAExceptionFormatter"> 
        *<depends 
optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>*
 
    </mbean>
</datasources>


Changing this made the application work out ok, I might suggest a better 
parsing for this configuration files for JBoss AS, as it might be better.

I'll keep this thread open, so that I can post some more problems/solutions as 
I go along.

Best Regards,
Fábio
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563831#563831]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to