We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I clone the repo (https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples) with the examples and only run the docker-compose up command. But then the aas-environment exited with the following code
2023-11-28 13:40:36 Loaded property file: file:application.properties 2023-11-28 13:40:36 Loaded property file: jar:file:/application/basyxExecutable.jar!/BOOT-INF/classes!/application.properties 2023-11-28 13:40:36 ____ _____ 2023-11-28 13:40:36 | _ \ / ____| 2023-11-28 13:40:36 | |_) | __ _ | (___ _ _ __ __ 2023-11-28 13:40:36 | _ < / _` | \___ \ | | | |\ \/ / 2023-11-28 13:40:36 | |_) || (_| | ____) || |_| | > < 2023-11-28 13:40:36 |____/ \__,_||_____/ \__, |/_/\_\ 2023-11-28 13:40:36 ======================== __/ |====== 2023-11-28 13:40:36 AAS Environment |___/ 2023-11-28 13:40:36 2.0.0-PREVIEW 2023-11-28 13:40:36 2023-11-28 13:40:36 2023-11-28 12:40:36.430 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : Starting AasEnvironmentComponent v2.0.0-SNAPSHOT using Java 11.0.19 on 4d4a1825ee0b with PID 1 (/application/basyxExecutable.jar started by nobody in /application) 2023-11-28 13:40:36 2023-11-28 12:40:36.435 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : No active profile set, falling back to 1 default profile: "default" 2023-11-28 13:40:38 2023-11-28 12:40:38.119 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'getSubmodelServiceFactory' defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/MongoDBSubmodelRepositoryConfiguration.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=mongoDBSubmodelRepositoryConfiguration; factoryMethodName=getSubmodelServiceFactory; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/MongoDBSubmodelRepositoryConfiguration.class]] for bean 'getSubmodelServiceFactory': There is already [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=true; factoryBeanName=submodelRepositoryConfiguration; factoryMethodName=getSubmodelServiceFactory; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/component/SubmodelRepositoryConfiguration.class]] bound. 2023-11-28 13:40:38 2023-11-28 12:40:38.156 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : 2023-11-28 13:40:38 2023-11-28 13:40:38 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-11-28 13:40:38 2023-11-28 12:40:38.230 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : 2023-11-28 13:40:38 2023-11-28 13:40:38 *************************** 2023-11-28 13:40:38 APPLICATION FAILED TO START 2023-11-28 13:40:38 *************************** 2023-11-28 13:40:38 2023-11-28 13:40:38 Description: 2023-11-28 13:40:38 2023-11-28 13:40:38 The bean 'getSubmodelServiceFactory', defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/MongoDBSubmodelRepositoryConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/component/SubmodelRepositoryConfiguration.class] and overriding is disabled. 2023-11-28 13:40:38 2023-11-28 13:40:38 Action: 2023-11-28 13:40:38 2023-11-28 13:40:38 Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true 2023-11-28 13:40:38
The text was updated successfully, but these errors were encountered:
Is it possible that you still have an older version of the AAS Environment component in your local Docker repository?
Sorry, something went wrong.
I had used the newest version. But I deleted all images after your message and run the docker command again and now it works.
No branches or pull requests
I clone the repo (https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples) with the examples and only run the docker-compose up command. But then the aas-environment exited with the following code
The text was updated successfully, but these errors were encountered: