jivejdon 项目TransactionManager问题

08-11-12 vision
名位高手,我下载了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>

请名位高手帮忙解决.

vision
2008-11-13 08:34
Band大,新问题

现在用admin登录没报错,可是就是登录不了.

注册也注册不了,页面提示注册成功,但是server.log有error.

ERROR com.jdon.bussinessproxy.target.POJOObjectFactory - [JdonFramework]create error: java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager


请Band大帮帮忙!谢谢!



banq
2008-11-14 10:46
查查以前帖子 使用jboss 4.2以上要使用mysql-ds.xml中XA来配置,可见Jivejdon3源码最新版说明。