tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L " <barry.l.pro...@citi.com>
Subject RE: Tomcat 4.1 security container
Date Tue, 10 Feb 2009 20:37:20 GMT
Thanks, Chris -- I'll double check that!

Been a while since I edited the server.xml doc at all - haven't added
much to the app lately.

Thanks! 

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Tuesday, February 10, 2009 2:33 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1 security container

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Barry,

On 2/10/2009 12:49 PM, Propes, Barry L wrote:
> I did check the catalina output log and it shows this:
> ======================================================
> 2009-02-10 10:22:34 JDBCRealm[Standalone]: Exception performing 
> authentication
> java.sql.SQLException: Io exception: The Network Adapter could not 
> establish the connection  at 
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
>  at
> oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:418)
>  at
>
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
> 521)
>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
>  at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:598)

Note that this is a JDBCRealm, not a DataSourceRealm. That means that
your JDBC configuration for the realm is probably specified in the
<Realm> section of your server.xml, not your <Resource>.

I suspect that your application JDBC connections work just fine, but
your authentications do not work. Check your <Realm>... I'll bet there's
a second set of JDBC connection details there.

Note that you can use a DataSourceRealm and share your JDBC connections
between the app and the authenticator. Some folks object to doing that,
but I find it convenient for configuration /and/ for resource
management.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmR5JMACgkQ9CaO5/Lv0PB7NQCgrqDJ6x7fvmeUq1te53oJzdn0
E70An1TQpYiEvcjYKjR/x8KhJszeQ2uG
=JzoU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message