1 Reply Latest reply on Jan 7, 2014 3:11 AM by Anton Hughes

    ClassNotFoundException: org.jboss.weld.environment.servlet.Listener

    Anton Hughes Master

      Hi

       

      I'm trying to deploy our errai app to a jbossEAP 6.1 server and am getting the following error:

       

      {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"app.ui.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"app.ui.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"app.ui.war\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: org.jboss.weld.environment.servlet.Listener from [Module \"deployment.app.ui.war:main\" from Service Module Loader]

          Caused by: java.lang.ClassNotFoundException: org.jboss.weld.environment.servlet.Listener from [Module \"deployment.app.ui.war:main\" from Service Module Loader]"}}}}

       

       

      I have seen similar errors regarding having:

       

      <listener>

              <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>

      </listener>

       

      However I do not have this in my web.xml file.

       

      What can cause this error? And how can I fix it?

       

      Thanks