Datasource Error
dew Dec 27, 2010 10:18 AMHello
I upgrade from jboss portal plarform 5.0.1 to jboss portal platform 5.1.0. and now appear this error:
16:03:57,194 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=otpDS' to JNDI name 'java:otpDS'
16:05:18,620 WARN [loggerI18N] [com.arjuna.ats.internal.jta.recovery.xarecovery1] Local XARecoveryModule.xaRecovery got XA exception javax.transaction.xa.XAException, XAException.XAER_RMER
.
.
.
16:04:38,475 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:module="otp-core-entity-ejb.jar",service=EjbModule,uid=9084394 state=Create mode=Manual requiredState=Installed
org.jboss.deployment.DeploymentException: Error: can't find data source: otpDS
DEPLOYMENTS IN ERROR: Deployment "vfszip:/D:/jboss/jboss-epp-5.1/jboss-as/server/default/deploy/otp-core-ejb.ear/" is in error due to the following reason(s): javax.naming.NameNotFoundException: otpDS not bound Where is error, on 5.0.1 platform was not problem Here is my otp-ds.xml: thx for help<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasources>
<xa-datasource>
<jndi-name>otpDS</jndi-name>
<rar-name>jboss-xa-jdbc.rar</rar-name>
<use-java-context>true</use-java-context>
<connection-definition>javax.sql.DataSource</connection-definition>
<jmx-invoker-name>jboss:service=invoker,type=jrmp</jmx-invoker-name>
<min-pool-size>0</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>30</idle-timeout-minutes>
<prefill>false</prefill>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
<validate-on-match>false</validate-on-match>
<no-tx-separate-pools/>
<statistics-formatter>org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter</statistics-formatter>
<isSameRM-override-value>true</isSameRM-override-value>
<allocation-retry>0</allocation-retry>
<allocation-retry-wait-millis>5000</allocation-retry-wait-millis>
<security-domain-and-application xsi:type="securityMetaData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
<type-mapping>Oracle9i</type-mapping>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
<set-tx-query-timeout>false</set-tx-query-timeout>
<query-timeout>0</query-timeout>
<use-try-lock>60000</use-try-lock>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@zzz.xxx.com:1521:KOPO</xa-datasource-property>
<xa-datasource-property name="User">zzz</xa-datasource-property>
<xa-datasource-property name="Password">xxx</xa-datasource-property>
<xa-resource-timeout>0</xa-resource-timeout>
</xa-datasource>
</datasources>