Hi
Java Guru's,
I am using a Java application compiled with version 1.4.2_05 running on
Tomcat 5.0.28. I need to move this application to a new server running OpenJDK 1.6.0_20 and Tomcat 5.5.23. I unfortunately do not have the source :-(
The application uses a custom login module to authenticate via a Radius server.
So I have deployed the WAR on the new server, created a jaas.conf and added ' -Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf' to the Tomcat configuration file. However I keep getting this error.
javax.security.auth.login.LoginException: unable to find LoginModule class: jaas.RadiusLoginModule
The class 'RadiusLoginModule' is present in the application in the directory jaas. So Tomcat should be able to find the class right? I am probably doing something wrong. But I cannot see what. I added my jaas.conf and context.xml.
jaas.conf
JRadiusClientLoginModule {
jaas.RadiusLoginModule required
};
META-INF/context.xml
<Context path="/application" reloadable="true" debug="0" privileged="true">
<Realm className="org.apache.catalina.realm.JAASRealm"
debug="99"
appName="JRadiusClientLoginModule"
userClassNames="jaas.RadiusPrincipal"
roleClassNames="jaas.RolePrincipal">
</Realm>
</Context>
If more information is required please let me know. I hope somebody can point me in the right direction ;-)