Foren

Liferay CE 7 Tomcat GA4 install woes

thumbnail
William Gosse, geändert vor 6 Jahren.

Liferay CE 7 Tomcat GA4 install woes

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
I'm trying to install to install the Liferay CE 7 and DXP Tomcat GA4 bundle. I've done this several times before on other machine but on this one laptop I get the following exception in the liferay log file the first time I run Liferay:
15:16:00,556 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:134)
	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)
15:16:00,556 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:141)
	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)
15:16:00,572 ERROR [localhost-startStop-1][PortalBeanLocatorUtil:109] BeanLocator is null


The server starts but liferay isn't running. If I try to start it a second time I see the following new exceptions:
15:26:17,564 ERROR [localhost-startStop-1][ModuleFrameworkImpl:640] org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\1\0\bundleFile
org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\1\0\bundleFile
	at org.eclipse.osgi.storage.Storage.getContentFile0(Storage.java:769)
	at org.eclipse.osgi.storage.Storage.getContentFile(Storage.java:745)
	at org.eclipse.osgi.storage.Storage.install(Storage.java:510)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._addBundle(ModuleFrameworkImpl.java:637)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._installInitialBundle(ModuleFrameworkImpl.java:933)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1232)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:413)
	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:255)
	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)
15:26:17,579 ERROR [localhost-startStop-1][ModuleFrameworkImpl:969] com.liferay.portal.kernel.exception.PortalException: org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\1\0\bundleFile
com.liferay.portal.kernel.exception.PortalException: org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\1\0\bundleFile
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._addBundle(ModuleFrameworkImpl.java:642)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._installInitialBundle(ModuleFrameworkImpl.java:933)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1232)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:413)
	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:255)
	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: org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\1\0\bundleFile
	at org.eclipse.osgi.storage.Storage.getContentFile0(Storage.java:769)
	at org.eclipse.osgi.storage.Storage.getContentFile(Storage.java:745)
	at org.eclipse.osgi.storage.Storage.install(Storage.java:510)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._addBundle(ModuleFrameworkImpl.java:637)
	... 18 more
15:26:17,626 ERROR [localhost-startStop-1][ModuleFrameworkImpl:640] org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital-enterprise-7.0-sp4\osgi\state\org.eclipse.osgi\2\0\bundleFile
org.osgi.framework.BundleException: Error while renaming bundle file to final location: C:\Dev\liferay-dxp-digital
...


In tomcat's catalina log I also see:
30-Aug-2017 15:16:23.856 INFO [Active Thread: Equinox Container: f02e891d-968d-0017-1154-cf972e0510fb] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [java.net.URI]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [java.net.URI]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1328)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1316)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1181)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at com.liferay.portal.module.framework.ModuleFrameworkClassLoader.loadClass(ModuleFrameworkClassLoader.java:98)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.osgi.container.ModuleDatabase$Persistence.writeMap(ModuleDatabase.java:1320)
	at org.eclipse.osgi.container.ModuleDatabase$Persistence.writeGenericInfo(ModuleDatabase.java:1272)
	at org.eclipse.osgi.container.ModuleDatabase$Persistence.writeModule(ModuleDatabase.java:1068)
	at org.eclipse.osgi.container.ModuleDatabase$Persistence.store(ModuleDatabase.java:972)
	at org.eclipse.osgi.container.ModuleDatabase.store(ModuleDatabase.java:853)
	at org.eclipse.osgi.storage.Storage.save0(Storage.java:1043)
	at org.eclipse.osgi.storage.Storage.save(Storage.java:1011)
	at org.eclipse.osgi.internal.framework.StorageSaver$StorageSaverTask.run(StorageSaver.java:28)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)


It's probably something specific to this machine but like to see if there's some kind of work around.
thumbnail
William Gosse, geändert vor 6 Jahren.

RE: Liferay CE 7 Tomcat GA4 install woes

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
Installing the Wildfly bundle seem to be more successful on my laptop for some strange reason.