> >This is not a DatabaseServerLoginModule issue. Show the full stack trace to >the exception to see what code is calling XADataSource.setjdbc. > >-- >xxxxxxxxxxxxxxxxxxxxxxxx >Scott Stark >Chief Technology Officer >JBoss Group, LLC >xxxxxxxxxxxxxxxxxxxxxxxx >
Blame on me, please find the stack trace in the attachment. >Wolfgang Helbig wrote: > >> 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
2003-08-03 22:38:07,248 ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query failed org.jboss.util.NestedSQLException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setjdbc(java.lang.String)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setjdbc(java.lang.String))) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106) at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:96) at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:462) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:417) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:244) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:219) at org.jboss.web.catalina.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:291) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Caused by: org.jboss.resource.JBossResourceException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setjdbc(java.lang.String)) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:297) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:137) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnection(InternalManagedConnectionPool.java:352) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:151) at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool.getConnection(JBossManagedConnectionPool.java:643) at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:413) at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:331) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:488) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:798) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102) ... 45 more Caused by: java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setjdbc(java.lang.String) at java.lang.Class.getMethod0(Class.java:1756) at java.lang.Class.getMethod(Class.java:963) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:262) ... 54 more