473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

permission denied when using XMLHttpRequest in mozilla

1
Hello everybody,

I am trying to call a webservice which is deployed in Apache axis using AJAX. I am using servlet to forward the request from client to the webservice and to return the response from the webservice to the client. The servlet runs in Apache Tomcat (http://localhost:8080).When I try to use AJAX to call the service through XMLHttpRequest from Apache Lenya(http://localhost:8888) it gives the security error in mozilla .I am enabling the security like this :netscape.security.PrivilegeManager.enablePrivileg e("UniversalXPConnect UniversalBrowserAccess"); . It works fine when I call from file:/// but it shows" A script from http://localhost:8888 was denied UniversalXPConnect UniversalBrowserAccess privileges" error when called from http://localhost:8888.I read somewhere that its all because mozilla needs signing when communicating with different domains .can anyone came accross such situation ? Please help me in solving such errors. should I use something called proxy scripts? My sucess in thesis depends on sovling this issue only. So it would be of great help if anyone gives some idea regarding this. Thanking you in advance.

regards,
robi
Feb 20 '06 #1
0 3905

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: HikksNotAtHome | last post by:
In Mozilla 1.4b, when the URL is set to a local URL, it works as expected. function showIt(){ var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "blank.html" ,true);...
5
by: francescomoi | last post by:
Hi. I'm trying to build a webpage which calls another one (at a different server) by using: var req = new XMLHttpRequest() I know some browsers (Mozilla and IE) doesn't allow it, and shows...
2
by: dx27s | last post by:
Hi all, I'm working with the XMLHttpRequest object. I receive the following error message: "Permission denied to call method XMLHttpRequest.open" This occurs in Firefox only. IE works fine. ...
2
by: laredotornado | last post by:
Hi, I'm trying to use the xmlHttpReq object to contact a URL on my server. But I'm getting a JS "Permission denied" error at the indicated line. What does it mean and how can I get around it? ...
1
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code...
4
by: MrGado | last post by:
Running on Windows XP with Mozilla 2.0.0.4, I am experiencing a strange security issue. function loadXMLDoc(url,funcname) { try { ...
2
gagandeepgupta16
by: gagandeepgupta16 | last post by:
Hi i am working on webservice that uses one client side javascript which takes in data from html control, process and POST it to destination webservice. every thing in the logic is ok and...
8
by: sbettadpur | last post by:
hello I am using xmlHttpRequest method in my application, this method is giving problem in the following browsers 1) Internet Explorer 7 2) Mozila Firefox(2.0.0.16) I got solution for...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.