Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

cancel
Showing results for 
Search instead for 
Did you mean: 
YanFeiHu
Member II

Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

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!

4 Replies
abhinavmishra14
Advanced

Re: Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

@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...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
YanFeiHu
Member II

Re: Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

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?

 

baseDir.png

 

 

   error.png

 

tcuser
Customer

Re: Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

I'm facing the same issue... did you solved it? Thank you!

YanFeiHu
Member II

Re: Deploying Alfresco Community Edition 7.1 on Tomcat with zip have error messages

Not yet!

And I would prefer some human experts to show me what I should to do.