gpt4 book ai didi

java - 无法在 WildFly 中部署

转载 作者:太空宇宙 更新时间:2023-11-04 14:15:09 26 4
gpt4 key购买 nike

我在尝试在 WildFly 中部署 REST 端点时遇到了问题。具体来说,我有一个非常简单的应用程序,只有一个端点:

项目:https://github.com/CloudBees-community/wildfly-restEasy-ejb-clickstart

当我使用 Eclipse 中的“RUN”按钮将完全相同的应用程序部署到 WildFly (wildfly-8.2) 时,出现以下异常:

JBAS014775:    New missing/unsatisfied dependencies:
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".WeldStartService, JBAS014799: ... and 6 more ]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, JBAS014799: ... and 8 more ]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.VIEW."localdomain.localhost.CountryRepository".LOCAL (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.WeldInterceptorBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.WeldInstantiator]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.ejb.non-functional-timerservice (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.VIEW."localdomain.localhost.CountryResource".LOCAL (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.WeldInterceptorBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.WeldInstantiator]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.ejb.non-functional-timerservice (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.VIEW."localdomain.localhost.MyApplication".LOCAL (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.WeldInterceptorBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.WeldInstantiator]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.ejb.non-functional-timerservice (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."com.sun.faces.config.ConfigureListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.faces.webapp.FacetTag".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.faces.webapp.FacetTag".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.faces.webapp.FacetTag".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".START (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldInitialListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".JndiBindingsService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".WeldStartService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START, JBAS014799: ... and 2 more ]
service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".moduleDeploymentRuntimeInformation (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".moduleDeploymentRuntimeInformationStart, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START]
service jboss.naming.context.java.app.wildfly-restEasy-ejb-clickstart.env (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.BeanManager (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.DefaultContextService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.DefaultDataSource (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.DefaultManagedExecutorService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.DefaultManagedScheduledExecutorService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.DefaultManagedThreadFactory (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.EJBContext (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.TimerService (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.TransactionSynchronizationRegistry (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.UserTransaction (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.env (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.env."localdomain.localhost.CountryRepository".em (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService]
service jboss.naming.context.java.module.wildfly-restEasy-ejb-clickstart.wildfly-restEasy-ejb-clickstart.env."localdomain.localhost.CountryResource".countryRepository (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".jndiDependencyService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryResource.START]
service jboss.persistenceunit."wildfly-restEasy-ejb-clickstart.war#jpa-pu" (missing) dependents: [service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.CountryRepository.START, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".WeldStartService, service jboss.deployment.unit."wildfly-restEasy-ejb-clickstart.war".component.MyApplication.START, service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]
service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./wildfly-restEasy-ejb-clickstart.UndertowDeploymentInfoService]

网络应用程序位于:8080/wildfly-restEasy-ejb-clickstart/不起作用。谢谢

最佳答案

使用运行按钮在 Eclipse 中重新启动 Wildfly 两次后,我收到了相同类型的错误消息...我通过管理控制台添加了 mysql 驱动程序(部署)。我相信当您在 Eclipse 中单击“运行”时,它会重写一些默认配置,并使文件消失。就我而言,当我通过 eclipse 重新启动后返回管理控制台时,mysql 驱动程序不再位于部署部分...

如果我找到解决方案,我会回来

关于java - 无法在 WildFly 中部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27847927/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com