File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Problem with authentication for .net exe using Realm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with authentication for .net exe using Realm" Watch "Problem with authentication for .net exe using Realm" New topic
Author

Problem with authentication for .net exe using Realm

damayanti kulkarni
Greenhorn

Joined: Jan 23, 2005
Posts: 3
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
Damayanti
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with authentication for .net exe using Realm