I need an expert !!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: I need an expert !!!

  1. #1
    Martin Guest

    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

  2. #2
    MarkN Guest

    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



  3. #3
    Jim Guest

    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



  4. #4
    Laurence Moroney Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center