jivejdon 專案TransactionManager問題

vision發表於2008-11-12
名位高手,我下載了jivejdon 的開源專案,但是在本地配置後,註冊或是登入總是報錯:
ERROR com.jdon.bussinessproxy.target.POJOObjectFactory - [JdonFramework]create error: java.lang.Error: Unresolved compilation problems:
The import javax.transaction.TransactionManager cannot be resolved
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved
TransactionManager cannot be resolved to a type
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved or is not a field
TransactionManager cannot be resolved to a type
2008-11-12 19:35:42,640 INFO [STDOUT] 2008-11-12 19:35:42,640 [http-127.0.0.1-8080-1] ERROR com.jdon.bussinessproxy.target.DefaultTargetServiceFactory - [JdonFramework]create error: java.lang.Exception: java.lang.Error: Unresolved compilation problems:
The import javax.transaction.TransactionManager cannot be resolved
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved
TransactionManager cannot be resolved to a type
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved
TransactionManager cannot be resolved to a type
transactionManager cannot be resolved or is not a field
TransactionManager cannot be resolved to a type



專案我用的是Jboss 4.2.3 + MS SQL 2005

mssql-xa-ds.xml內容如下:
<datasources>

<!--
transactional datasource, as configured in the global configuration
-->
<xa-datasource>
<jndi-name>JiveJdonDS</jndi-name>
<xa-datasource-class>net.sourceforge.jtds.jdbcx.JtdsDataSource</xa-datasource-class>
<!-- Note: "&" has to be used instead of "&" for parameters -->
<!--<xa-datasource-property name="URL">jdbc:jtds:sqlserver://localhost:1433;DatabaseName=jivejdon</xa-datasource-property>-->
<xa-datasource-property name="ServerName">localhost</xa-datasource-property>
<xa-datasource-property name="DatabaseName">jivejdon</xa-datasource-property>
<user-name>sa</user-name>
<password>XXX</password>

<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<no-tx-separate-pools/>
<!-- This disables transaction interleaving (which BTW, most DB vendors don't support) -->
<track-connection-by-tx/>
<isSameRM-override-value>false</isSameRM-override-value>

<!--pooling parameters-->
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>

<!-- If you supply the usr/pw from a JAAS login module -->
<security-domain/>

<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MSSQLExceptionSorter
</exception-sorter-class-name>
<metadata>
<type-mapping>MS SQLSERVER2005</type-mapping>
</metadata>
</xa-datasource>


<xa-datasource>
<jndi-name>Security</jndi-name>
<xa-datasource-class>net.sourceforge.jtds.jdbcx.JtdsDataSource</xa-datasource-class>
<!-- Note: "&" has to be used instead of "&" for parameters -->
<!--<xa-datasource-property name="URL">jdbc:jtds:sqlserver://localhost:1433;DatabaseName=security</xa-datasource-property>-->
<xa-datasource-property name="ServerName">localhost</xa-datasource-property>
<xa-datasource-property name="DatabaseName">security</xa-datasource-property>
<user-name>sa</user-name>
<password>XXXX</password>

<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<no-tx-separate-pools/>
<!-- This disables transaction interleaving (which BTW, most DB vendors don't support) -->
<track-connection-by-tx/>
<isSameRM-override-value>false</isSameRM-override-value>

<!--pooling parameters-->
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>

<!-- If you supply the usr/pw from a JAAS login module -->
<security-domain/>

<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MSSQLExceptionSorter
</exception-sorter-class-name>
<metadata>
<type-mapping>SQLSERVER2005</type-mapping>
</metadata>
</xa-datasource>

請名位高手幫忙解決.

相關文章