users@glassfish.java.net

Re: Hudson On Sun App Server 8.2

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 03 May 2007 10:31:38 -0700

glassfish_at_javadesktop.org wrote On 05/03/07 07:29,:

>I am having a problem deploying Hudson on Sun Application Server 8.2. When I tried it on Glassfish, I had no problems. Does anyone know how to configure 8.2 to work with Hudson? The 8.2 logs say:
>
>
Root cause:

  Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)

Hudson requires "java.lang.RuntimePermission createClassLoader" which it has not been granted.

Solution:

1. Disable security manager (which is what GlassFish developer profile does by default, which is
   why you were able to deploy Hudson on GlassFish successfully), or

2. Grant the above (and possibly other) permissions to Hudson in your domain's server.policy file.



Jan



>[#|2007-04-27T10:35:01.969-0400|INFO|sun-appserver-ee8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|[AutoDeploy] Successfully autodeployed : /var/opt/SUNWappserver/domains/domain1/autodeploy/hudson.war.|#]
>
>[#|2007-04-27T10:35:16.200-0400|WARNING|sun-appserver-ee8.2|javax.enterprise.system.tools.verifier|_ThreadID=19;|setting attribute: context-root to: /hudson|#]
>
>[#|2007-04-27T10:35:16.658-0400|INFO|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=20;|WEB0100: Loading web module [hudson] in virtual server [server] at [/hudson]|#]
>
>[#|2007-04-27T10:35:17.361-0400|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=20;|WebModule[/hudson]Exception sending context initialized event to listener instance of class hudson.WebAppMain
>java.lang.ExceptionInInitializerError
> at hudson.WebAppMain.installLogger (WebAppMain.java:120)
> at hudson.WebAppMain.contextInitialized(WebAppMain.java:41)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
> at org.apache.catalina.core.StandardContext.start (StandardContext.java:4521)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
> at org.apache.catalina.core.ContainerBase.access$000 (ContainerBase.java:125)
> at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:809)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:646)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1331)
> at com.sun.enterprise.web.HttpServiceWebContainer.loadWebModule (HttpServiceWebContainer.java:867)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1040)
> at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
> at com.sun.enterprise.server.WebModuleDeployEventListener.moduleRedeployed(WebModuleDeployEventListener.java:308)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener (AdminEventMulticaster.java:922)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
> at com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent (ServerRuntimeMBean.java:64)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean (MBeanHelper.java:305)
> at com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:386)
> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke (MetaDataImpl.java:220)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at sun.reflect.GeneratedMethodAccessor21.invoke (Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke (ProxyClass.java:54)
> at $Proxy1.invoke(Unknown Source)
> at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke (SunoneInterceptor.java:272)
> at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
> at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
> at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run (RMIConnectionImpl.java:1245)
> at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
> at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java :585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages (TCPTransport.java:466)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
> at java.lang.Thread.run(Thread.java:595)
>Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
> at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> at java.security.AccessController.checkPermission(AccessController.java:427)
> at java.lang.SecurityManager.checkPermission (SecurityManager.java:532)
> at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
> at java.lang.ClassLoader.<init>(ClassLoader.java:225)
> at com.thoughtworks.xstream.core.util.CompositeClassLoader .<init>(CompositeClassLoader.java:39)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:191)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:181)
> at com.thoughtworks.xstream.XStream .<init>(XStream.java:156)
> at hudson.util.XStream2.<init>(XStream2.java:18)
> at hudson.model.Hudson.<clinit>(Hudson.java:1529)
> ... 53 more
>|#]
>
>[#|2007-04-27T10:35:17.365-0400|SEVERE|sun-appserver-ee8.2|org.apache.catalina.core.StandardContext|_ThreadID=20;|Error listenerStart|#]
>
>[#|2007-04-27T10:35:17.367-0400|SEVERE|sun-appserver-ee8.2|org.apache.catalina.core.StandardContext|_ThreadID=20;|Context startup failed due to previous errors|#]
>
>[#|2007-04-27T10:35:17.378-0400|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=20;|WebModule[/hudson]Exception sending context destroyed event to listener instance of class hudson.WebAppMain
>java.lang.NoClassDefFoundError
> at hudson.WebAppMain.contextDestroyed (WebAppMain.java:168)
> at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4051)
> at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4680)
> at org.apache.catalina.core.StandardContext.start (StandardContext.java:4550)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
> at org.apache.catalina.core.ContainerBase.access$000 (ContainerBase.java:125)
> at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:809)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:646)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1331)
> at com.sun.enterprise.web.HttpServiceWebContainer.loadWebModule (HttpServiceWebContainer.java:867)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1040)
> at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
> at com.sun.enterprise.server.WebModuleDeployEventListener.moduleRedeployed(WebModuleDeployEventListener.java:308)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener (AdminEventMulticaster.java:922)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
> at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
> at com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent (ServerRuntimeMBean.java:64)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean (MBeanHelper.java:305)
> at com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:386)
> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke (MetaDataImpl.java:220)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at sun.reflect.GeneratedMethodAccessor21.invoke (Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke (ProxyClass.java:54)
> at $Proxy1.invoke(Unknown Source)
> at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke (SunoneInterceptor.java:272)
> at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
> at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
> at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run (RMIConnectionImpl.java:1245)
> at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
> at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java :585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages (TCPTransport.java:466)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
> at java.lang.Thread.run(Thread.java:595)
>|#]
>[Message sent by forum member 'phife757' (phife757)]
>
>http://forums.java.net/jive/thread.jspa?messageID=215351
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>