Jasondid you apprise login.config of the location of jaas.config e.g
JAVA_OPTS=-Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.configMartin
______________________________________________Disclaimer and confidentiality
noteEverything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.> Date: Tue, 15 Jan 2008 14:22:33 +0100> From: [EMAIL PROTECTED]>
To: users@tomcat.apache.org> Subject: JDBC Realm doesn't work properly> > Hi,>
> I'm using a self extended class of JDBC realm to realize a user
authentication. Here is the corresponding part of my server.xml:> > <Realm
className="de.mycompany.app.AppJDBCRealm">
driverName="com.sybase.jdbc2.jdbc.SybDataSource">
connectionURL="jdbc:sybase:Tds:db.mycompany.de:5566/DODS000?JCONNECT_VERSION=6">
connectionName="test"> connectionPassword="test2"> userTable="userTable"
userNameCol="user_nm" userCredCol="lng_pwd"> userRoleTable="roleTable"
roleNameCol="dc" />> > This works fine so far but I have to write four of these
realm-configurations for 4 different databases. Each database will be used by a
different context. So I've put this realm-configuration into a
context-element:> > <Context docBase="${catalina.home}/webapps/app">
privileged="true" antiResourceLocking="false" antiJARLocking="true">> > <Realm
.....>> > </Context>> > With this configuration it doesn't work anymore. Here
is the error I got:> > Unexpected error> java.lang.SecurityException:
Anmeldekonfiguration kann nicht gefunden werden.> at
com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)> at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)> at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)>
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)>
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)> at
java.lang.Class.newInstance0(Class.java:350)> at
java.lang.Class.newInstance(Class.java:303)> at
javax.security.auth.login.Configuration$3.run(Configuration.java:216)> at
java.security.AccessController.doPrivileged(Native Method)> at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)>
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)> at
java.security.AccessController.doPrivileged(Native Method)> at
javax.security.auth.login.LoginContext.init(LoginContext.java:234)> at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)> at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347)> at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)>
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)>
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)>
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)>
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)>
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)> at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)> at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)>
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)>
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)>
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)>
at java.lang.Thread.run(Thread.java:595)> > > Can someone please help me?> >
Regards,> Jason>
_______________________________________________________________________> Jetzt
neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage> kostenlos testen.
http://www.pc-sicherheit.web.de/startseite/?mc=022220> > >
---------------------------------------------------------------------> To start
a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: [EMAIL
PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>
_________________________________________________________________
Watch “Cause Effect,” a show about real people making a real difference.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause