org.wildfly.plugin.common.DeploymentExecutionException: Deployment failed: Operation failed:... 问题解决

来源:互联网 发布:九章算法 培训视频 编辑:程序博客网 时间:2024/06/14 13:44

解决办法:按如下方法启动wildfly
./standalone.sh -c standalone-full.xml

错误如下:

[ERROR] -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Alpha5:deploy (default-cli) on project EJOS: Deployment failed: Operation failed: {    "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"EJOS.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EJOS.war\".WeldStartService: Failed to start service    Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type EntityManager with qualifiers @Default  at injection point [BackedAnnotatedField] @Inject cn.edu.sdut.softlab.service.AbstractFacade.em  at cn.edu.sdut.softlab.service.AbstractFacade.em(AbstractFacade.java:0)"},    "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"EJOS.war\".WeldStartService"],    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)Caused by: org.wildfly.plugin.common.DeploymentExecutionException: Deployment failed: Operation failed: {    "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"EJOS.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EJOS.war\".WeldStartService: Failed to start service    Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type EntityManager with qualifiers @Default  at injection point [BackedAnnotatedField] @Inject cn.edu.sdut.softlab.service.AbstractFacade.em  at cn.edu.sdut.softlab.service.AbstractFacade.em(AbstractFacade.java:0)"},    "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"EJOS.war\".WeldStartService"],    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}    at org.wildfly.plugin.deployment.standalone.StandaloneDeployment.execute(StandaloneDeployment.java:157)    at org.wildfly.plugin.deployment.AbstractDeployment.executeDeployment(AbstractDeployment.java:147)    at org.wildfly.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:179)    at org.wildfly.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:70)    at org.wildfly.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:137)    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)    ... 20 more
0 0
原创粉丝点击