axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajeevr <raje...@cisco.com>
Subject Axis2 1.5 deploy time error - Access denied (java.lang.RuntimePermission createClassLoader)
Date Mon, 18 Jan 2010 10:12:43 GMT

Hi,

I am deploying Axis2 1.5 at WebSphere Platform 6.1. But while deployment I
get the below error. "createClassLoader" entry is restricted in was.policy
as per the rules in my organization. Any clue on solving this problem is
appreciated.


There is also a java.lang.NullPointerException thrown by
org.apache.axis2.deployment.DeploymentEngine.loadServices(
) but I am unable to fix it.



[1/15/10 14:31:34:845 CST] 0000001a SessionContex I   SESN0169I: Session
Manager found Webcontainer custom property HttpsIndicatorHeader with value
HttpsIndicatorHeader.
[1/15/10 14:31:34:847 CST] 0000001a SessionContex I   SESN0169I: Session
Manager found Webcontainer custom property
com.ibm.ws.webcontainer.invokefilterscompatibility with value true.
[1/15/10 14:31:36:291 CST] 0000001a ClusterBuilde I
org.apache.axis2.deployment.ClusterBuilder buildCluster Clustering has been
disabled
[1/15/10 14:31:36:488 CST] 0000001a WarBasedAxisC E
org.apache.axis2.deployment.WarBasedAxisConfigurator getAxisConfiguration
java.security.AccessControlException: Access denied
(java.lang.RuntimePermission createClassLoader): loading repository from
classpath
                                 java.security.AccessControlException:
Access denied (java.lang.RuntimePermission createClassLoader)
	at
java.security.AccessController.checkPermission(AccessController.java:108)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
	at
com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:212)
	at
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:620)
	at java.lang.ClassLoader.<init>(ClassLoader.java:136)
	at java.security.SecureClassLoader.<init>(SecureClassLoader.java:80)
	at java.net.URLClassLoader.<init>(URLClassLoader.java:256)
	at org.apache.axis2.deployment.util.Utils$6.run(Utils.java:350)
	at java.security.AccessController.doPrivileged(AccessController.java:197)
	at org.apache.axis2.deployment.util.Utils.getClassLoader(Utils.java:344)
	at org.apache.axis2.deployment.util.Utils.getClassLoader(Utils.java:309)
	at
org.apache.axis2.deployment.DeploymentEngine.setClassLoaders(DeploymentEngine.java:863)
	at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:146)
	at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:226)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1305)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:153)
	at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:887)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:809)
	at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:527)
	at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:364)
	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
	at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
	at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
	at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
	at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
	at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

[1/15/10 14:31:36:590 CST] 0000001a AxisServlet   I
org.apache.axis2.transport.http.AxisServlet initConfigContext
java.lang.NullPointerException
[1/15/10 14:31:36:594 CST] 0000001a ServletWrappe E   Uncaught init()
exception thrown by servlet AxisServlet
[1/15/10 14:31:36:601 CST] 0000001a ServletWrappe E   Deregister the mbean
because of uncaught init() exception thrown by servlet AxisServlet:
javax.servlet.ServletException
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:461)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:226)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1305)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:153)
	at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:887)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:809)
	at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:527)
	at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:364)
	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
	at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
	at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
	at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
	at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
	at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
---- Begin backtrace for Nested Throwables
javax.servlet.ServletException
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:532)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:226)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1305)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:153)
	at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:887)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:809)
	at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:527)
	at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:364)
	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
	at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
	at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
	at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
	at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
	at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
---- Begin backtrace for Nested Throwables
java.lang.NullPointerException
	at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
	at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
	at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:226)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1305)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:153)
	at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:887)
	at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:809)
	at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:527)
	at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:364)
	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
	at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
	at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
	at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
	at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
	at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
	at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
, 



Regards,
Rajeev

-- 
View this message in context: http://old.nabble.com/Axis2-1.5-deploy-time-error---Access-denied-%28java.lang.RuntimePermission-createClassLoader%29-tp27208379p27208379.html
Sent from the Axis - User mailing list archive at Nabble.com.


Mime
View raw message