天天看點

org.wildfly.plugin.common.DeploymentExecutionException: Deployment failed: Operation failed:... 問題解決

解決辦法:按如下方法啟動wildfly

./standalone.sh -c standalone-full.xml

錯誤如下:

[ERROR] -> [Help ]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:.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:)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
    at java.lang.reflect.Method.invoke(Method.java:)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:)
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:)
    at org.wildfly.plugin.deployment.AbstractDeployment.executeDeployment(AbstractDeployment.java:)
    at org.wildfly.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:)
    at org.wildfly.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:)
    at org.wildfly.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
    ...  more