File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes 401: Unauthorized xxx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "401: Unauthorized xxx" Watch "401: Unauthorized xxx" New topic
Author

401: Unauthorized xxx

Sagar kanchi
Ranch Hand

Joined: Oct 07, 2005
Posts: 50
I am doing a project.
In this i am trying to access a website from which I have to download a file.
But while Iam trying to access the website thats giving the error as 401: Unauthorized xxx.
The website which I am trying to access is following BASIC authentication.
Already I have used PasswordAuthentication & Authenticator classes to break user name & password.
Do I need any special tags in my web.xml.
I wrote a normal web.xml as follows

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<servlet>
<servlet-name>CachingServ</servlet-name>
<servlet-class>CachingServ</servlet-class>

</servlet>
<servlet-mapping>
<servlet-name>CachingServ</servlet-name>
<url-pattern>/CachingServ/*</url-pattern>
</servlet-mapping>

</web-app>

Please can anybody suggest me in what way I can do that.

Its very very urgent please..........


Where there are more wonders there is less knowledge
 
GeeCON Prague 2014
 
subject: 401: Unauthorized xxx