-1
Watch the error message;
08:27:28,047 INFO [org.jboss.weld.Bootstrap] (MSC service thread 1-2) WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
08:27:28,100 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host."/Terezinha.Adm": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/Terezinha.Adm": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_31]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_31]
Caused by: java.lang.NoSuchFieldError: WEB_INF_CLASSES_FILE_PATH
at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:153)
at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:61)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:183)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
... 3 more
08:27:28,106 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "Terezinha.Adm.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/Terezinha.Adm\"" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.\"/Terezinha.Adm\": Failed to start service
Caused by: java.lang.NoSuchFieldError: WEB_INF_CLASSES_FILE_PATH"}}
08:27:28,303 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "Terezinha.Adm.war" (runtime-name : "Terezinha.Adm.war")
08:27:28,304 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host."/Terezinha.Adm": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/Terezinha.Adm": Failed to start service
08:27:28,435 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
08:27:28,435 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
08:27:28,435 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.1.Final "Tweek" started (with errors) in 10451ms - Started 281 of 338 services (2 services failed or missing dependencies, 92 services are lazy, passive or on-demand)
08:27:28,555 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010418: Stopped Driver service with driver-name = Terezinha.Adm.war_com.mysql.jdbc.Driver_5_1
08:27:28,568 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment Terezinha.Adm.war
08:27:28,641 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment Terezinha.Adm.war (runtime-name: Terezinha.Adm.war) in 91ms
08:27:28,765 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "Terezinha.Adm.war" (runtime-name: "Terezinha.Adm.war")
08:27:28,766 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.unit."Terezinha.Adm.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."Terezinha.Adm.war".deploymentCompleteService]
service jboss.deployment.unit."Terezinha.Adm.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."Terezinha.Adm.war".deploymentCompleteService]
service jboss.deployment.unit."Terezinha.Adm.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."Terezinha.Adm.war".deploymentCompleteService]
service jboss.deployment.unit."Terezinha.Adm.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."Terezinha.Adm.war".deploymentCompleteService]
service jboss.deployment.unit."Terezinha.Adm.war".component."org.jboss.weld.environment.servlet.Listener".START (missing) dependents: [service jboss.deployment.unit."Terezinha.Adm.war".deploymentCompleteService]
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host."/Terezinha.Adm"
08:27:33,345 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found Terezinha.Adm.war in deployment directory. To trigger deployment create a file called Terezinha.Adm.war.dodeploy
This error message is because I put this package in the pom.xml file
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<version>2.2.14.Final</version>
</dependency>
This reference above works normally with the Tomcat server, but I am using Weldfly, I believe that because I have changed web server is generating incompatibility, which would be the right package to put in my Maven project?
You have configured the
Weld
in the web.xml?– DiegoAugusto