cancel
Showing results for 
Search instead for 
Did you mean: 

Error ClassNotFoundException - Fail to bootstrap Alfresco 7.1

maqsood
Confirmed Champ
Confirmed Champ

Hi Community,

I've set up newly ACS 7.x (seven.one) in an RHEL environment and bootstrapped the application first time. The bootstrap is getting failed for /alfresco, but successful for /share application. Sharing the logs from catalina.out file below as alfresco.log has 0 content.

Error is same as below for the two classes : WebDAVSessionListener & CORSContextListener

SEVERE: Error configuring application listener of class [org.alfresco.repo.webdav.WebDAVSessionListener]
java.lang.ClassNotFoundException: org.alfresco.repo.webdav.WebDAVSessionListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1407)

On further trouble shooting, I found both org.alfresco.repo.webdav.WebDAVSessionListener & org.alfresco.web.app.servlet.CORSContextListener are missing in alfresco.war\WEB-INF\lib\alfresco-repository-11.140.jar\org\alfresco\repo\webdav & alfresco.war\WEB-INF\classes\org\alfresco\web\app\servlet\

Has anbody encountered this issue in ACS7.1 community installation too?

Any fix/ suggestion/ pointer would be highly appreciated.

ENV: Alfresco 7.x (seven.one) Enterprise, Tomcat 9.0.48 & Postgres 13.3 on AWS EC2 (RHEL)

Regards,
Maqsood

8 REPLIES 8

abhinavmishra14
World-Class Innovator
World-Class Innovator

Duplicate of this: https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-7-1-bootstrap-failed/m-p/310429...

Please check the installation steps carefully and see if you have been missing anything. Also check if alfresco.war is exploading correctly. Make sure right permissions are provided when starting the tomcat.

The classes are part of remore-api not repository:

https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresc...

https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresc...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Hi Abhinav,

thanks for your reply.

I followed your post for step by step installation, war file seems to be exploded fine & permissions too (as below).

But wanted to check deploying amps (as in the post) to enterprise war is an issue? do I need to remove any amps?

Permissions:

[root@TESTENVAPP ~]$ ls -l /usr/local/alfresco71/
total 8
drwxr-xr-x 11 alfresco Alfresco 245 Nov 22 07:15 activemq
drwxrwxr-x 3 alfresco Alfresco 22 Nov 22 06:39 alf_data
drwxr-xr-x 7 root root 174 Nov 22 07:53 alfresco-content-services-distribution
drwxr-xr-x 2 alfresco Alfresco 35 Nov 22 10:15 alfresco-pdf-renderer
drwxr-xr-x 2 alfresco Alfresco 122 Nov 22 08:08 amps
drwxr-xr-x 2 alfresco Alfresco 89 Nov 22 08:08 amps_share
drwxr-xr-x 2 alfresco Alfresco 124 Nov 22 16:34 bin
drwxr-xr-x 3 alfresco Alfresco 34 Nov 22 10:28 exiftool
drwxr-xr-x 2 alfresco Alfresco 58 Nov 22 09:38 imagemagic
drwxr-xr-x 2 alfresco Alfresco 145 Nov 22 09:44 libreoffice
drwxr-xr-x 3 alfresco Alfresco 60 Nov 22 08:10 licenses
-rwxr-xr-x 1 alfresco Alfresco 2772 Nov 22 16:51 localTransformationService.sh
drwxr-xr-x 4 alfresco Alfresco 35 Nov 22 06:39 modules
drwxr-xr-x 11 alfresco Alfresco 4096 Nov 24 07:44 tomcat

[root@TESTENVAPP ~]# ls -l /usr/local/alfresco71/tomcat/
total 11372
-rw-r----- 1 alfresco Alfresco 0 Nov 23 07:57 alfresco.log
drwxr-xr-x 9 alfresco Alfresco 220 Nov 22 08:53 apache-tomcat-9.0.48
-rwxr-xr-x 1 alfresco Alfresco 11489338 Nov 22 07:36 apache-tomcat-9.0.48.tar.gz
drwxr-xr-x 2 alfresco Alfresco 4096 Nov 22 09:09 bin
-rw-r----- 1 alfresco Alfresco 18949 Jun 10 09:22 BUILDING.txt
drwxr-xr-x 3 alfresco Alfresco 254 Nov 23 08:18 conf
-rw-r----- 1 alfresco Alfresco 6210 Jun 10 09:22 CONTRIBUTING.md
drwxr-xr-x 2 alfresco Alfresco 4096 Nov 22 08:12 lib
-rw-r----- 1 alfresco Alfresco 57092 Jun 10 09:22 LICENSE
drwxrwxr-x 2 alfresco Alfresco 4096 Nov 24 07:43 logs
-rw-r----- 1 alfresco Alfresco 2333 Jun 10 09:22 NOTICE
-rw-r--r-- 1 alfresco Alfresco 1434 Nov 22 07:45 q
-rw-r----- 1 alfresco Alfresco 3372 Jun 10 09:22 README.md
-rw-r----- 1 alfresco Alfresco 6898 Jun 10 09:22 RELEASE-NOTES
-rw-r----- 1 alfresco Alfresco 16507 Jun 10 09:22 RUNNING.txt
drwxr-xr-x 4 alfresco Alfresco 32 Nov 22 06:39 shared
-rw-r----- 1 alfresco Alfresco 2578 Nov 24 07:48 share.log
-rw-r----- 1 alfresco Alfresco 5156 Nov 23 08:24 share.log.2021-11-23
drwxrwxr-x 2 alfresco Alfresco 48 Nov 24 07:43 temp
drwxrwxr-x 6 alfresco Alfresco 209 Nov 22 17:07 webapps
drwxrwxr-x 3 alfresco Alfresco 22 Nov 22 07:44 work
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco71/tomcat/logs/
total 328
-rw-r----- 1 alfresco Alfresco 73358 Nov 22 17:07 catalina.2021-11-22.log
-rw-r----- 1 alfresco Alfresco 50335 Nov 23 16:41 catalina.2021-11-23.log
-rw-r----- 1 alfresco Alfresco 19716 Nov 24 15:07 catalina.2021-11-24.log
-rw-r----- 1 alfresco Alfresco 66809 Nov 24 15:07 catalina.out
-rw-r----- 1 alfresco Alfresco 0 Nov 22 07:44 host-manager.2021-11-22.log
-rw-r----- 1 alfresco Alfresco 0 Nov 23 07:57 host-manager.2021-11-23.log
-rw-r----- 1 alfresco Alfresco 0 Nov 24 07:43 host-manager.2021-11-24.log
-rw-r----- 1 alfresco Alfresco 1398 Nov 22 08:36 localhost.2021-11-22.log
-rw-r----- 1 alfresco Alfresco 2090 Nov 23 16:41 localhost.2021-11-23.log
-rw-r----- 1 alfresco Alfresco 1045 Nov 24 15:07 localhost.2021-11-24.log
-rw-r----- 1 alfresco Alfresco 2705 Nov 22 23:33 localhost_access_log.2021-11-22.txt
-rw-r----- 1 alfresco Alfresco 87843 Nov 23 16:13 localhost_access_log.2021-11-23.txt
-rw-r----- 1 alfresco Alfresco 9842 Nov 24 14:26 localhost_access_log.2021-11-24.txt
-rw-r----- 1 alfresco Alfresco 0 Nov 22 07:44 manager.2021-11-22.log
-rw-r----- 1 alfresco Alfresco 0 Nov 23 07:57 manager.2021-11-23.log
-rw-r----- 1 alfresco Alfresco 0 Nov 24 07:43 manager.2021-11-24.log
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco71/tomcat/temp/
total 4
-rwxrwxr-x 1 alfresco Alfresco 0 Jun 10 09:22 safeToDelete.tmp
-rw-r----- 1 alfresco Alfresco 5 Nov 24 07:43 tomcat.pid
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco71/tomcat/webapps/
total 604560
drwxr-x--- 9 alfresco Alfresco 138 Nov 22 17:07 alfresco
-rwxrwxr-x 1 alfresco Alfresco 220995356 Nov 22 17:07 alfresco.war
-rw-r--r-- 1 alfresco Alfresco 203873127 Nov 22 08:39 alfresco.war-1637600861798.bak
drwxr-x--- 6 alfresco Alfresco 119 Nov 22 08:39 ROOT
-rwxrwxr-x 1 alfresco Alfresco 275031 Nov 22 08:39 ROOT.war
drwxr-x--- 16 alfresco Alfresco 289 Nov 22 17:07 share
-rwxrwxr-x 1 alfresco Alfresco 97233568 Nov 22 17:07 share.war
-rw-r--r-- 1 alfresco Alfresco 95918128 Nov 22 08:39 share.war-1637600865918.bak
drwxr-x--- 4 alfresco Alfresco 54 Nov 22 08:39 _vti_bin
-rwxrwxr-x 1 alfresco Alfresco 762848 Nov 22 08:39 _vti_bin.war
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco71/tomcat/work/
total 0
drwxr-x--- 3 alfresco Alfresco 23 Nov 23 08:20 Catalina
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco-search-services/
total 20
drwxr-xr-x 4 solr Solr 72 Nov 23 05:49 licenses
drwxrwxr-x 3 solr Solr 128 Nov 23 06:09 logs
-rwxr-xr-x 1 solr Solr 1328 Nov 23 05:49 README.MD
drwxr-xr-x 6 solr Solr 159 Nov 23 05:49 solr
drwxrwxr-x 7 solr Solr 125 Nov 23 06:04 solrhome
-rwxr-xr-x 1 solr Solr 6764 Nov 23 05:49 solr.in.cmd
-rwxr-xr-x 1 solr Solr 7523 Nov 23 06:25 solr.in.sh
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco-search-services/logs/
total 32
drwxr-xr-x 2 solr solr 6 Nov 23 06:04 archived
-rwxrwxr-x 1 solr Solr 1770 Nov 23 05:49 log4j.properties
-rwxrwxr-x 1 solr Solr 245 Nov 23 05:49 README.txt
-rw-r--r-- 1 solr solr 920 Nov 23 06:04 solr-8983-console.log
-rw-r--r-- 1 solr solr 5718 Nov 23 06:07 solr_gc.log
-rw-r--r-- 1 solr solr 11001 Nov 23 06:04 solr.log
[root@TESTENVAPP ~]# ls -l /usr/local/alfresco-search-services/solrhome/
total 8
drwxr-xr-x 6 solr solr 91 Nov 23 06:04 alfresco
drwxrwxr-x 2 solr Solr 24 Nov 23 05:49 alfrescoModels
drwxr-xr-x 6 solr solr 91 Nov 23 06:04 archive
drwxrwxr-x 2 solr Solr 93 Nov 23 06:23 conf
-rwxrwxr-x 1 solr Solr 95 Nov 23 05:49 security.json
-rwxrwxr-x 1 solr Solr 151 Nov 23 05:49 solr.xml
drwxrwxr-x 4 solr Solr 36 Nov 23 05:49 templates
[root@TESTENVAPP ~]#

Regards,

Maqsood

I resolved it by removing amp 'ootbee-support-tools-repo' from 'alfresco.war'. the bootstrap for /alfresco context started, however, having issue in database connection (running on different machine with Postgres 13.3) which I am looking into currently.

Any pointer why Am I getting this error? do I need to do any change at db level to allow access to database since it is freshly installed?

I am able to ping the db machine though.

Error:

Caused by: org.postgresql.util.PSQLException: Connection to 10.131.3.131:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:303)

Regards,

Maqsood

abhinavmishra14
World-Class Innovator
World-Class Innovator

I am  not sure why that amp would have caused issue, it works fine in my case and i have done several installations as well. But glad you are unnblocked for now.

The other error is saying that repo is not able to connect to the pgsql running on that ipSmiley Tongueort, Please check if connections/firewalls/ports are open and allowed to do so. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Since database is a clean install running on a different machine, I need to do the blelow change in order to resolve the db issue.

listen_addresses in postgresql.conf was commented out so I uncommented & changed that property to '*'.

if error still persists then changes in pg_hba.conf is required too as per the post.

Now, as the env started & running on filesystem, I am looking to configure S3 connector. Per Alfresco documentation, it says, alfresco shouldn't be started if S3 connector needs to be configured.

But in my case I've already started & tested the 7.1 installation on filesystem so will it be a problem? Pls can you suggest any reference/ guide for this configuration?

Regards,

Maqsood

abhinavmishra14
World-Class Innovator
World-Class Innovator

Here is pgsql setup guide if it helps: https://javaworld-abhinav.blogspot.com/2021/02/setup-acs62-ga-and-ass14-distribution-stepbystep-cent...

And the two config files for reference: https://github.com/abhinavmishra14/alfresco7-solr-localtransform-dist-setup/tree/main/linux-platform...

I think there are two ways to it, If you have an existing installation without S3 and you already have content store on file system you need to set appropriate values for this property: 

filecontentstore.subsystem.name=S3 --> 

This defines a pure S3 content store, which uses S3 as the only storage mechanism for Alfresco Content Services.This content store is recommended for a clean Alfresco Content Services and S3 Connector installation, or an upgrade of an installation that’s never used the file system.
filecontentstore.subsystem.name=S3OnPrem -->

This defines an aggregating content store with S3 as the primary content store and the file system as the secondary store. This configuration is similar to what’s used in previous S3 Connector versions (i.e. 2.x - 3.0) and is set as the default content store.

You case matches to 'S3OnPrem', so you can use the second option. This is most common when upgrading from non s3 content store or and older version of s3 content store.

If it was a fresh installation and just tests you have done, then you can wipe out the db and content store and start fresh. 

You can find more details here: https://docs.alfresco.com/aws-s3/latest/config/

S3 Connector is an enterprise only feature, so if you see any issues then contact support and follow their guidance. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Thanks for sharing, with the help of above links, I could able to configure S3 successfully.

Now the issue is with search/ solr, I am unable to search in Alfresco Share though my ASS is running fine, error I got in solr.log is as below & no indexes generated.

Although, I have followed this post to generate keystore using ssl-tool/run.sh and placed the files at location mentioned in the error, still having the same error. Have also tried full re-index option but no success.

What configuration am I missing to do? Pls suggest.

Error:

2021-11-26 22:22:52.259 ERROR (searcherExecutor-8-thread-1-processing-x:alfresco) [ x:alfresco] o.a.s.c.SolrCore nullSmiley Surprisedrg.alfresco.error.AlfrescoRuntimeException: 10260003 Failed to initialize keystore:
Location: ssl.repo.client.keystore
Provider:
Type: JCEKS
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:579)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.safeInit(AlfrescoKeyStoreImpl.java:546)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.<init>(AlfrescoKeyStoreImpl.java:110)
at org.alfresco.httpclient.HttpClientFactory.init(HttpClientFactory.java:171)
at org.alfresco.httpclient.HttpClientFactory.<init>(HttpClientFactory.java:151)
at org.alfresco.httpclient.HttpClientFactory.<init>(HttpClientFactory.java:163)
at org.alfresco.solr.client.SOLRAPIClientFactory.getRepoClient(SOLRAPIClientFactory.java:205)
at org.alfresco.solr.client.SOLRAPIClientFactory.getSOLRAPIClient(SOLRAPIClientFactory.java:185)
at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:125)
at org.apache.solr.core.SolrCore.lambda$getSearcher$15(SolrCore.java:2249)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 10260000 Unable to load key store: ssl.repo.client.keystore
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:522)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:570)
... 14 more
Caused by: java.io.FileNotFoundException: Caused by Can't find resource 'ssl.repo.client.keystore' in classpath or '/usr/local/alfresco-search-services/solrhome/alfresco'
at org.alfresco.solr.SolrKeyResourceLoader.getKeyStore(SolrKeyResourceLoader.java:63)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.getKeyStoreStream(AlfrescoKeyStoreImpl.java:386)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:498)
... 15 more

Regards,

Maqsood

Hi Community,

Appreciate if anyone can provide any pointer on the above SOLR issue? Thx!

Regards,

Maqsood