Open
Description
SDK 4.3 - Alfresco AIO jar archetype is including active-mq all jar at module level instead of docker project level
Expected Behavior
When i try to build amp and deploy to remote server it should work correctly.
Current Behavior
Alfresco fails to start after applying the amp and following error is thrown that relates to "activemq-all-xx.jar"
[web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMappings' defined in URL [jar:file:/opt/alfresco7/tomcat/webapps/alfresco/WEB-INF/lib/spring-webscripts-8.22.jar!/org/springframework/extensions/webscripts/spring-webscripts-mvc-context.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.servlet.handler.AbstractHandlerMapping.obtainApplicationContext()Lorg/springframework/context/ApplicationContext;
See full detail here: https://hub.alfresco.com/t5/alfresco-content-services-forum/error-deploying-aio-with-sdk-4-3/m-p/310967/highlight/false#M26453
Possible Solution
Moved the activemq-all dependency from parent pom.xml to platform-docker pom.xml in order to avoid it being included in the amp. Inclusion in the amp caused issues when amp is deployed on a server.
See the PR: #628
Steps to Reproduce (for bugs)
- Generate alfresco AIO archetype
- Build the amp out of the project (no changes made)
- Deploy/Apply the amp to a remote server
- Server fails to startup.
Your Environment
- Alfresco SDK version used: 4.3 (latest)
- Alfresco version used: 7.x
Metadata
Metadata
Assignees
Labels
No labels