-
1. Re: Datasource Parsing Error - IllegalArgumentException: newValue is null
pugsherpa Jul 31, 2012 5:02 PM (in response to pugsherpa)Found it. pool-name attribute is required. I wish the documentation was better written. I shouldn't have to comb through the schema to find out how to configure this product. Especially since it wasn't required in the previous version of Jboss that we were using.
{code:xml}
<datasource jndi-name="java:/ourapp/LoginDataSource" pool-name="login-datasource" enabled="true" use-java-context="false">
<connection-url>${db.url}</connection-url>
<driver>oracle</driver><security>
<user-name>${user}</user-name>
<password>${pw}</password>
</security>
<validation>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
</validation>
</datasource>{code}
I'd request that you fix the error message in future releases to make them match the more informative errors thrown when other configuration parsing errors occur. Like this one:
{code}
Message: JBAS014724: Missing required attribute(s): class-name
{code}