SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 7th, 2003, 01:53 PM
darrenlew darrenlew is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 darrenlew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"Access Denied" when loading xml

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="javascript>
var xml = new ActiveXObject("Microsoft.XMLDOM");
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

Reply With Quote
  #2  
Old September 10th, 2003, 09:59 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Try loading as a url. Put the xml file into your webapp's folder, and load it like:

xml.load("mywebapp/abc.xml")

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > "Access Denied" when loading xml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway