-
I need an expert !!!
I want to include an applet in a website.
My applet read an XML file.
I test it in my computer and everything is ok.
But when I load the page in a server, I have this exception:
javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could not be
instantiated: java.security.AccessControlException: Access denied (java.net.SocketPermission
"name of the server" )
at javax.xml.parsers.SaxParserFactory.newInstance(SaxParserFactory...
Is anyone able to help me ?
( I know some concept in xml and in parser but not enough to resolve this
problem alone, thanks in advance )
Martin
-
Re: I need an expert !!!
This problem has nothing to do with XML or parsers. Your applet doesn't have
permission to local resources when used from a browser. You need to get
the applet signed and/or change the policy file. Looking at the exception
info, it may also be that you are trying to access another server (or machine)
that the applet wasn't launched from.
"Martin" <martin_lewis_gr@hotmail.com> wrote:
>
>I want to include an applet in a website.
>My applet read an XML file.
>I test it in my computer and everything is ok.
>But when I load the page in a server, I have this exception:
>
>javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could not be
>instantiated: java.security.AccessControlException: Access denied (java.net.SocketPermission
>"name of the server" )
>at javax.xml.parsers.SaxParserFactory.newInstance(SaxParserFactory...
>
>Is anyone able to help me ?
>
>( I know some concept in xml and in parser but not enough to resolve this
>problem alone, thanks in advance )
>
>Martin
-
Re: I need an expert !!!
An applet can only access resources that reside on the same server as the
applet's code. Without your code, I'll assume that you are trying to load
an XML file that either exists on a different server or on the browser's
local computer.
"Martin" <martin_lewis_gr@hotmail.com> wrote:
>
>I want to include an applet in a website.
>My applet read an XML file.
>I test it in my computer and everything is ok.
>But when I load the page in a server, I have this exception:
>
>javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could not be
>instantiated: java.security.AccessControlException: Access denied (java.net.SocketPermission
>"name of the server" )
>at javax.xml.parsers.SaxParserFactory.newInstance(SaxParserFactory...
>
>Is anyone able to help me ?
>
>( I know some concept in xml and in parser but not enough to resolve this
>problem alone, thanks in advance )
>
>Martin
-
Re: I need an expert !!!
Can you make the XML file available via HTTP?
Then your applet should have no problem loading it...
:L
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks