Jboss deployment after migration from jboss 9.0 to 30
by Ranjitsinh Rahevar
Hello,
We are trying to migrate our application from wildfly 9.0 to 30.0.final version and here I did below all relevant changes and facing some issue while deployment .
1. all changes related to javax.servlet to jakarta servlet changes
2. all changes related to ejb and corba package
Here in one of our application communicate to solr using "org.carrot2 " library version 3.12.0 version and on start up we trying to load all its config using servlet context listner.
while loading all configuration we getting below error:
12:32:14,943 ERROR [org.carrot2.webapp.model.WebappConfig] (ServerService Thread Pool -- 86) Could not load application config.: java.lang.RuntimeException: Descriptor not available.
at deployment.APP.war//org.carrot2.core.ProcessingComponentDescriptor.getBindableDescriptor(ProcessingComponentDescriptor.java:253)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.prepareSourceAttributeMetadata(WebappConfig.java:229)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.getSingleton(WebappConfig.java:165)
at deployment.APP.war//com.package.search.listeners.ApplicationStartupListener.contextInitialized(ApplicationStartupListener.java:49)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:219)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:70)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:1583)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.NoClassDefFoundError: Descriptor class not found: org.carrot2.source.solr.SolrDocumentSourceModelIssueDescriptor
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorUtils.getDescriptorClass(BindableDescriptorUtils.java:80)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorUtils.getDescriptor(BindableDescriptorUtils.java:96)
at deployment.APP.war//org.carrot2.util.attribute.BindableMetadata.forClassWithParents(BindableMetadata.java:62)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorBuilder.buildDescriptor(BindableDescriptorBuilder.java:69)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorBuilder.buildDescriptor(BindableDescriptorBuilder.java:47)
at deployment.APP.war//org.carrot2.core.ProcessingComponentDescriptor.onCommit(ProcessingComponentDescriptor.java:326)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at deployment.APP.war//org.simpleframework.xml.core.Function.call(Function.java:84)
at deployment.APP.war//org.simpleframework.xml.core.Caller.commit(Caller.java:141)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:204)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.CompositeList.populate(CompositeList.java:175)
at deployment.APP.war//org.simpleframework.xml.core.CompositeList.read(CompositeList.java:120)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readVariable(Composite.java:623)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readInstance(Composite.java:573)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readUnion(Composite.java:549)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readElement(Composite.java:532)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readElements(Composite.java:445)
at deployment.APP.war//org.simpleframework.xml.core.Composite.access$400(Composite.java:59)
at deployment.APP.war//org.simpleframework.xml.core.Composite$Builder.read(Composite.java:1383)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:201)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:625)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:606)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:584)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:543)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:444)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.deserialize(ProcessingComponentSuite.java:163)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.postDeserialize(ProcessingComponentSuite.java:126)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at deployment.APP.war//org.simpleframework.xml.core.Function.call(Function.java:84)
at deployment.APP.war//org.simpleframework.xml.core.Caller.commit(Caller.java:141)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:204)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:625)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:606)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:584)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:543)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:444)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.deserialize(ProcessingComponentSuite.java:163)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.getSingleton(WebappConfig.java:159)
... 21 more
12:32:14,956 ERROR [com.package.search.listeners.ApplicationStartupListener] (ServerService Thread Pool -- 86) An exception occured in ApplicationStartupListener::contextInitialized(): java.lang.RuntimeException: Could not load application config.
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.getSingleton(WebappConfig.java:174)
at deployment.APP.war//com.package.search.listeners.ApplicationStartupListener.contextInitialized(ApplicationStartupListener.java:49)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:219)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1413)
at io.undertow.servlet@2.3.10.Final//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)
at org.wildfly.extension.undertow@30.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:70)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:1583)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.RuntimeException: Descriptor not available.
at deployment.APP.war//org.carrot2.core.ProcessingComponentDescriptor.getBindableDescriptor(ProcessingComponentDescriptor.java:253)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.prepareSourceAttributeMetadata(WebappConfig.java:229)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.getSingleton(WebappConfig.java:165)
... 21 more
Caused by: java.lang.NoClassDefFoundError: Descriptor class not found: org.carrot2.source.solr.SolrDocumentSourceModelIssueDescriptor
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorUtils.getDescriptorClass(BindableDescriptorUtils.java:80)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorUtils.getDescriptor(BindableDescriptorUtils.java:96)
at deployment.APP.war//org.carrot2.util.attribute.BindableMetadata.forClassWithParents(BindableMetadata.java:62)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorBuilder.buildDescriptor(BindableDescriptorBuilder.java:69)
at deployment.APP.war//org.carrot2.util.attribute.BindableDescriptorBuilder.buildDescriptor(BindableDescriptorBuilder.java:47)
at deployment.APP.war//org.carrot2.core.ProcessingComponentDescriptor.onCommit(ProcessingComponentDescriptor.java:326)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at deployment.APP.war//org.simpleframework.xml.core.Function.call(Function.java:84)
at deployment.APP.war//org.simpleframework.xml.core.Caller.commit(Caller.java:141)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:204)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.CompositeList.populate(CompositeList.java:175)
at deployment.APP.war//org.simpleframework.xml.core.CompositeList.read(CompositeList.java:120)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readVariable(Composite.java:623)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readInstance(Composite.java:573)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readUnion(Composite.java:549)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readElement(Composite.java:532)
at deployment.APP.war//org.simpleframework.xml.core.Composite.readElements(Composite.java:445)
at deployment.APP.war//org.simpleframework.xml.core.Composite.access$400(Composite.java:59)
at deployment.APP.war//org.simpleframework.xml.core.Composite$Builder.read(Composite.java:1383)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:201)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:625)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:606)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:584)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:543)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:444)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.deserialize(ProcessingComponentSuite.java:163)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.postDeserialize(ProcessingComponentSuite.java:126)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at deployment.APP.war//org.simpleframework.xml.core.Function.call(Function.java:84)
at deployment.APP.war//org.simpleframework.xml.core.Caller.commit(Caller.java:141)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:204)
at deployment.APP.war//org.simpleframework.xml.core.Composite.read(Composite.java:148)
at deployment.APP.war//org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:625)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:606)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:584)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:543)
at deployment.APP.war//org.simpleframework.xml.core.Persister.read(Persister.java:444)
at deployment.APP.war//org.carrot2.core.ProcessingComponentSuite.deserialize(ProcessingComponentSuite.java:163)
at deployment.APP.war//org.carrot2.webapp.model.WebappConfig.getSingleton(WebappConfig.java:159)
... 21 more
Here I have checked it with widlfly 24 and java 8 version and without any changes it works fine but when change the java version and related Gradle version than facing above errors, I dig into it and came to know than after java 8 modification few jar has been removed in latest version like 9 ,11 .
I am not able to load class using jboss ModuleLoader. Do I missed any configuration need to do related to java versions ?
Can anyone help to fix the same ?? any suggestion ??
Thanks in advance !
11 months, 4 weeks