01-19-2022 09:13 AM
Hi;
There was an error message as below when I runing Tomcat 9.
'2022-01-19 08:44:07,425 ERROR [web.context.ContextLoader] [main] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 00190004 Keystores are invalid
Caused by: org.alfresco.error.AlfrescoRuntimeException: 00190003 Failed to create key: metadata
in key store:
Location: D:/Alfresco/alf_data/keystore/keystore
Provider: null
Type: pkcs12'
So would you please show me what can I do?
Thank you!
01-21-2022 10:57 AM
@YanFeiHu checkout the solution here: https://hub.alfresco.com/t5/alfresco-content-services-forum/problem-installing-alfresco-content-serv...
Fix the JAVA_TOOL_OPTIONS config in tomcat/bin/catalina.bat so that keystore can be read. Make sure you copy the keystore files here: D:/Alfresco/tomcat/shared/classes/alfresco/extension/keystore/metadata-keystore
set "JAVA_TOOL_OPTIONS=-Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=D:/Alfresco/tomcat/shared/classes/alfresco/extension/keystore/metadata-keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede"
See example here: https://github.com/abhinavmishra14/alfresco7-solr-localtransform-dist-setup/blob/main/windows-platfo...
01-22-2022 03:12 AM
Dear Abhinav;
Thank you so much for your help!
After I fixed the JAVA_TOOL_OPTIONS config in catalina.bat as below and then copied the keystore files to "D:/ProgramFiles/ApacheSWFDT/Tomcat90/shared/classes/alfresco/extension/keystore/metadata-keystore", there still have the same error.
set "JAVA_TOOL_OPTIONS=-Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=D:/ProgramFiles/ApacheSWFDT/Tomcat90/shared/classes/alfresco/extension/keystore/metadata-keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede"
By the way, this is my first time to try install Alfresco Community Editon, So I am afriad is there have some wrong else?
02-25-2022 08:13 AM
I'm facing the same issue... did you solved it? Thank you!
03-02-2022 09:19 AM
Not yet!
And I would prefer some human experts to show me what I should to do.
Explore our Alfresco products with the links below. Use labels to filter content by product module.