title: Tomcat JAASRealm : Getting "Class not added" after starting server
body: <p>I am using <a href="http://blog.frankel.ch/custom-loginmodule-in-tomcat" rel="nofollow">http://blog.frankel.ch/custom-loginmodule-in-tomcat</a> tutorial for tomcat JAASRealm.I have added below in server.xml </p>
  
  <p>Realm className="org.apache.catalina.realm.JAASRealm" appName="CustomLogin"
    userClassNames="ch.frankel.blog.loginmodule.PlainUserPrincipal"
    roleClassNames="ch.frankel.blog.loginmodule.PlainRolePrincipal"
    /></p>
  
  <p>while starting server i am getting                                                              </p>
  
  <blockquote>
    <p>INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
    Jun 8, 2012 1:18:24 PM org.apache.catalina.realm.JAASRealm parseClassNames
    <strong>SEVERE: Class ch.frankel.blog.loginmodule.PlainUserPrincipal not found! Class no
    t added.</strong>
    Jun 8, 2012 1:18:24 PM org.apache.catalina.realm.JAASRealm parseClassNames
    <strong>SEVERE: Class ch.frankel.blog.loginmodule.PlainRolePrincipal not found! Class no
    t added</strong>.
    Jun 8, 2012 1:18:24 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jun 8, 2012 1:18:24 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive CustomLogin.war</p>
  </blockquote>
  
  <p>I am using tomcat 5.5.27. When i call my servlet authentication is working fine but authorization is having some issue and might be due to <strong>"Class not added."</strong></p>
  
  <p>Please help....</p>