3 Replies Latest reply on Sep 5, 2018 8:47 AM by Tomaz Cerar

    Provider io.undertow.servlet.sse.ServerSentEventSCI not found

    kzivkovic Newbie

      Deploying ear to wildfly-10.1.0.Final I am getting exceptions like quoted below - why is the error truncated? I see   ... 5 more and I cannot get to the root of the problem? Should I enable log trace somehow?

       

      I see io.undertow.servlet.sse.ServerSentEventSCI is inside: wildfly-10.1.0.Final/modules/system/layers/base/io/undertow/servlet/main/undertow-servlet-1.4.0.Final.jar

       

      So why I would get sutch error?

      I am running wildfly with jdk 1.8.0_131.

       

      Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider io.undertow.servlet.sse.ServerSentEventSCI not found

          at java.util.ServiceLoader.fail(ServiceLoader.java:239)

          at java.util.ServiceLoader.access$300(ServiceLoader.java:185)

          at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)

          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)

          at java.util.ServiceLoader$1.next(ServiceLoader.java:480)

          at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:111)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)

          ... 5 more

       

       

        • 1. Re: Provider io.undertow.servlet.sse.ServerSentEventSCI not found
          Tomaz Cerar Master

          What does your lib look like? what jars do you have in ear/lib

          and in the "services-core.war/WEB-INF/lib"

          • 2. Re: Provider io.undertow.servlet.sse.ServerSentEventSCI not found
            kzivkovic Newbie

            In ear/lib are:

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/dms-client-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jsr250-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jsr181-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/configservice-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/extended-search-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/stax-ex.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/saaj-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jsr173_api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/workflow.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/commons-cli-1.0.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-ci-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxws-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/collaboration.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/mimepull.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/ci.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/commons-codec-1.3.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-collaboration-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-search-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/cryptojce.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/streambuffer.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/activation.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/commons-io-1.2.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/resolver.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/xml-ca.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/bpmutil.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/http.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/elmjava3_1_0-jdk1.5.0_12.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxb-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/aspectjrt.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/configservice-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-admin-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/flexlm.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/ucf-server-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/commons-lang-2.4.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-bpm-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/EccpressoAll.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/saaj-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/commons-jxpath-1.2.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/FastInfoset.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/log4j.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/woodstox.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxws-tools.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jcmFIPS.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/bpm_infra_da.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/xtrim-api.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/certj.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/xtrim-server.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxb-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-dfs-services.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxb1-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/castor-1.1-xml.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/emc-dfs-rt.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/xerces-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/jaxws-rt.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/cryptojcommon.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/ucf-server-impl.jar

            file:///home/klemen/temp/eeeeee/emc-dfs.ear/lib/dfc.jar

             

            And there is no lib folder in any war file, for example services-core.war/WEB-INF/lib don't even exist.

            I am getting this error only if I run it inside jboss developer.

             

            If I start wildfly from command line (standalone.sh) with this application deployed as unmanaged app, application run perfectly without error.

             

            So I guess it has something to do with how Eclipse JbossDeveloper handles wildfly? See picture below:

            Setting of Wildfly inside JBossDeveloper

            • 3. Re: Provider io.undertow.servlet.sse.ServerSentEventSCI not found
              Tomaz Cerar Master

              In any case I think you should do bit of cleanup of your lib if using maven set scope=provided for such deps.

               

              just quick look and some comments

               

              dms-client-api.jar
              jsr250-api.jar <-- part of app server, you can remove
              jsr181-api.jar <-- part of app server, you can remove
              configservice-api.jar
              extended-search-api.jar
              stax-ex.jar
              saaj-api.jar <-- part of app server, you can remove
              jsr173_api.jar <-- part of server and jdk (till version 9)
              workflow.jar
              commons-cli-1.0.jar
              emc-ci-services.jar
              jaxws-api.jar <-- part of server, remove
              collaboration.jar
              mimepull.jar
              ci.jar
              commons-codec-1.3.jar
              emc-collaboration-services.jar
              emc-search-services.jar
              cryptojce.jar
              streambuffer.jar
              activation.jar <-- safe to remove, part of server (also jdk till 9)
              commons-io-1.2.jar
              resolver.jar <-- part of xml parser, probably safe to remove as it is part of server
              xml-ca.jar
              bpmutil.jar
              http.jar
              elmjava3_1_0-jdk1.5.0_12.jar
              jaxb-api.jar <-- safe to remove
              aspectjrt.jar  <-- really need this?
              configservice-impl.jar
              emc-admin-services.jar
              flexlm.jar
              ucf-server-api.jar
              commons-lang-2.4.jar
              emc-bpm-services.jar
              EccpressoAll.jar
              saaj-impl.jar <-- part of server, you can remove
              commons-jxpath-1.2.jar
              FastInfoset.jar
              log4j.jar <-- all logging is part of server, you can remove
              woodstox.jar <-- xml parser, probably safe to remove
              jaxws-tools.jar <-- jax was command line tools, probably safe to remove
              jcmFIPS.jar
              bpm_infra_da.jar
              xtrim-api.jar
              certj.jar
              xtrim-server.jar
              jaxb-impl.jar
              emc-dfs-services.jar
              jaxb1-impl.jar <-- jaxb v1? seriusly?
              castor-1.1-xml.jar
              emc-dfs-rt.jar
              xerces-impl.jar <-- xml parser, part of server and jdk, remove
              jaxws-rt.jar <-- jaxws runtime, you have it in server as part of webservices subsystem, remove
              cryptojcommon.jar
              ucf-server-impl.jar
              dfc.jar