Details

      Description

      When the tomcat folder is renamed (e.g. the version number is removed), portal will throw an exception (see below). Moving the whole liferay directory works correctly.

      Steps to reproduce:

      1. Use a bundle which was started earlier (e.g. build with ant snapshot-bundle)
      2. Rename the tomcat folder (e.g. remove the version number and just name it tomcat)
      3. Start up

      This results in the following exception:

      2019-09-25 12:23:01.069 ERROR [main][ModuleReadHookImpl:85] Unable to copy from file:/opt/liferay/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/com.liferay.portal.osgi.web.jasper.plugins.taglib.jar?protocol=jar&static=true to /opt/liferay/osgi/state/org.eclipse.osgi/73/0/bundleFile
      java.nio.file.NoSuchFileException: /opt/liferay/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/com.liferay.portal.osgi.web.jasper.plugins.taglib.jar
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:526)
      	at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
      	at java.nio.file.Files.copy(Files.java:1274)
      	at com.liferay.portal.bootstrap.ModuleReadHookImpl.process(ModuleReadHookImpl.java:65)
      	at org.eclipse.osgi.container.ModuleDatabase$Persistence.readModule(ModuleDatabase.java:1265)
      	at org.eclipse.osgi.container.ModuleDatabase$Persistence.load(ModuleDatabase.java:1160)
      	at org.eclipse.osgi.container.ModuleDatabase.load(ModuleDatabase.java:890)
      	at org.eclipse.osgi.storage.Storage.<init>(Storage.java:235)
      	at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:151)
      	at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:69)
      	at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
      	at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
      	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.initFramework(ModuleFrameworkImpl.java:279)
      	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.initFramework(ModuleFrameworkUtilAdapter.java:64)
      	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:222)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4682)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              zsolt.balogh Zsolt Balogh
              Participants of an Issue:
              Recent user:
              Harry Chai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 weeks ago

                Packages

                Version Package
                7.2.X
                Master