java lang非法参数异常?

时间:2017-05-11 14:35:42

标签: java mysql eclipse java-ee jboss

当我尝试启动我的servlet时,程序会给我以下错误:

    ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: 
    Failed to start service jboss.deployment.unit."Employees.war".PARSE: 
    org.jboss.msc.service.StartException in service 
    jboss.deployment.unit."Employees.war".PARSE: WFLYSRV0153: Failed to process 
    phase PARSE of deployment "Employees.war"
    at 
    org.jboss.as.server.deployment.DeploymentUnitPhaseService.start
    (DeploymentUnitPhaseService.java:154)
    at 
    org.jboss.msc.service.ServiceControllerImpl$StartTask.startService
    (ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run
    (ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalArgumentException: WFLYEE0040: A component named 
    'DipendenteEJB' is already defined in this module
    at org.jboss.as.ee.component.EEModuleDescription.addComponent
    (EEModuleDescription.java:167)
    at 
    org.jboss.as.ejb3.deployment.processors.
    EJBComponentDescriptionFactory.addComponent
   (EJBComponentDescriptionFactory.java:58)
    at 
    org.jboss.as.ejb3.deployment.processors.
    SessionBeanComponentDescriptionFactory.processSessionBeans
    (SessionBeanComponentDescriptionFactory.java:169)
    at 
    org.jboss.as.ejb3.deployment.processors.
    SessionBeanComponentDescriptionFactory.processAnnotations
    (SessionBeanComponentDescriptionFactory.java:86)
    at  
    org.jboss.as.ejb3.deployment.processors.
    AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.
    processAnnotations
    (AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:57)
    at 
    org.jboss.as.ejb3.deployment.processors.
    AbstractDeploymentUnitProcessor.deploy
    (AbstractDeploymentUnitProcessor.java:76)
    at 
    org.jboss.as.server.deployment.
    DeploymentUnitPhaseService.start
   (DeploymentUnitPhaseService.java:147)
    ... 5 more

昨天该项目运作正常。今天,在创建一个包含2个ejb(本地和远程)接口的jar文件并将其插入WEB-INF之后 - > lib,程序给了我一个错误

0 个答案:

没有答案