Ed,

Are you including the oracle jdbc jar in JBOSS?
My understanding is that the application server creates a jndi object 
independent of the application being deployed (i.e. it does not look to the 
application for drivers).

Ray

On Mon, 2024-02-26 at 15:22 -0800, Ed O. wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

I'm new to CAS and I'm trying to use jdbc query authentication running on JBOSS 
8.0.

In gradle.properties I have set the appServer entry to blank since I'll be 
using an external servlet container.
appServer=

and in the build.gradle I specify I need jdbc support.
implementation"org.apereo.cas:cas-server-support-jdbc"

In my cas.properties, I have specified the driver class and the datasource name 
to be used from the standalone.xml datasource details in JBOSS. I've also 
specified the cas.authn.jdbc.query[0].sql and fields.

cas.authn.jdbc.query[0].driver-class=oracle.jdbc.driver.OracleDriver

cas.authn.jdbc.query[0].data-source-name=jdbc/ivrsadminDS

The problem is that the CAS war is built with an oracle JDBC driver, which is 
not needed....but more importantly the JBOSS server cannot index this 
driver..and fails to deploy the war.

So my two part question is, ...when configuring for an external server when a 
server datasource is specified , should a db driver be bundled in the WAR, and 
if it is by default, is there a way to exclude the oracle jdbc driver from the 
war file when specifying jdbc support?

Thanks!




-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/7a7453112e361e621c164b06c1864b57f7353c6f.camel%40uvic.ca.

Reply via email to