You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to try the example with the monitoring it is not working. As far as I understand it is because the needed jetty (version 8) features are so out of date that they can not be pulled anymore from maven central.
Output from gradle
> Task :runEngineWithMonitoring FAILED
2023-06-12 10:45:41,149 INFO log:193 - Logging initialized @352ms to org.eclipse.jetty.util.log.Slf4jLog
2023-06-12 10:45:41,166 WARN ClassPathXmlApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Server' defined in class path resource [orchestrationWithMonitoring/jetty.xml]: Cannot create inner bean 'Connector' of type [org.eclipse.jetty.server.nio.SelectChannelConnector] while setting bean property 'connectors' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.eclipse.jetty.server.nio.SelectChannelConnector] for bean with name 'Connector' defined in class path resource [orchestrationWithMonitoring/jetty.xml]; nested exception is java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Server' defined in class path resource [orchestrationWithMonitoring/jetty.xml]: Cannot create inner bean 'Connector' of type [org.eclipse.jetty.server.nio.SelectChannelConnector] while setting bean property 'connectors' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.eclipse.jetty.server.nio.SelectChannelConnector] for bean with name 'Connector' defined in class path resource [orchestrationWithMonitoring/jetty.xml]; nested exception is java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:389)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:428)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1697)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1442)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85)
at org.copperengine.examples.orchestration.enginemon.OrchestrationEngineWithMonitoring.main(OrchestrationEngineWithMonitoring.java:33)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.eclipse.jetty.server.nio.SelectChannelConnector] for bean with name 'Connector' defined in class path resource [orchestrationWithMonitoring/jetty.xml]; nested exception is java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1486)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:488)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:374)
... 17 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:284)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:469)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1551)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1478)
... 19 more
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runEngineWithMonitoring'.
> Process 'command 'C:\Program Files\Java\jdk-17\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
4 actionable tasks: 1 executed, 3 up-to-date
The text was updated successfully, but these errors were encountered:
When I try to try the example with the monitoring it is not working. As far as I understand it is because the needed jetty (version 8) features are so out of date that they can not be pulled anymore from maven central.
Output from gradle
The text was updated successfully, but these errors were encountered: