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

3653 eap fix #1779

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

3653 eap fix #1779

wants to merge 1 commit into from

Conversation

apupier
Copy link
Member

@apupier apupier commented Jul 6, 2022

requires #1778

@apupier apupier requested review from a team as code owners July 6, 2022 10:01
@apupier
Copy link
Member Author

apupier commented Jul 7, 2022

sounds it is not always working, not working on first deploys:

15:00:55,358 WARNING [org.springframework.context.support.GenericApplicationContext] (MSC service thread 1-3) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.wildfly.camel.examples.cdi.SomeBean] for bean with name 'helloBean' defined in URL [vfs:/home/apupier/install/EAP-7.4.0-22220704/standalone/deployments/example-camel-cdi.war/WEB-INF/camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.wildfly.camel.examples.cdi.SomeBean from [Module "deployment.example-camel-cdi.war" from Service Module Loader]
15:00:55,368 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."example-camel-cdi.war".CamelContextActivationService."example-camel-cdi.war": org.jboss.msc.service.StartException in service jboss.deployment.unit."example-camel-cdi.war".CamelContextActivationService."example-camel-cdi.war": Cannot create camel context: example-camel-cdi.war
	at org.wildfly.extension.camel.service.CamelContextActivationService.start(CamelContextActivationService.java:71)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.wildfly.camel.examples.cdi.SomeBean] for bean with name 'helloBean' defined in URL [vfs:/home/apupier/install/EAP-7.4.0-22220704/standalone/deployments/example-camel-cdi.war/WEB-INF/camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.wildfly.camel.examples.cdi.SomeBean from [Module "deployment.example-camel-cdi.war" from Service Module Loader]
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1486)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:681)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:648)
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1614)
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1090)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:877)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
	at org.wildfly.extension.camel.SpringCamelContextBootstrap$1.run(SpringCamelContextBootstrap.java:90)
	at org.wildfly.extension.camel.proxy.ProxyUtils$1.invoke(ProxyUtils.java:51)
	at com.sun.proxy.$Proxy58.run(Unknown Source)
	at org.wildfly.extension.camel.proxy.ProxyUtils.invokeProxied(ProxyUtils.java:55)
	at org.wildfly.extension.camel.SpringCamelContextBootstrap.createSpringCamelContexts(SpringCamelContextBootstrap.java:87)
	at org.wildfly.extension.camel.service.CamelContextActivationService.start(CamelContextActivationService.java:58)
	... 8 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.camel.examples.cdi.SomeBean from [Module "deployment.example-camel-cdi.war" from Service Module Loader]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	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)
	... 21 more

15:00:55,376 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "example-camel-cdi.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"example-camel-cdi.war\".CamelContextActivationService.\"example-camel-cdi.war\"" => "Cannot create camel context: example-camel-cdi.war
    Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.wildfly.camel.examples.cdi.SomeBean] for bean with name 'helloBean' defined in URL [vfs:/home/apupier/install/EAP-7.4.0-22220704/standalone/deployments/example-camel-cdi.war/WEB-INF/camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.wildfly.camel.examples.cdi.SomeBean from [Module \"deployment.example-camel-cdi.war\" from Service Module Loader]
    Caused by: java.lang.ClassNotFoundException: org.wildfly.camel.examples.cdi.SomeBean from [Module \"deployment.example-camel-cdi.war\" from Service Module Loader]"}}
    ```
    
    After some tries (or a combination of manipulation of start/restart/deploy/undeploy) it finishes by working and then it is always working

@apupier
Copy link
Member Author

apupier commented Jul 7, 2022

if I call locally the project with a Maven install call for instance, then try to deploy, it is working...

@apupier apupier added the DRAFT label Sep 9, 2022
@djelinek djelinek removed the request for review from a team June 29, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant