Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6439

web.context.ContextLoader Context initialization failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.10.0
    • 1.10.0
    • centos 7
      mvn 3.6.0
      java 1.8.0_212 openjdk
    • Important

    Description

      Hi NIFI team,

      I have been trying to run NIFI in a local debugging environment by following this [tutorial|https://nifi.apache.org/quickstart.html]

      When I do mvn -T C2.0 clean install, The test cases failed.(some spring context test case) I then did a mvn clean and
      mvn install -DskipTests
      I successfully build it but then when I run ./nifi.sh start, Nifi could not start so I check the nifi-app.log and here is the first error:

       2019-07-12 09:37:53,881 INFO [main] o.e.j.s.handler.ContextHandler._nifi_api Initializing Spring root WebApplicationContext
      2019-07-12 09:40:01,659 ERROR [main] o.s.web.context.ContextLoader Context initialization failed
      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 19 in XML document from class path resource [nifi-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 139; cvc-elt.1: Cannot find the declaration of element 'beans'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)

       

      Now I am really stuck at this stage. Any help would be greatly appreciated!

      Please let me know if you need additional information!

      Attachments

        1. image-2019-07-18-09-16-16-488.png
          11 kB
          David Sargrad
        2. image-2019-07-16-09-09-36-005.png
          30 kB
          Zinan Ma
        3. image-2019-07-15-08-21-51-633.png
          981 kB
          Zinan Ma

        Issue Links

          Activity

            People

              pwicks Peter Wicks
              Zack1014 Zinan Ma
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 96h
                  96h
                  Remaining:
                  Remaining Estimate - 95.5h
                  95.5h
                  Logged:
                  Remaining Estimate - 95.5h
                  0.5h