This Question is Assumed Answered

1 "correct" answer available (5 pts) 15 "helpful" answers available (3 pts)
12 Replies Last post: Jun 4, 2008 5:25 AM by tdeng

error accessing

Jun 2, 2008 2:38 AM

Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
Hi,
I am getting the following error while accessing the applet.

<Error> - An error occurred while loading this applet.
SyntaxError: file:///d:/soft/curl/start.curl:5[1]: Cannot import default manifest: SecurityException: An unprivileged applet tried to read the local file 'file:///d:/soft/curl/manifest.mcurl'. There is an error in the applet or the author assumed it would run with privilege.

please may i know how to over come this error.

thanks
ramana
Click to view fukuta's profile BlackBelt fukuta 118 posts since
Oct 17, 2007
1. Re: error accessing Jun 2, 2008 6:27 AM
Your applet tried to read local manifest file, so it required to be privileged.
You can append 'file:///d:/soft/curl/' to your privileged locations through Curl Control Panel's Security tab to give the applet privilege.
Click to view htabussum's profile Level 1 htabussum 6 posts since
Jan 31, 2008
2. Re: error accessing Jun 2, 2008 4:55 AM

For that you need to set the privileges...

In the Curl control panel, select the security tab, Click Add host and then add the privilege directory d:/soft/curl/ to the list of privileged locations.


Click to view Duke's profile Curl Duke 179 posts since
Oct 17, 2007
3. Re: error accessing Jun 2, 2008 8:55 AM
While making an applet privileged when running it from a local file is often useful, for real development you need to work with a web server, perhaps running it on localhost. The IDE comes with server licenses for use with localhost. And there is an IDE preference feature which lets you work easily with a web server while editing files. Here is the documentation from the IDE User's Guide. In your case, your applet needed local file access to read the .mcurl file.

" The Preferences... dialog also enables you to set URL mapping. Although local file access is sufficient for some testing and debugging purposes, it is often necessary to develop and debug an applet over an http connection. Mapping a URL to files open in the IDE allows you to test your applets over an http connection. The URL Mapping function can be useful when testing:

* Applets that pass query strings
* Applets that depend on the presence of local server applications (e.g., database connectivity, server-side technologies)
* Unprivileged applets that need network access
* Unprivileged applets that need local file access

In order to use URL mapping, you need to have access to a file system that mirrors the http URL, such as a personal web server on a local machine or an Intranet site on a local network.
Select the Enable URL mapping check box in the Preferences... dialog to map a URL to a source directory. When the check box is selected, the two text fields are activated. "
Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
4. Re: error accessing Jun 3, 2008 6:14 AM
in response to: htabussum

How can i access the curl control panel

thanks

ramana

Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
5. Re: error accessing Jun 3, 2008 6:16 AM
in response to: Duke

Hi Duke,

I host it in my tomcat web server localhost. I still getting this error.

Gilo World

<Error> - An error occurred while loading this applet.
SyntaxError: http://localhost:8080/curlapp/start.curl:3[1]: Cannot import default manifest: Error: Cannot get server license for applet at 'http://localhost:8080/curlapp/start.curl'. HttpMissingFileException: Status 404 while opening 'http://localhost:8080/curl-license-5.dat'. HttpMissingFileException: Status 404 while opening 'http://localhost:8080/curlapp/curl-license-5.dat'.

so now what should i do.

thanks

ramana

Click to view Kamal's profile Curl Kamal 149 posts since
Oct 17, 2007
6. Re: error accessing Jun 3, 2008 6:18 AM
in response to: ramanakallil
Start up Curl. On Win32 platform you will see a small chicklet (icon) which is mostly in the bottom right corner of the screen. Click on it and you will see the Control panel.
Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
7. Re: error accessing Jun 3, 2008 6:23 AM
in response to: Duke

ok i copied the file curl-license-5.dat to my webserver directory


but i still get this error

<Error> - An error occurred while loading this applet.
SyntaxError: http://localhost:8080/curlapp/start.curl:3[1]: Cannot
import default manifest: OpaqueSecurityException: A security error was
encountered when trying to make an http request or other network
connection.


thanks

ramana

Click to view htabussum's profile Level 1 htabussum 6 posts since
Jan 31, 2008
8. Re: error accessing Jun 3, 2008 6:33 AM
in response to: ramanakallil

Create a file curl-access.txt file with the following contents.

version: 2.0
allow-all:

and add this to the web application directory.


For more information for this read the curl documentation for curl-access.txt for more directives other than allow-all.

Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
9. Re: error accessing Jun 4, 2008 2:18 AM
in response to: htabussum

I have created the curl-access.txt with given parameters. Now i get the error


<Error> - An error occurred while loading this applet.
SyntaxError: http://localhost:8080/curlapp/start.curl:9[1]: Could not locate instance of 'package COM.CURL.LAYOUT-EDITOR.RUNTIME-SUPPORT'. Was using the following meta-data values: curl-api-version == 6.0, version == 3.0 Was using the following values for 'location-hints': http://localhost:8080/curlapp/COM.CURL.LAYOUT-EDITOR.RUNTIME-SUPPORT.3.0/runtime-support.scurl Encountered the following problems: OpaqueSecurityException: A security error was encountered when trying to make an http request or other network connection.


thanks

ramana

Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
10. Re: error accessing Jun 4, 2008 2:20 AM
in response to: Kamal

Ok kamal,

I have configured the control panel. But still the error

<Error> - An error occurred while loading this applet.
SyntaxError: http://localhost:8080/curlapp/start.curl:9[1]: Could not locate instance of 'package COM.CURL.LAYOUT-EDITOR.RUNTIME-SUPPORT'. Was using the following meta-data values: curl-api-version == 6.0, version == 3.0 Was using the following values for 'location-hints': http://localhost:8080/curlapp/COM.CURL.LAYOUT-EDITOR.RUNTIME-SUPPORT.3.0/runtime-support.scurl Encountered the following problems: OpaqueSecurityException: A security error was encountered when trying to make an http request or other network connection.


thanks

ramana

Click to view ramanakallil's profile Level 1 ramanakallil 7 posts since
May 30, 2008
11. Re: error accessing Jun 4, 2008 3:17 AM
in response to: ramanakallil

Hi Guys,

I understood the problem. The error occurs when i create curl applets using the Visual Layout Editor. But not other times.

Please can you tell me why. Do i have to configure additional things.


Thanks

ramana

Click to view tdeng's profile Level 3 tdeng 35 posts since
Oct 17, 2007
12. Re: error accessing Jun 4, 2008 5:25 AM
in response to: ramanakallil
Not exactly, I think this OpaqueSecurityException is caused by that your applet is not privilidged, and you didn't put the curl-access.txt to the correct location.
If you don't add localhost as a privilidged location in Curl Control Panel, then this curl-access.txt is needed for an applet to run (note in this case your applet is still not privilidged, which means you cannot access local resources without any limitation).

Since you said you have created curl-access.txt, this exception proves that it be possible for you to put it in a wrong directory. You have two choices about where to put this curl-access.txt, one is to put it just under the ROOT directory of your web server; another is that you won't put it under the ROOT directory, then you must put this file under EACH directory this applet will access for running. So, for beginners I would recommend to put it under the virtual ROOT directory of your web server, which will cause less problem even if you haven't understood how RTE deals with curl-access.txt.

And there is another way that you could simply do is adding localhost to your Curl Control Panel as privilidged.