Mar 24th, 2008, 10:43 PM
Unable to load Application Context using ClassPathXmlApplicationContext
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??
Mar 25th, 2008, 12:45 AM
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.
Mar 25th, 2008, 09:48 AM
http://java.sun.com/j2se/1.5.0/docs/...#AllPermission is a good reference for the permissions doug mentioned.