• 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

Memory Realm Authentication Fails with Tomcat-NetBeans

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying out a sample Security Realm application on tomcat. The problem is that BASIC authentication does NOT succeed when running the application through NetBeans and embedded Tomcat whereas when I deploy the WAR file manually on Tomcat and start Tomcat through Windows command prompt it successfully runs the application and authentication also succeeds. Not sure why it is failing when running the application through NetBeans. I tried to run the manager app but that also failed through NetBeans-Tomcat whereas it works fine when I jump out of NetBeans environment and start tomcat manually through command prompt. Not sure what's going on here.

My sample application is very small and code chunks are shown below:
web.xml



tomcat-users.xml



Any ideas will be helpful.
 
Aakash Chandel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found the problem.

Netbeans creates an instance of tomcat in C:\Documents and Settings\chandeln\.netbeans\7.1.2\apache-tomcat-7.0.22.0_base. Modifying C:\Documents and Settings\chandeln\.netbeans\7.1.2\apache-tomcat-7.0.22.0_base\conf\tomcat-users.xml did the job.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic