<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: CFM- Nifi service is not starting due to &amp;quot;ERROR org.springframework.web.context.ContextLoader: Context initialization failed&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/360343#M238373</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;A class="dcxa-lithium-link" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571" target="_blank"&gt;&lt;SPAN&gt;Faerballert&lt;/SPAN&gt;&lt;/A&gt;!&amp;nbsp; Sorry to barge into this thread.&amp;nbsp; I am also receiving this same error.&amp;nbsp; When I run the command you recommended, I obtain the following result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dave@nificlient1:~/tools/nifi-1.19.1-bin/nifi-1.19.1/bin$ ps aux | grep nifi&lt;BR /&gt;avahi 1026 0.0 0.0 7756 3840 ? Ss 13:59 0:00 avahi-daemon: running [nificlient1.local]&lt;BR /&gt;dave 462448 0.0 0.0 6608 2228 pts/0 S+ 16:01 0:00 grep --color=auto nifi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i successfully kill these processes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 16:19:36 GMT</pubDate>
    <dc:creator>davehkd</dc:creator>
    <dc:date>2023-01-02T16:19:36Z</dc:date>
    <item>
      <title>CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268369#M206134</link>
      <description>&lt;P&gt;Nifi service is not coming up due to the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;/var/log/nifi/nifi-app.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;2019-08-16 14:45:57,385 ERROR org.springframework.web.context.ContextLoader: Context initialization failed&lt;/P&gt;&lt;P class="p1"&gt;org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency expressed through method 'setJwtAuthenticationProvider' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtAuthenticationProvider' defined in class path resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 'jwtService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtService' defined in class path resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 'keyService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyService' defined in class path resource [nifi-administration-context.xml]: Cannot resolve reference to bean 'keyTransactionBuilder' while setting bean property 'transactionBuilder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyTransactionBuilder' defined in class path resource [nifi-administration-context.xml]: Cannot resolve reference to bean 'keyDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyDataSource': FactoryBean threw exception on object creation; nested exception is org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-176]&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:666)&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Any insights?&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Hemanth&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:36:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268369#M206134</guid>
      <dc:creator>hpasumarthi</dc:creator>
      <dc:date>2026-04-21T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268373#M206138</link>
      <description>&lt;P&gt;Another instance is running and blocking in background.&lt;/P&gt;&lt;P&gt;Check running processes and kill them&lt;/P&gt;&lt;PRE&gt;ps -ef | grep nifi&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;after that, restart.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:51:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268373#M206138</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2019-08-20T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268381#M206145</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I cannot find another instance running on the background.&lt;/P&gt;&lt;P&gt;[root@ip-172-31-15-238 ec2-user]# ps -ef | grep nifi&lt;BR /&gt;root 15458 15388 0 12:31 pts/0 00:00:00 grep --color=auto nifi&lt;BR /&gt;nifi 16931 11875 0 11:49 ? 00:00:00 /usr/bin/python2 /opt/cloudera/cm-agent/bin/cm proc_watcher 16939&lt;BR /&gt;nifi 16939 16931 0 11:49 ? 00:00:05 /usr/java/jdk1.8.0_181-cloudera//bin/java -cp /var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/bootstrap/* -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.log.dir=/var/log/nifi -Dorg.apache.nifi.bootstrap.config.pid.dir=/var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE -Dorg.apache.nifi.bootstrap.config.file=/var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE/bootstrap.conf org.apache.nifi.bootstrap.RunNiFi run&lt;BR /&gt;nifi 16940 16931 0 11:49 ? 00:00:00 /usr/bin/python2 /opt/cloudera/cm-agent/bin/cm redactor --fds 3 5&lt;BR /&gt;nifi 17181 16939 14 11:49 ? 00:05:55 /usr/java/jdk1.8.0_181-cloudera/bin/java -classpath /var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/jul-to-slf4j-1.7.25.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/jetty-schemas-3.1.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/nifi-runtime-1.9.0.1.0.0.0-90.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/nifi-api-1.9.0.1.0.0.0-90.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/logback-core-1.2.3.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/jcl-over-slf4j-1.7.25.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/nifi-properties-1.9.0.1.0.0.0-90.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/slf4j-api-1.7.25.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/nifi-nar-utils-1.9.0.1.0.0.0-90.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/nifi-framework-api-1.9.0.1.0.0.0-90.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/javax.servlet-api-3.1.0.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/logback-classic-1.2.3.jar:/opt/cloudera/parcels/CFM-1.0.0.0/NIFI/lib/log4j-over-slf4j-1.7.25.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Djavax.security.auth.useSubjectCredsOnly=true -Djava.security.egd=file:/dev/urandom -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=/var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE/nifi.properties -Dnifi.bootstrap.listen.port=36497 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/var/log/nifi org.apache.nifi.NiFi -K /var/run/cloudera-scm-agent/process/45-nifi-NIFI_NODE/sensitive.key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have killed the processes and restarted Nifi but still the same error message.&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:33:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268381#M206145</guid>
      <dc:creator>hpasumarthi</dc:creator>
      <dc:date>2019-08-20T12:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268392#M206156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes you are correct. Issue is resolved after restart of the Nifi node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:12:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/268392#M206156</guid>
      <dc:creator>hpasumarthi</dc:creator>
      <dc:date>2019-08-20T13:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/360343#M238373</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A class="dcxa-lithium-link" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571" target="_blank"&gt;&lt;SPAN&gt;Faerballert&lt;/SPAN&gt;&lt;/A&gt;!&amp;nbsp; Sorry to barge into this thread.&amp;nbsp; I am also receiving this same error.&amp;nbsp; When I run the command you recommended, I obtain the following result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dave@nificlient1:~/tools/nifi-1.19.1-bin/nifi-1.19.1/bin$ ps aux | grep nifi&lt;BR /&gt;avahi 1026 0.0 0.0 7756 3840 ? Ss 13:59 0:00 avahi-daemon: running [nificlient1.local]&lt;BR /&gt;dave 462448 0.0 0.0 6608 2228 pts/0 S+ 16:01 0:00 grep --color=auto nifi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i successfully kill these processes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 16:19:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/360343#M238373</guid>
      <dc:creator>davehkd</dc:creator>
      <dc:date>2023-01-02T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: CFM- Nifi service is not starting due to "ERROR org.springframework.web.context.ContextLoader: Context initialization failed"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/360358#M238376</link>
      <description>&lt;P&gt;What I am tryin mg to do is install a nifi cluster onto 3 Ubuntu 22.04 clients. I first installed nifi on each client independently. And then attempted to install a cluster using the same clients…I first stopped the nifi service running on each of the clients before attempting to install a cluster.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Should I not install nifi separately on each of the clients before attempting to install the cluster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for any guidance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 18:41:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CFM-Nifi-service-is-not-starting-due-to-quot-ERROR-org/m-p/360358#M238376</guid>
      <dc:creator>davehkd</dc:creator>
      <dc:date>2023-01-02T18:41:06Z</dc:date>
    </item>
  </channel>
</rss>

