当前位置: 首页 > 知识库问答 >
问题:

JAVAlang.NoClassDefFoundError:org/omg/CORBA/TRANSIENT--WildFly 17

燕扬
2023-03-14

我试图将web应用程序部署到Wildfly应用程序服务器,但我遇到了以下错误。我对WildFly很陌生。有人能帮我吗。

我尝试了以下两个选项,但都不适合我。

>

  • 检查映像以确保服务器配置(可能standalone.xml)包含iiop-openjdk扩展和子系统。我们不公开JDK的ORB;相反,我们有一个捆绑的ORB。

    将导入包语句添加到清单中。MF导入包:org。天啊。科尔巴

    13:58:17,948 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 127) MSC000001: Failed to start service jboss.deployment.unit."nistevoGS.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."nistevoGS.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/omg/CORBA/TRANSIENT
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
        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:745)
        at org.jboss.threads.JBossThread.run(JBossThread.java:485)
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/omg/CORBA/TRANSIENT
        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
        ... 8 more
    Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/omg/CORBA/TRANSIENT
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:283)
        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
        at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216)
        at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
        at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction$$Lambda$720/9165134.call(Unknown Source)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$721/25627419.call(Unknown Source)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$721/25627419.call(Unknown Source)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$721/25627419.call(Unknown Source)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$721/25627419.call(Unknown Source)
        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
        ... 10 more
    Caused by: java.lang.NoClassDefFoundError: org/omg/CORBA/TRANSIENT
        at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:187)
        at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:116)
        at org.jboss.as.naming.InitialContext.init(InitialContext.java:101)
        at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
        at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:91)
        at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:192)
        at com.sun.faces.util.Util.getCdiBeanManager(Util.java:1552)
        at com.sun.faces.application.applicationimpl.Version.isJsf23(Version.java:57)
        at com.sun.faces.application.applicationimpl.ExpressionLanguage.addELResolver(ExpressionLanguage.java:136)
        at com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:221)
        at org.jboss.as.jsf.injection.weld.WeldApplication.<init>(WeldApplication.java:60)
        at org.jboss.as.jsf.injection.weld.WeldApplicationFactory.getApplication(WeldApplicationFactory.java:52)
        at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:61)
        at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:109)
        at com.sun.faces.lifecycle.ClientWindowFactoryImpl.<init>(ClientWindowFactoryImpl.java:39)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:458)
        at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:348)
        at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:200)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:279)
        at com.sun.faces.config.processor.FactoryConfigProcessor.lambda$verifyFactoriesExist$0(FactoryConfigProcessor.java:303)
        at com.sun.faces.config.processor.FactoryConfigProcessor$$Lambda$726/14797740.accept(Unknown Source)
        at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
        at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:297)
        at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:211)
        at com.sun.faces.config.ConfigManager.lambda$initialize$0(ConfigManager.java:294)
        at com.sun.faces.config.ConfigManager$$Lambda$725/29607565.accept(Unknown Source)
        at java.util.Iterator.forEachRemaining(Iterator.java:116)
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:292)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:205)
        ... 26 more
    Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.TRANSIENT from [Module "com.jars" from local module loader @100d6b1 (finder: local module finder @fd02e5 (roots: D:\KT\wildfly-17.0.0.Final\modules,D:\KT\wildfly-17.0.0.Final\modules\system\layers\base))]
        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)
        ... 67 more
    
  • 共有1个答案

    令狐灿
    2023-03-14

    我假设您的应用程序是在Websphere上开发的,并且不完全符合JEE,因为您使用的是类com。国际商用机器公司websphere。命名。WsnInitialContextFactory。首先,您应该尝试摆脱特定于Websphere的类。

    如果这是不可能的,您可以尝试添加javax.orb.api作为模块(例如,全局模块)到您的服务器配置。类org.omg.CORBA. TRANSIENT包含在WildFly中的模块/系统/层/base/javax/orb/api/main/openjdk*. jar中。然而,当您修复第一个问题时,您可能会遇到进一步的问题。

     类似资料:
    • 为QAFTestSteps运行testng配置时,我遇到以下错误: 显示错误 步骤定义 } 功能文件 测试执行配置

    • UCS (Ultra Corba Simulator) 是一个功能强大的CORBA客户端和服务器端的模拟器。

    • 问题内容: 我正在使用CORBA开发一个简单的远程管理工具。这是我的服务器代码。 但是,当我尝试运行程序时,出现以下错误。 我尝试改变 至 但是错误仍然存​​在。谁能建议我一个开始orbd的解决方案。 问题答案: 在控制台中运行orb,然后系统启动orbd -ORBInitialPort 1050 运行YourServer.java -ORBInitialPort 1050 -ORBInitial

    • 我知道这个IOR可能包含多个组件,典型的IOR通常包含远程主机的IP地址、CORBA服务器正在监听的远程端口的编号、定义将在其上调用方法的远程对象的类的字符串,以及服务器ORB用来标识对象的对象键。 有没有可能当我解码IOR时,它给我的是主机名,而不是IP地址。? 也就是说,它像machine-abc.co.in一样解析,而不是像192.168.64.56这样的IP地址

    • 我正在构建一个web应用程序,并使用ApachePOI处理excel工作表。当我启动服务器时,出现以下异常。问题是,在我尝试构建它并部署到heroku之前,它一直工作得很好(但可能与此无关)。有人有主意吗?? 我的pom。xml文件: 还有我的web.xml

    • 我下面的自定义日志工具来实现日志功能的电子邮件使用log4j。 我已经将log4j:1.2.17的依赖项以及jar添加到类路径中。我正在尝试使用arquillian进行测试。但每次我都会犯同样的错误。 我知道它即将出现,因为我使用的是级别而不是优先级,而优先级现在已被弃用。我已经添加了正确的jar和导入,但是当我运行测试时仍然会出现错误。 我也提到了这些链接,但对我来说没有任何效果。 是什么导致了