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
>> 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
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>>     at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>     at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>>     at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>>     at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>>     at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>>     at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>     at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>     at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>     at
>> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
>>     at
>> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
>>     at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
>>     at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
>>     at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
>>     at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
>>     at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
>>     at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
>>     at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
>>     at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>     at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>>     at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>     at java.lang.Thread.run(Thread.java:695)
>> Caused by: 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.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>     at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>     at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>>     at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>     at
>> org.jaggeryjs.rhino.publisher.config.c0._c_script_0(/publisher/config/app.js:39)
>>     at
>> org.jaggeryjs.rhino.publisher.config.c0.call(/publisher/config/app.js)
>>     at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>>     at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>>     at
>> org.jaggeryjs.rhino.publisher.config.c0.call(/publisher/config/app.js)
>>     at
>> org.jaggeryjs.rhino.publisher.config.c0.exec(/publisher/config/app.js)
>>     at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
>>     ... 71 more
>> Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: A
>> module cannot be found with the specified name : lifecycle
>>     at
>> org.jaggeryjs.jaggery.core.manager.CommonManager.require(CommonManager.java:235)
>>     at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:322)
>>     at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>     at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>     ... 80 more
>>
>>
>> Thanks
>>
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to