Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Login form not showing in Server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The problem is: when I click in a button, it is supposed that a "Tomcat Realm Security" Login form must appear because a protected resource is referenced, but not, is not happening.

Any help will be appreciated.

Probably is not important but: test machine is Windows with bitnami Tomcat LAMP, everything is working as expected. Target box is AWS Linux EC2 with Bitnami Tomcat LAMP preinstalled (the problem is here).

Directory where the web application is installed: ROOT (both machines)

index.html file contains the refrecence to the protected resource:


The conf/server.xml is configured with the realm:



In the table "users_roles" there is a user "test1" with assigned role "user"

The WEB-INF/web.xml file contains:



Is there something missing here? Could it be because the Linux box have something else configured that is not there in Windows? (or is transparent for a user, as usual).

Thanks in advance
Omar
 
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Omar!

I don't see anything wrong with what you've posted. Obviously on a production server you'd use secure transport, but for testing that would just complicate things.

There is no difference between how Tomcat security is set up in Linux or Windows. You might want to check and verify that Tomcat can connect to the database server, but I'm fairly certain that the login form itself would display, regardless.

I'm not familiar with what Bitnami does to Tomcat. If it's running Tomcat as an embedded server, the configuration might be different, but you would have to consult the Bitnami resources to handle that.

Beyond that, about the best I can recommend is that you look at the catalina.out and localhost logs and see if they say anything.
 
Omar Villasmil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim,

I will check again the logs.

Regards,
Omar
 
Tell me how it all turns out. Here is a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic