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
[651 byte] By [
Martin] at [2007-11-9 15:27:40]

# 1 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
MarkN at 2007-11-11 23:29:52 >

# 2 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
Jim at 2007-11-11 23:30:48 >

# 3 Re: I need an expert !
Can you make the XML file available via HTTP?
Then your applet should have no problem loading it...
:L