Re: [Dev] [Greg] Jaggery error when G-Reg starts up

2014-09-28 Thread Prasanna Dangalla
Hi

In path
wso2greg-5.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/publisher/modules
there isn't a module name lifecycle.  Is this the issue ?

In addition in
wso2greg-5.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/greg-publisher/config/app.js
line 54 context is mentioned as /publisher, I think it should be
/greg-publisher. When I changed it the server starts, but the lifecycle
error remains.

Thanks

On Sun, Sep 28, 2014 at 10:21 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi,

 I'm getting the following error when starting the G-Reg server from
 wso2-dev.



 ERROR {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.executeScripts(TomcatJaggeryWebappsDeployer.java:477)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.access$500(TomcatJaggeryWebappsDeployer.java:62)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:292)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at
 org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:344)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:266)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:206)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:240)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:166)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:111)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
 at
 org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:489)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
 at
 org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:81)
 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:597)
 at
 

Re: [Dev] [Greg] Jaggery error when G-Reg starts up

2014-09-28 Thread Sameera Medagammaddegedara
Hi Prasanna,

In path wso2greg-5.0.0-SNAPSHOT/
 repository/deployment/server/jaggeryapps/publisher/modules there isn't a
 module name lifecycle.  Is this the issue ?

Yes

This module appears to be missing from the org.wso2.es.feature. I have
added it and committed the fix to master now.

In addition in wso2greg-5.0.0-SNAPSHOT/
 repository/deployment/server/jaggeryapps/greg-publisher/config/app.js line
 54 context is mentioned as /publisher, I think it should be
 /greg-publisher. When I changed it the server starts, but the lifecycle
 error remains.

I do not think we need to name it as the greg-publisher.The reason for this
are as follows:

   1. The greg-publisher is a copy of the ES Publisher containing custom
   changes.These changes were applied to the core of the Publisher as , ES
   1.0.0 did not have adequate extension points.
   2. This is no longer case as all changes in greg-publisher are now
   captured in a single folder (Work done by Shazni ,Heshani and Denuwanthi

Thank You,
Sameera

On Sun, Sep 28, 2014 at 10:21 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi,

 I'm getting the following error when starting the G-Reg server from
 wso2-dev.



 ERROR {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.executeScripts(TomcatJaggeryWebappsDeployer.java:477)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.access$500(TomcatJaggeryWebappsDeployer.java:62)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:292)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at
 org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:344)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:266)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:206)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:240)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:166)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:111)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
 at
 org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:489)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
 at
 org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
 at
 

Re: [Dev] [Greg] Jaggery error when G-Reg starts up

2014-09-28 Thread Prasanna Dangalla
Hi Sameera,

Thanks for the prompt reply. Now its working

Thanks

On Sun, Sep 28, 2014 at 11:06 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Prasanna,

 In path wso2greg-5.0.0-SNAPSHOT/
 repository/deployment/server/jaggeryapps/publisher/modules there isn't a
 module name lifecycle.  Is this the issue ?

 Yes

 This module appears to be missing from the org.wso2.es.feature. I have
 added it and committed the fix to master now.

 In addition in wso2greg-5.0.0-SNAPSHOT/
 repository/deployment/server/jaggeryapps/greg-publisher/config/app.js
 line 54 context is mentioned as /publisher, I think it should be
 /greg-publisher. When I changed it the server starts, but the lifecycle
 error remains.

 I do not think we need to name it as the greg-publisher.The reason for
 this are as follows:

1. The greg-publisher is a copy of the ES Publisher containing custom
changes.These changes were applied to the core of the Publisher as , ES
1.0.0 did not have adequate extension points.
2. This is no longer case as all changes in greg-publisher are now
captured in a single folder (Work done by Shazni ,Heshani and Denuwanthi

 Thank You,
 Sameera

 On Sun, Sep 28, 2014 at 10:21 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi,

 I'm getting the following error when starting the G-Reg server from
 wso2-dev.



 ERROR {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : lifecycle (/publisher/config/app.js#39)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.executeScripts(TomcatJaggeryWebappsDeployer.java:477)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.access$500(TomcatJaggeryWebappsDeployer.java:62)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:292)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at
 org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:344)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:266)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:206)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:240)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:166)
 at
 org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:111)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
 at
 org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:489)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
 at