473,769 Members | 6,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Access denied" in loading xml file.

Hi there,

I have this problem which is really driving me nuts for a couple of
days. Glad if any help or suggestion is given

Javascript will give me a pop-up error "Access is denied" when i try to
load a simple xml file, which is in the server machine itself. The
script is within a JSP page running apache tom-cat. I am running it with
IE6 from an windows administrative acc straight on the server so there
shouldn't be any access prob.

Code is something like that:

<script language="javas cript>
var xml = new ActiveXObject(" Microsoft.XMLDO M");
xml.async = false;
xml.load("C:/Documents and Settings/Desktop/BTBT/abc.xml)

// upon the load statement; javascript will prompt error and jsp dies
off

</script>

My instinct is that Apache Tom-cat is prohibiting the access. The jsp is
unable to load any xml files in all location, but is able to load files
within the Tom-cat application folder.
(C:\jakarta-tomcat-4.0.1\webapps\. .) I am however unsure where to
investigate further.

This is really driving me crazy. any advice is really welcomed.

Thks in advance
Darren

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 11 '05 #1
1 5589
Darren,

This is probably not the best group to post this to. I am wondering about
what you are doing. Am I correct that the java script you posted is part of
the returned page and runs in the browser? It appears so, since I don't
think JSP can process java script and if it did, then I still doubt that it
would support the "new ActiveXObject" statement. If you are really talking
about Java script running in the browser, then it's irrelevant which kind of
web server, and page generation mechanism is actually creating the page.
Client side java script simply has no access to the file system (you might
be able if you change some security settings in IE6, but that's nothing you
should expect any clients/customers to do).

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Darren Lew" <da*******@yaho o.com.sg> wrote in message
news:#S******** ******@tk2msftn gp13.phx.gbl...
Hi there,

I have this problem which is really driving me nuts for a couple of
days. Glad if any help or suggestion is given

Javascript will give me a pop-up error "Access is denied" when i try to
load a simple xml file, which is in the server machine itself. The
script is within a JSP page running apache tom-cat. I am running it with
IE6 from an windows administrative acc straight on the server so there
shouldn't be any access prob.

Code is something like that:

<script language="javas cript>
var xml = new ActiveXObject(" Microsoft.XMLDO M");
xml.async = false;
xml.load("C:/Documents and Settings/Desktop/BTBT/abc.xml)

// upon the load statement; javascript will prompt error and jsp dies
off

</script>

My instinct is that Apache Tom-cat is prohibiting the access. The jsp is
unable to load any xml files in all location, but is able to load files
within the Tom-cat application folder.
(C:\jakarta-tomcat-4.0.1\webapps\. .) I am however unsure where to
investigate further.

This is really driving me crazy. any advice is really welcomed.

Thks in advance
Darren

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 11 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
23864
by: Mark DuPrey | last post by:
I've got a script in an ASP page that is supposed to extract certain files from a zip file, move them, create a new zip with the moved files and then make a self-extracting archive out of the new zip file. I'm doing this using wshShell.Exec, the WinZip command line tool and zip2exe.exe from the pkware suite (because WinZip's command line doesn't support creating self-extracting archives and for historical compatibility reasons). This is...
9
715
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit anyway).... Private Sub LogChange(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs) If e.ChangeType = WatcherChangeTypes.Created Then
4
22484
by: Carlitos | last post by:
Hi there, I got a web application in vb.net that uploads a .zip file to a subfolder inside the root folder of the web application. c:\Inetpub\wwwroot\MyWebApp\uploaddir Then, a c# library unzips it inside another subfolder inside the subfolder where the .zip was uploaded.
1
7047
by: Winterminute | last post by:
If I try to make any changes to the ASP.NET Portal Starter kit it fails with an access denied error. This was working when I left last week and is failing today. I don't remember changing anything, but I guess something had to be changed. I have checked NTFS permissions and the ASPNET account has full control on the parent directory of that XML file and on the file itself. I have also checked in IIS, and the Virtual Directory has...
6
4141
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I had to manually install all of the ODBC drivers and the rest of the DLL's, and now I am getting "Access is Denied" errors on any page that uses ADODB. How do I fix it? I already gave the ODBC drivers in the folders in "c:\program files\common...
0
3537
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
2
2751
by: Loane Sharp | last post by:
Hi there I'm using VB.NET and Office Web Components to access a SQL Server 2005 Express database and draw pictures on the fly in my ASP.NET application. Using .ExportPicture to write the GIF/JPEG/PNG image to disk and then load it into the page using the <IMG /> tag is probably not the tidiest or most secure way of doing this, but it is the easiest and allows the greatest flexibility in terms of positioning. (It also seems to be the most...
0
2630
by: lpinho | last post by:
Hi There, I've generated a C# file from a wsdl file using wsdl.exe utility. Then I created a console application and made a call to the method generated, first I got the error: "The request failed with HTTP status 407: Proxy Access Denied." Then I added a proxy validating and proxy credentials and got this:
0
1784
by: Rico | last post by:
Helolo, I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS. I am working on an XPPro machine with VS 2003. I have installed the remote debugging components on the server. Aside from having administrative rights, I have also put myself in the Debugger Users group. I have added ASPNET and even IUSR_SERVERNAME to the Debuggers group (don't worry, it's a dev server not a live machine) and I still get "Access Denied"...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.