title: No ExecutorFactory found to execute the application in Flink 1.11.1
body: <p>first of all I have read this <a href="https://stackoverflow.com/questions/63032060/upgraded-flink-from-1-10-to-1-11-met-error-no-executorfactory-found-to-execute">post</a> about the same issue and tried to follow the same solution that works for him (create a new quickstart with mvn and migrate the code there) and is not working eighter when out-of-the-box of IntelliJ.</p>
  <p>Here is my pom.xml mixed with my dependencies from the other pom.xml. What am I doing wrong?</p>
  <pre><code>&lt;!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  &quot;License&quot;); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
  
    http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
  --&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.test&lt;/groupId&gt;
      &lt;artifactId&gt;job&lt;/artifactId&gt;
      &lt;version&gt;1&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;funnel-cep-analytics&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;flink.version&gt;1.11.0&lt;/flink.version&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;scala.binary.version&gt;2.11&lt;/scala.binary.version&gt;
          &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
          &lt;log4j.version&gt;2.12.1&lt;/log4j.version&gt;
      &lt;/properties&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;apache.snapshots&lt;/id&gt;
              &lt;name&gt;Apache Development Snapshot Repository&lt;/name&gt;
              &lt;url&gt;https://repository.apache.org/content/repositories/snapshots/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;!-- Apache Flink dependencies --&gt;
          &lt;!-- These dependencies are provided, because they should not be packaged into the JAR file. --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-java&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-streaming-java_${scala.binary.version}&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-clients_${scala.binary.version}&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Add connector dependencies here. They must be in the default scope (compile). --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-runtime-web_${scala.binary.version}&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Add connector dependencies here. They must be in the default scope (compile). --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-hadoop-fs&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-connector-filesystem_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.11.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.apache.flink/flink-metrics-prometheus --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-metrics-prometheus_2.12&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-connector-rabbitmq_${scala.binary.version}&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;9.4-1201-jdbc41&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.apache.flink/flink-connector-redis --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.bahir&lt;/groupId&gt;
              &lt;artifactId&gt;flink-connector-redis_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.1-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.8.6&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-cep_2.11&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.apache.flink/flink-test-utils --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-test-utils_2.11&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-runtime_2.11&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;classifier&gt;tests&lt;/classifier&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-streaming-java_2.11&lt;/artifactId&gt;
              &lt;version&gt;${flink.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;classifier&gt;tests&lt;/classifier&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Add logging framework, to produce console output when running in the IDE. --&gt;
          &lt;!-- These dependencies are excluded from the application JAR by default. --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.13&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-test-utils-junit&lt;/artifactId&gt;
              &lt;version&gt;1.8.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Add logging framework, to produce console output when running in the IDE. --&gt;
          &lt;!-- These dependencies are excluded from the application JAR by default. --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
  
              &lt;!-- Java Compiler --&gt;
              &lt;!-- Java Compiler --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;9&lt;/source&gt;
                      &lt;target&gt;9&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. --&gt;
              &lt;!-- Change the value of &lt;mainClass&gt;...&lt;/mainClass&gt; if your program entry point changes. --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;!-- Run shade goal on package phase --&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;shade&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;artifactSet&gt;
                                  &lt;excludes&gt;
                                      &lt;exclude&gt;org.apache.flink:force-shading&lt;/exclude&gt;
                                      &lt;exclude&gt;com.google.code.findbugs:jsr305&lt;/exclude&gt;
                                  &lt;/excludes&gt;
                              &lt;/artifactSet&gt;
                              &lt;filters&gt;
                                  &lt;filter&gt;
                                      &lt;!-- Do not copy the signatures in the META-INF folder.
                                      Otherwise, this might cause SecurityExceptions when using the JAR. --&gt;
                                      &lt;artifact&gt;*:*&lt;/artifact&gt;
                                      &lt;excludes&gt;
                                          &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                                          &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt;
                                          &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                                      &lt;/excludes&gt;
                                  &lt;/filter&gt;
                              &lt;/filters&gt;
                              &lt;transformers&gt;
                                  &lt;transformer implementation=&quot;org.apache.maven.plugins.shade.resource.ManifestResourceTransformer&quot;&gt;
                                      &lt;mainClass&gt;path.StreamingJob&lt;/mainClass&gt;
                                  &lt;/transformer&gt;
                              &lt;/transformers&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
  
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
  
                  &lt;!-- This improves the out-of-the-box experience in Eclipse by resolving some warnings. --&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                          &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                                          &lt;versionRange&gt;[3.1.1,)&lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;shade&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore/&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                                          &lt;versionRange&gt;[3.1,)&lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;testCompile&lt;/goal&gt;
                                              &lt;goal&gt;compile&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore/&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;add-dependencies-for-IDEA&lt;/id&gt;
              &lt;activation&gt;
                  &lt;property&gt;
                      &lt;name&gt;idea.version&lt;/name&gt;
                  &lt;/property&gt;
              &lt;/activation&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                      &lt;artifactId&gt;flink-java&lt;/artifactId&gt;
                      &lt;version&gt;${flink.version}&lt;/version&gt;
                      &lt;scope&gt;compile&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                      &lt;artifactId&gt;flink-streaming-java_${scala.binary.version}&lt;/artifactId&gt;
                      &lt;version&gt;${flink.version}&lt;/version&gt;
                      &lt;scope&gt;compile&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                      &lt;artifactId&gt;flink-clients_${scala.binary.version}&lt;/artifactId&gt;
                      &lt;version&gt;${flink.version}&lt;/version&gt;
                      &lt;scope&gt;compile&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  
  </code></pre>
  <p>and the error here when running out from IntelliJ:</p>
  <pre><code>java.lang.IllegalStateException: No ExecutorFactory found to execute the application.
          at org.apache.flink.core.execution.DefaultExecutorServiceLoader.getExecutorFactory(DefaultExecutorServiceLoader.java:84) ~[cep-1.5.0.jar:?]
          at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.executeAsync(StreamExecutionEnvironment.java:1803) ~[cep-1.5.0.jar:?]
          at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1713) ~[cep-1.5.0.jar:?]
          at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:74) ~[cep-1.5.0.jar:?]
          at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1699) ~[job.jar:?]
          at com.test.job.StreamingJob.runCEP(StreamingJob.java:122) ~[job.jar:?]
          at com.test.job.StreamingJob.init(StreamingJob.java:107) ~[job.jar:?]
          at com.test.job.StreamingJob.main(StreamingJob.java:64) [job.jar:?]
  </code></pre>