Skip to content
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

./gradlew runEngineWithMonitoring is not working #8

Open
leokraemer opened this issue Jun 12, 2023 · 0 comments
Open

./gradlew runEngineWithMonitoring is not working #8

leokraemer opened this issue Jun 12, 2023 · 0 comments

Comments

@leokraemer
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant