An ugly workaround is to use a non-xa datasource, i.e. oracle-ds.xml instead of oracle-xa-ds.xml. Why ugly? Because now I have to specify the Database URL twice, in the DS and in the XADS. Does the DatabaseLoginModule support XA Datasources in JBoss3, as it did in JBoss 2.4 ?
>I need JBoss3.2.1 w/ tomcat to support the JAAS >DatabaseLoginModule with an underlying XA-Datasource. I >started by adding JAR, SAR and *.xml files to the >minimal configuration. During startup all works well, >(no ERRORS, and WARNINGS only regarding some tomcat >JAR file index). But when I try to login, I get this >in server.log: > >2003-07-28 08:08:00,471 ERROR [org.jboss.security.auth.spi.DatabaseServerLogin >Module] Query failed > >org.jboss.util.NestedSQLException: Could not find accessor on XADataSource: ; >- nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.Or >acleXADataSource.setjdbc(java.lang.String)); - nested throwable: (org.jboss.re >source.JBossResourceException: Could not find accessor on XADataSource: ; - ne >sted throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.Oracle >XADataSource.setjdbc(java.lang.String))) > >In fact, javap -private reveals there is no such method >setjdbc(String) in OracleXADataSource. So, I must have done something wrong. >I modified the oracle-xa-ds.xml file from examples/jca to make use of the thin >jdbc-driver instead of the oci8 driver. (We don't want to deploy oracle client software >on the jboss server.) > >The application works for two years now with jboss 2.4, where we used the >minerva XA Wrapper instead of the oracle driver. But >the wrapper does not seem to have made it to jboss 3.2? > >I'd really appreciate any help ... > >TIA >Wolfgang > >PS: my xa-ds file: > ><datasources> > <xa-datasource> > <jndi-name>DataPool</jndi-name> > <track-connection-by-tx> > true > </track-connection-by-tx> > <isSameRM-override-value> > false > </isSameRM-override-value> > <xa-datasource-class> > oracle.jdbc.xa.client.OracleXADataSource > </xa-datasource-class> > <xa-datasource-property name="URL"> > jdbc:oracle:thin:@localhost:1521:test > </xa-datasource-property> > <xa-datasource-property name="User"> > user > </xa-datasource-property> > <xa-datasource-property name="Password"> > xxxxx > </xa-datasource-property> > <exception-sorter-class-name> > org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter > </exception-sorter-class-name> > </xa-datasource> > ... > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >JBoss-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user