cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal Bhatt <kbh...@tt.com.au>
Subject Re: [2.2] Deployment on to Glassfish
Date Tue, 22 Apr 2008 08:09:52 GMT
Kamal Bhatt wrote:
> Hi,
> I am trying to deploy Cocoon 2.2 and an error on deployment. There 
> doesn't seem to be anything useful in the logs:
>
> [#|2008-04-22T16:03:28.000+1000|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=Timer-5;|PWC1412:

> WebModule[/apps/ccn2] ServletContext.log():Apache Cocoon Spring 
> Configurator v1.0.1 is running in mode 'prod'.|#]
>    at com.sun.enterprise.web.WebModule.start(WebModule.java:302)
>    at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:960) 
>
>    at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
>    at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
>    at 
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1562)
>    at 
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1205)
>    at 
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:172)

>
>    at 
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:276)

>
>    at 
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:949)

>
>    at 
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:936)

>
>    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.multicastEvent(DeploymentNotificationHelper.java:295)

>
>    at 
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:208)

>
>    at 
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(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:892)

>
>    at 
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)

>
>    at 
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)

>
>    at 
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:542)

>
>    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.GeneratedMethodAccessor25.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.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:508)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:489)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:436) 
>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:361)

>
>    at java.util.TimerThread.mainLoop(Timer.java:512)
>    at java.util.TimerThread.run(Timer.java:462)
> |#]
> [#|2008-04-22T16:03:30.453+1000|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=Timer-5;_RequestID=654b34ae-31f8-4f01-8cf0-57efeb7b8d9d;|Exception

> during unregistration of servletstats
> java.lang.NullPointerException
>    at 
> com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.unregisterServletStats(MonitoringRegistrationHelper.java:523)

>
>    at 
> com.sun.enterprise.web.WebContainer.unregisterServletStats(WebContainer.java:2873) 
>
>    at 
> com.sun.enterprise.web.WebContainer.disableMonitoring(WebContainer.java:2701) 
>
>    at com.sun.enterprise.web.WebModule.stop(WebModule.java:315)
>    at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5167)
>    at com.sun.enterprise.web.WebModule.start(WebModule.java:302)
>    at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:960) 
>
>    at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
>    at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
>    at 
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1562)
>    at 
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1205)
>    at 
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:172)

>
>    at 
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:276)

>
>    at 
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:949)

>
>    at 
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:936)

>
>    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.multicastEvent(DeploymentNotificationHelper.java:295)

>
>    at 
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:208)

>
>    at 
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(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:892)

>
>    at 
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)

>
>    at 
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)

>
>    at 
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:542)

>
>    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.GeneratedMethodAccessor25.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.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:508)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:489)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:436) 
>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)

>
>    at 
> com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:361)

>
>    at java.util.TimerThread.mainLoop(Timer.java:512)
>    at java.util.TimerThread.run(Timer.java:462)
> |#]
>
> Those anyone have any thoughts? There is nothing overly unusual about 
> my applications, it is just a standard application with single block 
> and no extra code. The only thing unusual about it is I am using 
> map:mount at the sitemap level.
>
> Cheers.
>
This is partially fixed. On the latest version of Glassfish I got it to 
work, but with new issues. That problem was that there must be a '/' 
after the context-path. Eg:

  <bean id="au.com.tt.ccm.cocoon-ccm.service" 
class="org.apache.cocoon.sitemap.SitemapServlet">
    <servlet:context mount-path="/cocoon-ccm" 
context-path="blockcontext:/cocoon-ccm/">
    </servlet:context>       
  </bean>

Will work.
This:
  <bean id="au.com.tt.ccm.cocoon-ccm.service" 
class="org.apache.cocoon.sitemap.SitemapServlet">
    <servlet:context mount-path="/cocoon-ccm" 
context-path="blockcontext:/cocoon-ccm">
    </servlet:context>       
  </bean>

Will not.

Is this a bug or a very stupid error.



-- 
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message