Error in glassfish

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in glassfish

Richard Bair-2
I get the following error when deploying Hudson 1.78 to glassfish:

[#|2007-02-07T17:54:55.963-0600|SEVERE|sun-appserver-pe9.0|
javax.enterprise.system.container.web|
_ThreadID=23;_ThreadName=Thread-92;_RequestID=c2c8133d-8ffb-453b-8840-
fc9fbdcebfe8;|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:40)
         at org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.java:4236)
         at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4760)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
         at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:833)
         at org.apache.catalina.core.ContainerBase.access$000
(ContainerBase.java:131)
         at org.apache.catalina.core.ContainerBase
$PrivilegedAddChild.run(ContainerBase.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:815)
         at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:662)
         at com.sun.enterprise.web.WebContainer.loadWebModule
(WebContainer.java:1479)
         at com.sun.enterprise.web.WebContainer.loadWebModule
(WebContainer.java:1143)
         at  
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed
(WebModuleDeployEventListener.java:171)
         at  
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed
(WebModuleDeployEventListener.java:275)
         at  
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployE
ventListener(AdminEventMulticaster.java:954)
         at  
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployE
vent(AdminEventMulticaster.java:941)
         at  
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent
(AdminEventMulticaster.java:448)
         at  
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent
(AdminEventMulticaster.java:160)
         at  
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multic
astEvent(DeploymentNotificationHelper.java:296)
         at  
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEv
ent(DeploymentServiceUtils.java:203)
         at  
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEv
ent(ServerDeploymentTarget.java:285)
         at  
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase
(ApplicationStartPhase.java:119)
         at  
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase
(DeploymentPhase.java:95)
         at  
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
PEDeploymentService.java:871)
         at  
com.sun.enterprise.deployment.phasing.PEDeploymentService.start
(PEDeploymentService.java:541)
         at  
com.sun.enterprise.deployment.phasing.PEDeploymentService.start
(PEDeploymentService.java:585)
         at  
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start
(ApplicationsConfigMBean.java:719)
         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:353)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean
(MBeanHelper.java:336)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke
(BaseConfigMBean.java:448)
         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:77)
         at $Proxy1.invoke(Unknown Source)
         at  
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke
(SunoneInterceptor.java:297)
         at  
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplicat
ion(DeploymentClientUtils.java:133)
         at com.sun.enterprise.deployment.client.DeployAction.run
(DeployAction.java:517)
         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:1424)
         ... 48 more
|#]


Any idea? How are access control exceptions handled in webapps?

Thanks
Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error in glassfish

Richard Bair-2
The disconcerting part is that I did have hudson installed and  
working, then I bounced the server, and now death.

Richard

On Feb 7, 2007, at 3:55 PM, Richard Bair wrote:

> I get the following error when deploying Hudson 1.78 to glassfish:
>
> [#|2007-02-07T17:54:55.963-0600|SEVERE|sun-appserver-pe9.0|
> javax.enterprise.system.container.web|
> _ThreadID=23;_ThreadName=Thread-92;_RequestID=c2c8133d-8ffb-453b-8840-
> fc9fbdcebfe8;|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:40)
>         at org.apache.catalina.core.StandardContext.listenerStart
> (StandardContext.java:4236)
>         at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4760)
>         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
>         at org.apache.catalina.core.ContainerBase.addChildInternal
> (ContainerBase.java:833)
>         at org.apache.catalina.core.ContainerBase.access$000
> (ContainerBase.java:131)
>         at org.apache.catalina.core.ContainerBase
> $PrivilegedAddChild.run(ContainerBase.java:153)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.apache.catalina.core.ContainerBase.addChild
> (ContainerBase.java:815)
>         at org.apache.catalina.core.StandardHost.addChild
> (StandardHost.java:662)
>         at com.sun.enterprise.web.WebContainer.loadWebModule
> (WebContainer.java:1479)
>         at com.sun.enterprise.web.WebContainer.loadWebModule
> (WebContainer.java:1143)
>         at  
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(
> WebModuleDeployEventListener.java:171)
>         at  
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(
> WebModuleDeployEventListener.java:275)
>         at  
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeplo
> yEventListener(AdminEventMulticaster.java:954)
>         at  
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeplo
> yEvent(AdminEventMulticaster.java:941)
>         at  
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent
> (AdminEventMulticaster.java:448)
>         at  
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent
> (AdminEventMulticaster.java:160)
>         at  
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.mult
> icastEvent(DeploymentNotificationHelper.java:296)
>         at  
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicast
> Event(DeploymentServiceUtils.java:203)
>         at  
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStart
> Event(ServerDeploymentTarget.java:285)
>         at  
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase
> (ApplicationStartPhase.java:119)
>         at  
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase
> (DeploymentPhase.java:95)
>         at  
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhase
> s(PEDeploymentService.java:871)
>         at  
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start
> (PEDeploymentService.java:541)
>         at  
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start
> (PEDeploymentService.java:585)
>         at  
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start
> (ApplicationsConfigMBean.java:719)
>         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:353)
>         at  
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean
> (MBeanHelper.java:336)
>         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke
> (BaseConfigMBean.java:448)
>         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:77)
>         at $Proxy1.invoke(Unknown Source)
>         at  
> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke
> (SunoneInterceptor.java:297)
>         at  
> com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplic
> ation(DeploymentClientUtils.java:133)
>         at com.sun.enterprise.deployment.client.DeployAction.run
> (DeployAction.java:517)
>         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:1424)
>         ... 48 more
> |#]
>
>
> Any idea? How are access control exceptions handled in webapps?
>
> Thanks
> Richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error in glassfish

Kohsuke Kawaguchi-2
In reply to this post by Richard Bair-2

The root cause of the error is "java.security.AccessControlException:
access denied (java.lang.RuntimePermission createClassLoader)"

So Hudson is failing to create classloaders. You do need to give Hudson
a permission to do so (along with a whole bunch of permissions like
touching files and launching processes.)

Glassfish by default doesn't use any security manager, so you must have
turned it on intentionally or accidentally.

There might be some blogs out there that explains how to disable it.


Richard Bair wrote:
> I get the following error when deploying Hudson 1.78 to glassfish:
>
> [#|2007-02-07T17:54:55.963-0600|SEVERE|sun-appserver-pe9.0|
> javax.enterprise.system.container.web|
> _ThreadID=23;_ThreadName=Thread-92;_RequestID=c2c8133d-8ffb-453b-8840-
> fc9fbdcebfe8;|WebModule[/hudson]Exception sending context initialized  
> event to listener instance of class hudson.WebAppMain
> java.lang.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error in glassfish

Richard Bair-2
Yep, sure enough. I turned off the security manager and deployment  
works again. Thanks.

Richard

On Feb 7, 2007, at 5:40 PM, Kohsuke Kawaguchi wrote:

>
> The root cause of the error is  
> "java.security.AccessControlException: access denied  
> (java.lang.RuntimePermission createClassLoader)"
>
> So Hudson is failing to create classloaders. You do need to give  
> Hudson a permission to do so (along with a whole bunch of  
> permissions like touching files and launching processes.)
>
> Glassfish by default doesn't use any security manager, so you must  
> have turned it on intentionally or accidentally.
>
> There might be some blogs out there that explains how to disable it.
>
>
> Richard Bair wrote:
>> I get the following error when deploying Hudson 1.78 to glassfish:
>> [#|2007-02-07T17:54:55.963-0600|SEVERE|sun-appserver-pe9.0|  
>> javax.enterprise.system.container.web|  
>> _ThreadID=23;_ThreadName=Thread-92;_RequestID=c2c8133d-8ffb-453b-8840
>> - fc9fbdcebfe8;|WebModule[/hudson]Exception sending context  
>> initialized  event to listener instance of class hudson.WebAppMain
>> java.lang.
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]