-
Mar 24th, 2008, 10:43 PM
#1
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
-
Mar 25th, 2008, 12:45 AM
#2
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
#3
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
-
Forum Rules