롯데제과 F1 차세대 구축 프로젝트 중인 최경현 입니다.
라이센스, 개발도구 제공받아 개발 셋팅하던 중 관련 문의사항 드립니다.
https://chamomile.lotteinnovate.com/storage/chamomile/chamomile-admin-2.3.0-RELEASE.war
경로의 war 파일을 다운로드 받아서
maven Project로 프로젝트를 생성해서 Artifact Id : chamomile-samples-service-archetype , Version : 2.4.0 으로 example 프로젝트를 새로 생성하여
war 파일 안의 META-INF 폴더와 WEB-INF 폴더를 example 프로젝트의 webapp 폴더에 넣고
Chamomile Admin을 활용한 어드민 웹 애플리케이션 구성가이드_v2.0.0.pdf 가이드와 최대한 비슷하게 작업을 헀는데요.
오류가 나오는 부분들을 처리하면서 셋팅을 진행했는데요.
***************************
APPLICATION FAILED TO START
***************************
Description:
Field integrationService in net.lotte.chamomile.admin.cmm.web.CmmController required a bean of type ‘net.lotte.chamomile.integration.service.management.IntegrationService’ that could not be found.
The injection point has the following annotations:
– @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘net.lotte.chamomile.integration.service.management.IntegrationService’ in your configuration.
오류가 나와서 해당 서비스를 직접 bean 생성을 해서 해결을 해서 다시 server를 실행했는데
Description:
Parameter 1 of method performanceTestScenarioService in net.lotte.chamomile.admin.AdminApplication$PerformanceTestConfiguration required a bean of type ‘net.lotte.chamomile.testscenario.rest.scenario.testcase.TestCaseService’ that could not be found.
Action:
Consider defining a bean of type ‘net.lotte.chamomile.testscenario.rest.scenario.testcase.TestCaseService’ in your configuration.
오류가 나와서 또 실행이 안되고 있는데요.
- chamomile jar 파일 안에 들어있는 service class 들을 수동으로 다 bean 생성해서 오류를 해결해야 되는 것인지 확인 부탁 드립니다.
- Chamomile-Admin-2.3.0 에 맞는 가이드가 있다면 전달 부탁 드립니다.
Chamomile Admin을 활용한 어드민 웹 애플리케이션 구성가이드_v2.0.0.pdf
현재 이 문서 내용은 오래 전에 작성되어 맞지 않는 부분이 많은 것 같습니다.
권장드리는 개발 방식이 아니라서 커뮤니티 상에 공개되지 않았습니다.
일단 부족한 빈 설정 부분은 기존 어드민 war 내에 spring/context-*.xml 형태로 존재합니다.
- context-file.xml
- context-integration.xml
- context-rest.xml
정상적인 위치에 해당 파일들이 존재하면 기본적으로 빈 구성이 되도록 작동이 되는데
안된다면 경로를 확인해주시 바랍니다. (classpath:spring/context-*.xml)
만약, 강제로 xml 리소스를 로드 하기 위한다면
@ImportResource("classpath*:spring/context-*.xml")
해당 어노테이션을 Application 클래스나 다른 구성 클래스 위에 추가해주시면 됩니다.