This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Problem with authentication for .net exe using Realm

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a web-application in tomcat 5.0. This web application is protected by JDBCRealm
(Form authentication) . When i am trying to access any resource (e.g. *.html, *.jsp) from this
web application, it works fine. First, JDBCRealm checks if the user is authenticated or not.
If the user is not authenticated, JDCBRealm redirects to the login page.
After the successful user authentication, required resource is sent to the client.

I also have a dotnet exe in the same web application.
But the problem is that, When i am trying to access this exe, JDBCRealm first shows the login page for authentication.
Even if i enter correct user name and password, the required resource, i.e. exe, is not
allocated to me. It doesn't show any exception or error.

I don't know, in one case (e.g. for html and jsp files) Realms works fine, and only in case of exe
doesn't work properly.

Thanks & Regards
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you just typing the URL into the address bar of a web browser? How about making a webpage that contains a link to the .exe file? When you say dotnet, you mean it's a Windows executable, right? A program file, not some sort of .NET webpage, because if it's some kind of .NET webpage, I don't think you're going to get Tomcat to be able to run it...

If it's a Windows executable file, then make that link to it, and right-click the link and choose Save As or whatever, and you should be able to download it to your computer.
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!