AnsweredAssumed Answered

Webquickstart installation failed using AMP and WAR files

Question asked by jiby.jose on Dec 19, 2018
Latest reply on Jan 4, 2019 by jiby.jose
I am trying to install webquick start using docker.
I have two docker files as if below.
dockerfile 1
FROM alfresco/alfresco-content-repository-community:6.1.1

COPY uploader-plus-repo-1.6.amp /usr/local/tomcat/amps/uploader-plus-repo-1.6.amp

COPY alfresco-community-wcmqs-3.4.b.amp /usr/local/tomcat/amps/alfresco-community-wcmqs-3.4.b.amp

RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps/uploader-plus-repo-1.6.amp \
/usr/local/tomcat/webapps/alfresco -nobackup -force

RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps/alfresco-community-wcmqs-3.4.b.amp \
/usr/local/tomcat/webapps/alfresco -nobackup -force
dockerfile 2
FROM alfresco/alfresco-share:6.0.c

COPY uploader-plus-surf-1.6.amp /usr/local/tomcat/amps_share/uploader-plus-surf-1.6.amp

COPY alfresco-community-wcmqs-share-3.4.b.amp /usr/local/tomcat/amps_share/alfresco-community-wcmqs-share-3.4.b.amp

RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps_share/uploader-plus-surf-1.6.amp \
/usr/local/tomcat/webapps/share -nobackup -force

RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps_share/alfresco-community-wcmqs-share-3.4.b.amp \
/usr/local/tomcat/webapps/share -nobackup -force
I manually copied the awe.war and wcmqs.war,
docker cp 'D:\Alfresco\editAndCopyToVM\awe.war' dockercompose_alfresco_1:/usr/local/tomcat/webapps
docker cp 'D:\Alfresco\editAndCopyToVM\wcmqs.war' dockercompose_alfresco_1:/usr/local/tomcat/webapps
When I started the Alfresco using docker-compose up I am getting error:
While deploying web application archive awe.war I am getting error:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/awe]]
The following is the error in my log.
0-Dec-2018 08:46:43.886 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
20-Dec-2018 08:48:46.394 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
20-Dec-2018 08:48:46.510 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
20-Dec-2018 09:27:14.068 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
20-Dec-2018 09:28:55.947 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
20-Dec-2018 09:28:56.027 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [Alfresco Web Editor Filter]
java.lang.ExceptionInInitializerError
at org.alfresco.web.awe.filter.WebEditorFilter.<clinit>(WebEditorFilter.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:151)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4599)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:726)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "org.apache.commons.logging.LogFactory.HashtableImpl" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
at java.lang.System.getProperty(System.java:717)
at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320)
at org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)
Can somebody please help me to fix this.

Outcomes