Fórum

server not starting

thumbnail
Ujjainee Sarkar, modificado 7 Anos atrás.

server not starting

Regular Member Postagens: 127 Data de Entrada: 20/07/16 Postagens Recentes
Why my server isn't starting while it is the same server on which I was working previously. Its throwing the following error.

14:05:54,385 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:67] Unable to configure the class loader for the module framework
14:05:54,393 ERROR [localhost-startStop-1][ModuleFrameworkAdapterHelper:81] Unable to load the module framework
27-Mar-2017 14:05:54.393 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
java.lang.ExceptionInInitializerError
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:241)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Missing D:\Raj K Tiwari\Liferay DXP CE\liferay-ce-portal-7.0-ga3\osgi\core
at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:83)
at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.<clinit>(ModuleFrameworkUtilAdapter.java:144)
... 14 more
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Missing D:\Raj K Tiwari\Liferay DXP CE\liferay-ce-portal-7.0-ga3\osgi\core
at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:71)
at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.<init>(ModuleFrameworkAdapterHelper.java:78)
... 15 more
Caused by: java.lang.IllegalStateException: Missing D:\Raj K Tiwari\Liferay DXP CE\liferay-ce-portal-7.0-ga3\osgi\core
at com.liferay.portal.module.framework.RuntimeClassPathResolver.getClassPathURLs(RuntimeClassPathResolver.java:39)
at com.liferay.portal.module.framework.ModuleFrameworkAdapterHelper.getClassLoader(ModuleFrameworkAdapterHelper.java:59)
... 16 more

27-Mar-2017 14:05:54.394 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
27-Mar-2017 14:05:54.395 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
14:05:54,426 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:132)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
14:05:54,432 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:53)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:139)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
27-Mar-2017 14:05:54.433 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:146)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

27-Mar-2017 14:05:54.447 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor D:\Raj K Tiwari\Liferay DXP CE\liferay-ce-portal-tomcat-7.0-ga3-20160804222206210\liferay-ce-portal-7.0-ga3\tomcat-8.0.32\conf\Catalina\localhost\ROOT.xml has finished in 23,942 ms
27-Mar-2017 14:05:54.449 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
27-Mar-2017 14:05:54.461 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
27-Mar-2017 14:05:54.468 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 24003 ms

But even after this the server is not starting. What should I do?
Jan Tošovský, modificado 7 Anos atrás.

RE: server not starting

Liferay Master Postagens: 566 Data de Entrada: 22/07/10 Postagens Recentes
In your log there is written:
Caused by: java.lang.IllegalStateException: Missing D:\Raj K Tiwari\Liferay DXP CE\liferay-ce-portal-7.0-ga3\osgi\core


In osgi folders there are some jars which are mandatory for proper LR run. Just copy them from another instance which works fine.

Jan
thumbnail
Ujjainee Sarkar, modificado 7 Anos atrás.

RE: server not starting

Regular Member Postagens: 127 Data de Entrada: 20/07/16 Postagens Recentes
Thanks Jan for the suggestion. I will try it and let you know.
Kushagra Khanna, modificado 6 Anos atrás.

RE: server not starting

Junior Member Postagens: 45 Data de Entrada: 28/12/14 Postagens Recentes
Hi Ujjainee ,

I am facing the same issue.
You have found any solution on this for the same.

Thanks,
Kushagra
thumbnail
Olaf Kock, modificado 6 Anos atrás.

RE: server not starting

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
I've recently seen a regression about problems with spaces in directory names. If you have these, it might be worth trying a different directory as your installation base. I'm not sure about the affected versions (but you don't mention which one you're running anyways).

Other than that, the hints from above should work.