Hello,

Just a question : I have a stateful session bean that must do some stuff in
ACL (my own implementation) in a database.

Before, I used this datasource and it works fine :

 <data-source
  class="com.evermind.sql.DriverManagerDataSource"
  name="rapids"
  location="rapidsDataSource"
  xa-location="xARapidsPool"
  ejb-location="rapidsPool"
  connection-driver="org.enhydra.instantdb.jdbc.idbDriver"
  username=""
  password=""
  url="jdbc:idb=database/rapids.prp"
  inactivity-timeout="7200"
/>

Now I want to change for a OrionCMTDataSource, so I change my
data-sources.xml to :

 <data-source
  class="com.evermind.sql.DriverManagerDataSource"
  name="rapids-source"
  connection-driver="org.enhydra.instantdb.jdbc.idbDriver"
  url="jdbc:idb=database/rapids.prp"
  inactivity-timeout="7200"
 />

 <data-source
  class="com.evermind.sql.DriverManagerXADataSource"
  name="xa-rapids-source"
  source-location="rapids-source"
 />

<data-source
  class="com.evermind.sql.OrionCMTDataSource"
  name="rapids"
  location="rapidsDataSource"
  xa-location="xARapidsPool"
  ejb-location="rapidsPool"
  xa-source-location="xa-rapids-source"
 />

When I launch Orion it's OK, all deploy fine, but when I try to login (using
my session bean), I receive this error :

<snip>

com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back:
Error in transaction: javax.transaction.xa.XAException
 at
AclManager_StatefulSessionBeanWrapper32.login(AclManager_StatefulSessionBean
Wrapper32.java:343)
 at ubiquity.rapids.servlet.RapidsServlet.doPost(RapidsServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at com.evermind.server.http.d1.si(JAX)
 at com.evermind.server.http.d1.forward(JAX)
 at com.evermind.server.http.ed.sp(JAX)
 at com.evermind.server.http.ed.so(JAX)
 at com.evermind.util.f.run(JAX)
 Nested exception is:
javax.transaction.xa.XAException
 at com.evermind.sql.ao.commit(JAX)
 at com.evermind.server.g0.x3(JAX)
 at com.evermind.server.ApplicationServerTransaction.commit(JAX)
 at com.evermind.server.ApplicationServerTransaction.end(JAX)
 at
AclManager_StatefulSessionBeanWrapper32.login(AclManager_StatefulSessionBean
Wrapper32.java:340)
 at ubiquity.rapids.servlet.RapidsServlet.doPost(RapidsServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at com.evermind.server.http.d1.si(JAX)
 at com.evermind.server.http.d1.forward(JAX)
 at com.evermind.server.http.ed.sp(JAX)
 at com.evermind.server.http.ed.so(JAX)
 at com.evermind.util.f.run(JAX)

</snip>


What does it mean ?? Is my XML file ok ??

Thanks

Laurent


Reply via email to