2 Replies Latest reply on Dec 20, 2019 6:18 AM by derekvinyard

    How to disable CORBA support?

    derekvinyard

      Hi everyone,

       

      I am trying to move my Java 8 + Spring 4  application from WildFly 8.2.0 to WildFly 18.0.1 but on deployment I get

      Caused by: java.lang.NoClassDefFoundError: org/omg/CORBA/LongHolder

              at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_91]

              at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_91]

              at java.lang.Class.getDeclaredMethods(Class.java:1975) [rt.jar:1.8.0_91]

              at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)

              at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)

              at org.springframework.core.MethodIntrospector.selectMethods(MethodIntrospector.java:68)

              at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:214)

              at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:191)

              at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:161)

              at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:125)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)

              ... 33 more

      Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.LongHolder from [Module "deployment.ngp.war" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) [jboss-modules.jar:1.9.1.Final]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) [jboss-modules.jar:1.9.1.Final]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.9.1.Final]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.9.1.Final]

      Since I don't need CORBA I'm wondering is there a setting/subsystem/something I could disable to remove CORBA from my server?

      I have managed to move past this error by adding "org.wildfly.iiop-openjdk" (as suggested by dmlloyd in another question java.lang.ClassNotFoundException: org.omg.CORBA.StringHolder, Wildfly 12) but I would prefer to have the least number of unused features as possible.

       

      Thank you!

       

      Message was edited by: Adrian Zmău