This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: 401: Unauthorized xxx
 
Similar Threads
using servlets in Jboss-tomcat
Problem running servlets in weblogic
Server returned HTTP response code: 504 for URL...
Path Not Reaching Servlet
Editing the Deployment Descriptor (web.xml)