I'm interested in using FCKEditor for my Java Servlet application.
I am using virtual host and the FCKeditor-2.3.jar.
I haven't got any problem if not use virtual host, for example: http://localhost:9030/myApp, so, I can see the folder, files and I can upload files too to any directory.
I have problem using, for example, the following url: http://demo.example.domain.com:9030
Tomcat conf (virtual host):
--------------------
<Host appBase="C:\virtual\myApp" name="demo.example.domain.com">
<Context docBase="" path="">
<ResourceLink global="jdbc/myApp" name="ds/myApp" type="javax.sql.DataSource" />
</Context>
</Host>
--------------------
I have the followwing error:
--------------------
The server didn't send back a proper XML response. Please contact your system administrator.
XML request error: /scripts/Connector (404)
Requested URL:
http://demo.example.domain.com:9030/scr ... 2063018681
HTTP Status 404 - /scripts/Connector
type Status report
message /scripts/Connector
description The requested resource (/scripts/Connector) is not available.
--------------------
The error appear in the oConnector.SendCommand = function( command, params, callBackFunction ) method in the browser.html file (editor/filemanager/browser/default/browser.html), when trying to do the following:
--------------------
oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load.
--------------------
Does anyone know why this does not work?
Thanks in advance.
Mon, 05/11/2009 - 20:00
#1
Re: Error loading folders and files using virtual host
Apparently nothing. The server responds 404 which just means that the file browser cannot reach the connector. Why? The file browser contacts a completely different url which you already see in your post.
Re: Error loading folders and files using virtual host
I am not using the following url http://localhost:9030/myApp now, it was an example(I can see the files).
I need virtual host now with the following url as example: demo.example.domain.com
So, using this url I have the error, you can see in the post.
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
Thanks.
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
Error: uncaught exception:
[Exception... "Access to restricted URI denied"
code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)"
I tried this but that didn't fix the problem.
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
I reviewed to serve the browser from the virtual host.
I see that the problem is in the fckxml.js file when trying to execute the FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) method. Can't get the xml file, throwing the following error:
------------
The server didn't send back a proper XML response. Please contact your system administrator.
XML request error: /scripts/Connector (404)
Requested URL:
http://demo.example.domain.com:9030/scr ... 2138370378
------------
Do you have any idea?
Thanks in advance.
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
As in this post:
viewtopic.php?f=6&t=562&p=21582#p20690
Re: Error loading folders and files using virtual host
Re: Error loading folders and files using virtual host
/fckeditor/editor/filemanager/connectors/php/connector.php (404)
Is neccesary the PHP installed. Or I have to remove the connector.php and create de connector.jsp using virtual host?
Re: Error loading folders and files using virtual host
--
Access to restricted URI denied" code: "1012.
--
The error occurs when my application tries to do an AJAX request call to local resource using, for example: demo.example.domain.com. But when I use localhost I can see the files.
How I can resolve this problem?
Thanks in advance.
Re: Error loading folders and files using virtual host