Gregor Schneider wrote:
> now i've tried to set up a memory-realm, and i'm getting the following
> error for a change:
>
> DEBUG http-8080-Processor4
> org.apache.catalina.authenticator.FormAuthenticator
> - Authenticating username 'tomcat'
> DEBUG http-8080-Processor4
> org.apache.catalina.authenticator.FormAuthenticator
> - Authenticating username 'tomcat'
> ERROR http-8080-Processor4 org.apache.catalina.realm.JAASRealm -
It looks like your memory realm is not correctly configured as Tomcat
is trying to use a JAASRealm.
> The server.xml looks as follows:
>
> <Engine name="Catalina" defaultHost="localhost">
> <!--Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase" /-->
And there is why. You need to uncomment the realm in order to use it.
Note you are using the UserDatabaseRealm, not the MemoryRealm. This
should read.
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
>
> <!-- Editable user database that can also be used by
> UserDatabaseRealm to authenticate users -->
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
>
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" />
Is this within GlobalNamingResources ?
>
> My $CATALINA_HOME/conf/tomcat-users.xml looks like this:
Looks OK.
> The WEB-INF of my application as follows:
Also looks OK
> Is there something wrong with the JDK-installation?
Not that I can see from the logs you posted.
HTH,
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]