[ 
https://issues.apache.org/jira/browse/NIFI-6439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16885747#comment-16885747
 ] 

Koji Kawamura commented on NIFI-6439:
-------------------------------------

I had the exact same exception recently, but I don't remember how I fixed that 
and what was the root cause... I think I got the error while building NiFi 
again and again while switching between different Git branches and Java 
versions (Java 8 and 11).

Which JDK version are you using? The current NiFi master branch requires Java 8 
to build and run. NIFI-5176 tracks progress on supporting Java 11. 

One more possible cause is unstable network. I just remember that I encountered 
WiFi connectivity issue and it may had caused the 
XMLBeanDefinitionStoreException as it couldn't load the external DTD file from 
the internet.

So, my suggestions are, check Java version and network connectivity. Hope this 
helps.

> web.context.ContextLoader Context initialization failed
> -------------------------------------------------------
>
>                 Key: NIFI-6439
>                 URL: https://issues.apache.org/jira/browse/NIFI-6439
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration, Tools and Build
>         Environment: Linux,
>            Reporter: Zinan Ma
>            Priority: Major
>              Labels: build
>         Attachments: image-2019-07-15-08-21-51-633.png
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> 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:
> {color:#d04437} 2019-07-12 09:37:53,881 INFO [main] 
> o.e.j.s.handler.ContextHandler._nifi_api Initializing Spring root 
> WebApplicationContext{color}
> {color:#d04437}2019-07-12 09:40:01,659 ERROR [main] 
> o.s.web.context.ContextLoader Context initialization failed{color}
> {color:#d04437}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'.{color}
> {color:#d04437} at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399){color}
> {color:#d04437} at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336){color}
> {color:#d04437} at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304){color}
> {color:#d04437} at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181){color}
> {color:#d04437} at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217){color}
> {color:#d04437} at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188){color}
> !image-2019-07-12-16-49-56-584.png!
>  
> Now I am really stuck at this stage. Any help would be greatly appreciated!
> Please let me know if you need additional information!



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to