I've created a web application using Sun Creator 2.1 and try to deploy it in 
JBoss 4.0.4. However, I saw the following exception:

14:33:26,329 ERROR [STDERR] java.sql.SQLException: You cannot commit with 
autocommit set!
14:33:26,329 ERROR [STDERR] at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWra 
pperManagedConnection.java:545)
14:33:26,345 ERROR [STDERR] at 
org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java 
:334)
14:33:26,345 ERROR [STDERR] at 
com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.ja 
va:244)
14:33:26,345 ERROR [STDERR] at 
com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:950)
14:33:26,345 ERROR [STDERR] at 
com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)
...

As you can see, I used cachedrowset in my application. my data-source 
configuration in jboss is something like;

<local-tx-datasource> 
<connection-url>jdbc:microsoft:sqlserver://myserver:1433;DatabaseName=myt 
est;SelectMethod=Cursor</connection-url> 
<driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-cla ss>
<connection-property name="auto-commit">false</connection-property>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
</local-tx-datasource>

Is there a simple work-around on this problem?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016470#4016470

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016470
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to