Hi,
To my surprise, the installation of this latest version of Alfresco 6 has been made a terribly difficult thing to be done. I am pretty sure it could have been much much simpler.
I am following the installation documentation but not able to install it in my Windows workstation.
Here is the environment
OS: Windows 7 Professional 64Bit
Alfresco file used: alfresco-content-services-community-distribution-6.2.0-ga.zip
Database: PostgreSQL 9.5
Java: jdk-11.0.6
Tomcat: tomcat-9.0.30
The error shown when I start tomcat is as below:
Any idea what might be going wrong. Did I miss something?
Try creating this folder:
The directory specified by base and internal path [D:\Projects\alfresco\tom
cat9030/../modules/platform]\[] does not exist.
Thanks for the pointer.
I created the directories as below:
D:\Projects\alfresco\tomcat9030\modules\platform
D:\Projects\alfresco\tomcat9030\modules\share
Apart from this, there were some other issues also.
Just wanted to share so that, if anyone else facing similar problem in windows environment can get help from it.
1. The certificate generation with custom parameters command should carry double quotes only for Distinguished Name values only. Here is the command that I used to generate my certificates
run.cmd -alfrescoversion community -keysize 2048 -keystoretype JCEKS -truststoretype JCEKS -keystorepass Pass -truststorepass Alfresco -encstorepass Pass -encmetadatapass Pass -cacertdname "/C=IN/ST=Madhya Pradesh/L=Bhopal/O=My Company Name/OU=LLC/CN=Custom Alfresco CA" -repocertdname "/C=IN/ST=Madhya Pradesh/L=Maidenhead/O=My Company Name/OU=LLC/CN=Custom Alfresco Repository" -solrcertdname "/C=IN/ST=Madhya Pradesh/L=Maidenhead/O=My Company Name/OU=LLC/CN=Custom Alfresco Repository Client Solr" -browsercertdname "/C=IN/ST=Madhya Pradesh/L=Maidenhead/O=My Company Name/OU=LLC/CN=Custom Browser Client"
2. This password is also needed to be set in the file server.xml of tomcat at
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true" maxThreads="150" scheme="https" keystoreFile="D:\Projects\alfresco\alf_data\keystore\ssl.keystore" keystorePass="Pass" keystoreType="JCEKS" secure="true" connectionTimeout="240000" truststoreFile="D:\Projects\alfresco\alf_data\keystore\ssl.truststore" truststorePass="Pass" truststoreType="JCEKS" clientAuth="false" sslProtocol="TLS" />
Also, note that in above server.xml code, I have set ->
protocol="org.apache.coyote.http11.Http11NioProtocol"
Using any other value as mentioned in Alfresco install document, gives some sort of protocol error.
3. I have also added attribute -> maxHttpHeaderSize="32768"
to the server.xml file
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" maxHttpHeaderSize="32768" redirectPort="8443" />
4. Apart from that, my alfresco-global.properties file carries following values. Note the double slashes I have used in all windows path. Also, folder name in any path MUST not have any spaces or dots. Use camel case or underscore or dash only.
# Set this property unless you have explicitly chosen to expose some repository APIs without authentication solr.secureComms=https # # Custom content and index data location # #dir.root=/srv/alfresco/alf_data dir.root=D:\\Projects\\alfresco\\alf_data dir.keystore=${dir.root}\\keystore # ssl encryption encryption.ssl.keystore.location=${dir.keystore}\\ssl.keystore encryption.ssl.keystore.type=JCEKS encryption.ssl.keystore.keyMetaData.location=${dir.keystore}\\ssl-keystore-passwords.properties encryption.ssl.truststore.location=${dir.keystore}\\ssl.truststore encryption.ssl.truststore.type=JCEKS encryption.ssl.truststore.keyMetaData.location=${dir.keystore}\\ssl-truststore-passwords.properties # secret key keystore configuration encryption.keystore.location=${dir.keystore}\\keystore encryption.keystore.keyMetaData.location=${dir.keystore}\\keystore-passwords.properties encryption.keystore.type=JCEKS # # Sample database connection properties # db.username=postgres db.password=password # # Choose DB connection properties for your database, e.g. for PostgreSQL # db.driver=org.postgresql.Driver db.url=jdbc:postgresql://localhost:5432/alfresco # # URL Generation Parameters (The ${localname} token is replaced by the local server name) #------------- alfresco.context=alfresco alfresco.host=${localname} alfresco.port=8080 alfresco.protocol=http share.context=share share.host=${localname} share.port=8080 share.protocol=http # encryption solr.host=localhost solr.secureComms=https solr.port=8983 solr.port.ssl=8984 alfresco-pdf-renderer.root=D:\\Projects\\alfresco\\alfresco-pdf-renderer-1_1-win64 alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}\\alfresco-pdf-renderer alfresco-pdf-renderer.url=http://localhost:8090/ messaging.broker.url=failover:(tcp://localhost:8161)?timeout=3000
5. Active MQ, ImageMagick to be installed as mentioned in alfresco documentation. Use folder names with only underscore or dash only.
Hi @logicallimit,
Great to see you've now got Community installed. Also, many thanks for posting advice re: Windows mods - really helpful to other users.
All the best,
Hi @angelborroy,
I have the same issue, i am using my mac for the setup.
I have created the folder directory which you have mentioned but even after creating the folders.
I am still facing the same issue,
Any Solutions?
09-Sep-2020 16:24:17.427 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 09-Sep-2020 16:24:17.428 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 09-Sep-2020 16:24:17.438 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 09-Sep-2020 16:24:17.449 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 09-Sep-2020 16:24:17.451 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 09-Sep-2020 16:24:19.600 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.57 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 30 2020 21:49:10 UTC 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.57.0 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.14.6 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_222-b10 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: AdoptOpenJDK 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/mbyousaf/Desktop/Tomcat 09-Sep-2020 16:24:19.602 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Users/mbyousaf/Desktop/Tomcat 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/mbyousaf/Desktop/Tomcat/conf/logging.properties 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/mbyousaf/Desktop/Tomcat 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/mbyousaf/Desktop/Tomcat 09-Sep-2020 16:24:19.603 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/mbyousaf/Desktop/Tomcat/temp 09-Sep-2020 16:24:19.605 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/Users/mbyousaf/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] 09-Sep-2020 16:24:19.667 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 09-Sep-2020 16:24:19.679 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 09-Sep-2020 16:24:19.687 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 350 ms 09-Sep-2020 16:24:19.703 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 09-Sep-2020 16:24:19.704 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.57 09-Sep-2020 16:24:19.710 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/alfresco.xml] 09-Sep-2020 16:24:19.744 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet@401b4279] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139) at org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:690) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4803) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4939) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1822) 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.lang.IllegalArgumentException: The directory specified by base and internal path [/Users/mbyousaf/Desktop/Tomcat/../modules/platform]/[] does not exist. at org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:257) at org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:206) at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:265) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) ... 16 more 09-Sep-2020 16:24:19.744 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/alfresco.xml] java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet@401b4279] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1822) 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) 09-Sep-2020 16:24:19.745 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/alfresco.xml] has finished in [35] ms 09-Sep-2020 16:24:19.746 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/share.xml] 09-Sep-2020 16:24:19.749 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet@3d37cf9a] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139) at org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:690) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4803) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4939) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1822) 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.lang.IllegalArgumentException: The directory specified by base and internal path [/Users/mbyousaf/Desktop/Tomcat/../modules/share]/[] does not exist. at org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:257) at org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:206) at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:265) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) ... 16 more 09-Sep-2020 16:24:19.749 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/share.xml] java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet@3d37cf9a] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1822) 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) 09-Sep-2020 16:24:19.750 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/Users/mbyousaf/Desktop/Tomcat/conf/Catalina/localhost/share.xml] has finished in [4] ms 09-Sep-2020 16:24:19.752 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/Users/mbyousaf/Desktop/Tomcat/webapps/ROOT.war] 09-Sep-2020 16:24:19.754 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '100' did not find a matching property. 09-Sep-2020 16:24:19.958 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 09-Sep-2020 16:24:20.037 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/Users/mbyousaf/Desktop/Tomcat/webapps/ROOT.war] has finished in [285] ms 09-Sep-2020 16:24:20.038 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/Users/mbyousaf/Desktop/Tomcat/webapps/_vti_bin.war] 09-Sep-2020 16:24:20.182 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 09-Sep-2020 16:24:20.184 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/Users/mbyousaf/Desktop/Tomcat/webapps/_vti_bin.war] has finished in [146] ms 09-Sep-2020 16:24:20.186 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 09-Sep-2020 16:24:20.191 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 503 ms
Dose the user you are using to run tomcat have permission to read folder platform and share?
Hi,
Yes the user that i am using folder does have the permission to read folders platform and share
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.