Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:20:12+00:00 2026-05-31T18:20:12+00:00

I am trying to migrate to Tomcat 7 from Tomcat 6. The app uses

  • 0

I am trying to migrate to Tomcat 7 from Tomcat 6.

The app uses form authentication and when logging in the app gets stuck at /j_security_check as a blank white page.

Tomcat is displaying the user is authenticated and an error.

java.lang.NoSuchMethodError: org.apache.catalina.realm.GenericPrincipal.getRealm()Lorg/apache/catalina/Realm;

Not sure where to go from here.

[EDIT]

the server.xml file on the tomcat server is just the default.

context.xml in the application

  <Realm 
    appName="Informer" className="AuthRealm" 
    dbContext="java:comp/env/jdbc/appdb" debug="2" 
    krbFile="C:\\Program Files\\Apache Software Foundation\\Apache Tomcat 7.0.14\\conf\\krb5.conf"
    loginFile="C:\\Program Files\\Apache Software Foundation\\Apache Tomcat 7.0.14\\conf\\jaas.conf"                     
    ndcLdap="ldap://server:389" 
    nedLdap="ldap://server:389" roleClassNames="" 
    useContextClassLoader="true" userClassNames="" />

[[ EDIT ]]

I am calling the getRealm() method to generate a new GenericPrincipal object. Looks like I just need to update to the new constructor.

[[[ EDIT ]]]

Two issues. I was calling getRealm() and the call was in a constructor that did not take the realm as a parameter anymore.

So I looked up the new constructor for GenericPrincipal and all I had to do was remove the getRealm() call from the parameters.

Resolved.

Regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:20:14+00:00Added an answer on May 31, 2026 at 6:20 pm

    I don’t see that AuthRealm class in the Tomcat docs. I guess it’s a custom Realm which was programmed against Tomcat 6 and now the API has changed.

    The object org.apache.catalina.realm.GenericPrincipal changed from version 6 to version 7 and now it doesn’t have the getRealm() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to migrate an existing application from IIS with ServletExec to tomcat. I
We are trying to migrate from Tomcat 6.0 to Weblogic 10.3. In the Tomcat
Trying to migrate my app from Rails 3.0 to 3.2 , and as part
I'm trying to migrate an app from NHibernate 1.x to 2.1, and I've noticed
I am trying to migrate my app from jsf 1.2 to 2.1. I wrote
I'm trying to migrate a site from a joomla system to a drupal. The
I'm trying to migrate to NewsstandKit to benefit from background download. I'm being able
I'm still trying to migrate from CakePHP 1.3 to 2.0 I have a Controller
I am trying to migrate to git from svn and it fails by throwing
I am trying to migrate one iphone app to wp7. Is it possible to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.