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!
@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...
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?
I'm facing the same issue... did you solved it? Thank you!
Not yet!
And I would prefer some human experts to show me what I should to do.
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.