-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] OMAG Server Start: Failed to parse configuration class #8338
Comments
Hello @ryanturnberry, The error is caused because the platform can not find its
and then run
...the platform should start up. This is because the default location of the file is expected to be in the directory where the platform is started from. There is information on explicitly specifying the https://egeria-project.org/guides/admin/configuring-the-omag-server-platform/#command-line-options |
Hey @mandy-chessell, And it failed with this output: `java -Dloader.path=lib,extras -jar omag-server-platform*.jar :: Powered by Spring Boot (v3.1.4) :: 2024-08-28T11:10:18.851-05:00 INFO 1448 --- [ main] o.o.o.p.springboot.OMAGServerPlatform : Starting OMAGServerPlatform using Java 17.0.12 with PID 1448 (/Users/ryantalbert/egeria-install/egeria-platform-5.1-SNAPSHOT-distribution.tar.gz/assembly/platform/omag-server-platform-5.1-SNAPSHOT.jar started by ryantalbert in /Users/ryantalbert/egeria-install/egeria-platform-5.1-SNAPSHOT-distribution.tar.gz/assembly/platform) I have scanned the documentation and no mention of it. Would you know how to get this working? Thanks again for the help! |
There are also some getting started blogs/tutorials at https://getting-started-with-egeria.pdr-associates.com/introduction.html |
@dwolfson Thanks for the suggestion. I have tried those instructions and they did not help. In fact the EGERIA DISTRIBUTION link provided in the instructions on that blog go to a parked domain with no relation to Egeria. |
Hello @ryanturnberry - this error is something we only see on the Apple Macs. it is documented in the release notes: https://egeria-project.org/release-notes/latest/ If you open up the section on XTDB you will see: We were hoping it is a temporary problem |
@ryanturnberry - that's very weird - was seeing a size problem earlier but slimmed it down - I'll look. Thanks for letting me know! |
@ryanturnberry - ok - I think that I fixed the link in the getting started. Though at this point you should have a working deployment and, if useful, you could continue with the "getting-started" blogs. Let me know if you need help... I'll also soon be adding more blogs on using the new Egeria Workspaces - docker compose configuration that simplify using Egeria. Again, let me know if your interested and I can help get you started there... |
Thank you for that. A coworker and I are absolutely lost. We got OMAG up and running locally using kafka and zookeeper. We are just trying to get a lab working. At the part where you must start 4 OMAG servers and I can get one running but the other 3 fail. |
hmm - if you want we can jump on a zoom - each of the OMAG platforms needs a different port. But perhaps it's easier to chat. To be clear, there are many ways to configure and use Egeria. The Coco Pharmaceuticals labs are more of an enterprise deployment running multiple platforms for different purposes and organizations. The You can message me on Egeria's slack or send me email: [email protected] |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions. |
Existing/related issue?
No response
Current Behavior
Using the getting started tutorial present on egeria's website https://egeria-project.org/education/tutorials/building-egeria-tutorial/overview/ running the OMAG Server platform fails with this issue
`Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class`
Expected Behavior
Following the tutorial should result in the OMAG platform running without errors
Steps To Reproduce
Follow the instructions present here: https://egeria-project.org/education/tutorials/building-egeria-tutorial/overview/ and then run the
java -Dloader.path=platform/lib,platform/extras -jar platform/omag-server-platform*.jar
command to start OMAG server in the/egeria/open-metadata-distribution/omag-server-platform/build/unpacked/egeria-platform-5.1-SNAPSHOT-distribution.tar.gz/assembly
directoryYou should get this error:
`java -Dloader.path=platform/lib,platform/extras -jar platform/omag-server-platform*.jar
Project Egeria - Open Metadata and Governance
____ __ ___ ___ ______ _____ ____ _ _ ___
/ __ \ / |/ // | / / / / ___ ____ _ __ ___ ____ / _ \ / / __ / / / _ / ____ _ _
/ / / // /|/ // /| | / / __ _ \ / _ \ / __/| | / // _ \ / __/ / // // // | / \ / / / | / // || |
/ // // / / // ___ |/ // / / // _// / | |/ // // / / __ // // / \ / / / // / // / / / / /
_/// //// ||_/ // ___/// |/ _/// // // _////// _/// // /_/
:: Powered by Spring Boot (v3.1.4) ::
2024-08-28T10:22:33.372-05:00 INFO 75152 --- [ main] o.o.o.p.springboot.OMAGServerPlatform : Starting OMAGServerPlatform using Java 17.0.12 with PID 75152 (/Users/ryantalbert/Desktop/Code/egeria/open-metadata-distribution/omag-server-platform/build/unpacked/egeria-platform-5.1-SNAPSHOT-distribution.tar.gz/assembly/platform/omag-server-platform-5.1-SNAPSHOT.jar started by ryantalbert in /Users/ryantalbert/Desktop/Code/egeria/open-metadata-distribution/omag-server-platform/build/unpacked/egeria-platform-5.1-SNAPSHOT-distribution.tar.gz/assembly)
2024-08-28T10:22:33.373-05:00 INFO 75152 --- [ main] o.o.o.p.springboot.OMAGServerPlatform : No active profile set, falling back to 1 default profile: "default"
2024-08-28T10:22:34.167-05:00 WARN 75152 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.odpi.openmetadata.platformchassis.springboot.OMAGServerPlatform]
2024-08-28T10:22:34.181-05:00 INFO 75152 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-08-28T10:22:34.216-05:00 ERROR 75152 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.odpi.openmetadata.platformchassis.springboot.OMAGServerPlatform]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:178) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:415) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:287) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:344) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:771) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:589) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.odpi.openmetadata.platformchassis.springboot.OMAGServerPlatform.main(OMAGServerPlatform.java:135) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[omag-server-platform-5.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[omag-server-platform-5.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[omag-server-platform-5.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467) ~[omag-server-platform-5.1-SNAPSHOT.jar:na]
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'securityConfig' for bean class [org.odpi.openmetadata.userauthn.auth.SecurityConfig] conflicts with existing, non-compatible bean definition of same name and class [org.odpi.openmetadata.userauthn.auth.ldap.LDAPSecurityConfig]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:349) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:287) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:128) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:289) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:243) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:196) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:164) ~[spring-context-6.0.12.jar!/:6.0.12]
... 21 common frames omitted
`
Environment
Any Further Information?
No response
The text was updated successfully, but these errors were encountered: