我正在尝试将Web应用程序部署到Wildfly应用程序服务器,但是我面临以下错误。 我是WildFly的新手。谁能帮我这个忙。
我尝试了以下两种选择,但对我都无效。
检查您的映像,以确保服务器配置(可能是 standalone.xml)包含“ iiop-openjdk”扩展名和子系统。 我们不公开JDK的ORB。而是我们捆绑了一个。
向您的Manifest.MF Import-Package中添加Import-Package语句: org.omg.CORBA
严重[javax.enterprise.resource.webcontainer.jsf.config](ServerService线程池-127)部署期间的严重错误::java.lang.NoClassDefFoundError:org / omg / CORBA / TRANSIENT 在com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:187) 在org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:116) 在org.jboss.as.naming.InitialContext.init(InitialContext.java:101) 在javax.naming.ldap.InitialLdapContext。(InitialLdapContext.java:154) 在org.jboss.as.naming.InitialContext。(InitialContext.java:91) 在org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43) 在javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) 在javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) 在javax.naming.InitialContext.init(InitialContext.java:244) 在javax.naming.InitialContext。(InitialContext.java:192) 在com.sun.faces.util.Util.getCdiBeanManager(Util.java:1552) 在com.sun.faces.application.applicationimpl.Version.isJsf23(Version.java:57) 在com.sun.faces.application.applicationimpl.ExpressionLanguage.addELResolver(ExpressionLanguage.java:136) 在com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:221) 在org.jboss.as.jsf.injection.weld.WeldApplication。(WeldApplication.java:60) 在org.jboss.as.jsf.injection.weld.WeldApplicationFactory.getApplication(WeldApplicationFactory.java:52) 在com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:61) 在com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:109) 在com.sun.faces.lifecycle.ClientWindowFactoryImpl。(ClientWindowFactoryImpl.java:39) 在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)处 在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 在java.lang.reflect.Constructor.newInstance(Constructor.java:422) 在java.lang.Class.newInstance(Class.java:442) 在javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:458) 在javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:348) 在javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:200) 在javax.faces.FactoryFinder.getFactory(FactoryFinder.java:279) 在com.sun.faces.config.processor.FactoryConfigProcessor.lambda $ verifyFactoriesExist $ 0(FactoryConfigProcessor.java:303) 在com.sun.faces.config.processor.FactoryConfigProcessor $$ Lambda $ 726 / 14797740.accept(未知来源) 在java.util.Spliterators $ ArraySpliterator.forEachRemaining(Spliterators.java:948) 在java.util.stream.ReferencePipeline $ Head.forEach(ReferencePipeline.java:580) 在com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:297) 在com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:211) 在com.sun.faces.config.ConfigManager.lambda $ initialize $ 0(ConfigManager.java:294) com.sun.faces.config.ConfigManager $$ Lambda $ 725 / 29607565.accept(未知来源) 在java.util.Iterator.forEachRemaining(Iterator.java:116) 在java.util.Spliterators $ IteratorSpliterator.forEachRemaining(Spliterators.java:1801) 在java.util.stream.ReferencePipeline $ Head.forEach(ReferencePipeline.java:580) 在com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:292) 在com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:205) 在io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) 在io.undertow.servlet.core.DeploymentManagerImpl $ 1.call(DeploymentManagerImpl.java:216) 在io.undertow.servlet.core.DeploymentManagerImpl $ 1.call(DeploymentManagerImpl.java:185) 在io.undertow.servlet.core.ServletRequestContextThreadSetupAction $ 1.call(ServletRequestContextThreadSetupAction.java:42) 在io.undertow.servlet.core.ContextClassLoaderSetupAction $ 1.call(ContextClassLoaderSetupAction.java:43) 在org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda $ create $ 0(SecurityContextThreadSetupAction.java:105) 在org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction $$ Lambda $ 720 / 9165134.call(未知来源) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1502) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction $$ Lambda $ 721 / 25627419.call(未知来源) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1502) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction $$ Lambda $ 721 / 25627419.call(未知来源) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1502) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction $$ Lambda $ 721 / 25627419.call(未知来源) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1502) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction $$ Lambda $ 721 / 25627419.call(未知来源) 在io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) 在org.wildfly.extension.undertow.deployment.UndertowDeploymentService $ 1.run(UndertowDeploymentService.java:78) 在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) 在java.util.concurrent.FutureTask.run(FutureTask.java:266) 在org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) 在org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) 在org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) 在org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.run(EnhancedQueueExecutor.java:1377) 在java.lang.Thread.run(Thread.java:745) 在org.jboss.threads.JBossThread.run(JBossThread.java:485) 由以下原因引起:java.lang.ClassNotFoundException:来自本地模块加载程序@ 100d6b1的[Module“ com.jars”的org.omg.CORBA.TRANSIENT(查找程序:本地模块查找程序@ fd02e5(根目录:D:\ KT \ wildfly-17.0。 0.Final \ modules,D:\ KT \ wildfly-17.0.0.Final \ modules \ system \ layers \ base))] 在org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) 在org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) 在org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) 在org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ...另外67个
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
答案 0 :(得分:1)
我假设您的应用程序是在Websphere上开发的,并且由于您使用类javax.orb.api
,因此不完全符合JEE。首先,您应该尝试摆脱Websphere特定的类。
如果无法实现,则可以尝试将org.omg.CORBA.TRANSIENT
作为模块(例如,作为全局模块)添加到服务器配置中。 WildFly中的modules/system/layers/base/javax/orb/api/main/openjdk*.jar
中包含类{{1}}。但是,在解决第一个问题时,您可能会遇到其他问题。