Results 1 to 3 of 3

Thread: Unable to load Application Context using ClassPathXmlApplicationContext

  1. #1
    Join Date
    Mar 2008
    Posts
    2

    Default Unable to load Application Context using ClassPathXmlApplicationContext

    Hi,

    Once I'm trying to load the Application context using the below code

    ApplicationContext appCtx = new ClassPathXmlApplicationContext( "applicationContext.xml");

    It is giving a java.security.PrivilegedActionException. Anybody face this problem anytime before??

    Please help.

    Thanks
    Sreejith

  2. #2

    Default

    Are you working in a corporate environment? Your JVM might have a security manager policy that prevents certain code from running (e.g. unsigned, unlicensed, unapproved, etc.). If this is a case you would need to figure out the approved method to go about doing what you're trying to do (e.g. use a development-only / sandbox environment or server, sign the jar using your organization's private key, etc.).

    You may be able to catch the exception and inspect it for more details.

  3. #3
    Join Date
    Jan 2008
    Posts
    10

    Default

    http://java.sun.com/j2se/1.5.0/docs/...#AllPermission is a good reference for the permissions doug mentioned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •