2015-01-08 226 views
0

在嘗試在WildFly中部署REST端點時遇到問題。具體而言,我有一個端點一個非常簡單的應用程序:無法在WildFly中部署

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

當我部署了同樣的應用WildFly(wildfly-8.2),使用Eclipse中的「運行」按鈕,我正在以下例外:

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] 

和Web應用在:8080/wildfly-RestEasy的-EJB-clickstart /不工作。 謝謝

回答

0

在Eclipse中使用運行按鈕重新啓動wildfly兩次後,我有同樣的錯誤消息...我通過管理控制檯添加了一個mysql驅動程序(部署)。我相信當你點擊eclipse中的run時,它會重寫一些默認配置,並使消失文件。在我的情況下,當我通過eclipse重新啓動後返回到管理控制檯時,mysql驅動程序不再在部署部分...

如果我找到了解決方案,我將返回