ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phasor <bruno.fernandesbr...@gmail.com>
Subject Re: Datasource JNDI
Date Tue, 16 Mar 2010 15:01:57 GMT


I have already tried deploying without the com/env but the problem remains.

Thank you richard



Richard Yee wrote:
> 
> Bruno,
> Remove java:comp/env from your datasource name in sqlmapconfig and  
> data-sources.XML
> Richard
> 
> Sent from my iPhone
> 
> On Mar 16, 2010, at 4:08 AM, phasor <bruno.fernandesbruno@gmail.com>  
> wrote:
> 
>>
>> Hi,
>>
>> I´m facing a problem when deploying an extjs app(using ibatis plugin 
>> ) to
>> oracle application server 10.
>> In sqlmapconfig.xml i´m referencing a jndi datasource that was previ 
>> ously
>> created on AS adding the following configuration to the file:
>>
>>  <transactionManager type="JDBC">
>>       <dataSource type="JNDI">
>>              <property name="DataSource"
>> value="java:comp/env/jdbc/CotacoesDS"/>
>>       </dataSource>
>>   </transactionManager>
>>
>> After deploy the app don´t recognize the datasource showing  this lo 
>> g file
>> error:
>>
>> Caused by: java.lang.RuntimeException: Error parsing XPath
>> '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:
>> com.ibatis.sqlmap.client.SqlMapException: There was an error  
>> configuring
>> JndiDataSourceTransactionPool. Cause: javax.naming.NamingException:
>> Error instantiating web-app JNDI-context: Error creating context:
>> jdbc/CotacoesDS not found
>>
>>
>> Any ideias?
>>
>> thanks in advance
>>
>>
>>
>>
>>
>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/Datasource-JNDI-tp27916153p27916153.html
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@ibatis.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Datasource-JNDI-tp27916153p27919238.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message