Hello community!
I installed alfresco from the distribution.zip (alfresco-content-services-community-distribution-6.2.0-ga) like described here: https://docs.alfresco.com/community/concepts/install-zip-overview.html
Environment:
- JDK 11
- Tomcat 9.0.34 (I know it's unsupported, but don't belief that it causes my error)
- PostgreSQL 11.7
When I startup Tomcat I see the following error in the log:
2020-04-16 11:39:54,217 WARN [heartbeat.datasender.HBDataSenderServiceBuilder] [main] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.
2020-04-16 11:39:54,498 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2020-04-16 11:39:54,498 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
2020-04-16 11:39:54,498 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
2020-04-16 11:39:54,966 INFO [alfresco.repo.admin] [main] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
2020-04-16 11:39:54,966 INFO [alfresco.repo.admin] [main] Connected to database PostgreSQL version 11.7
2020-04-16 11:39:58,023 WARN [context.support.XmlWebApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transformer.PdfBox' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'pdfBoxPDFParserConfig' while setting bean property 'pdfParserConfig'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pdfBoxPDFParserConfig' defined in class path resource [alfresco/content-services-context.xml]: Unexpected exception during bean creation; nested exception is java.lang.NullPointerException
2020-04-16 11:39:58,335 ERROR [web.context.ContextLoader] [main] Context initialization failed
Digging deeper I found this part in the mentioned content-services-context.xml:
<bean id="transformer.PdfBox"
class="org.alfresco.repo.content.transform.PdfBoxContentTransformer"
parent="baseTikaContentTransformer">
<property name="documentSelector" ref="pdfBoxEmbededDocumentSelector" />
<property name="pdfParserConfig" ref="pdfBoxPDFParserConfig"/>
<property name="extractBookmarksText">
<value>${content.transformer.PdfBox.extractBookmarksText}</value>
</property>
</bean>
<bean id="pdfBoxPDFParserConfig" class="org.apache.tika.parser.pdf.PDFParserConfig">
</bean>Can someone please tell me why the creation of the Bean fails?
Is a certain component missing that I didn't install? It seems that the DB connection is working but until this point apperently no tables are created...