[
https://issues.apache.org/jira/browse/NIFI-6439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16887994#comment-16887994
]
David Sargrad commented on NIFI-6439:
-------------------------------------
Also interesting is that this points to nifi-context.xml.. which for nifi 1.10
is as follows:
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 "License"); 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 "AS IS" 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.
-->
<beans default-lazy-init="true"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
<!-- nifi properties created via getInstance using a file path specified as a
system property -->
<bean id="nifiProperties"
class="org.apache.nifi.properties.NiFiPropertiesLoader"
factory-method="loadDefaultWithKeyFromBootstrap">
</bean>
<!-- variable registry -->
<bean id="variableRegistry"
class="org.apache.nifi.registry.variable.FileBasedVariableRegistry">
<constructor-arg type="java.nio.file.Path[]"
value="#{nifiProperties.getVariableRegistryPropertiesPaths()}" />
</bean>
<!-- flow file event repository -->
<bean id="flowFileEventRepository"
class="org.apache.nifi.spring.RingBufferEventRepositoryBean">
</bean>
<bean id="stringEncryptor" class="org.apache.nifi.encrypt.StringEncryptor"
factory-method="createEncryptor">
<constructor-arg ref="nifiProperties" />
</bean>
<!-- flow registry -->
<bean id="flowRegistryClient"
class="org.apache.nifi.registry.flow.StandardFlowRegistryClient">
<property name="properties" ref="nifiProperties" />
</bean>
<!-- extension manager -->
<bean id="extensionManager"
class="org.apache.nifi.spring.ExtensionManagerFactoryBean">
</bean>
<!-- flow controller -->
<bean id="flowController"
class="org.apache.nifi.spring.FlowControllerFactoryBean">
<property name="properties" ref="nifiProperties"/>
<property name="authorizer" ref="authorizer" />
<property name="auditService" ref="auditService" />
<property name="encryptor" ref="stringEncryptor" />
<property name="bulletinRepository" ref="bulletinRepository" />
<property name="clusterCoordinator" ref="clusterCoordinator" />
<property name="variableRegistry" ref="variableRegistry"/>
<property name="leaderElectionManager" ref="leaderElectionManager" />
<property name="flowRegistryClient" ref="flowRegistryClient" />
<property name="extensionManager" ref="extensionManager" />
</bean>
<!-- flow service -->
<bean id="flowService"
class="org.apache.nifi.spring.StandardFlowServiceFactoryBean">
<property name="properties" ref="nifiProperties"/>
<property name="encryptor" ref="stringEncryptor" />
<property name="authorizer" ref="authorizer" />
</bean>
<!-- bulletin repository -->
<bean id="bulletinRepository"
class="org.apache.nifi.events.VolatileBulletinRepository" />
<bean id="eventReporter" class="org.apache.nifi.events.StandardEventReporter">
<constructor-arg ref="bulletinRepository" />
</bean>
</beans>
{code}
> 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: centos 7
> mvn 3.6.0
> java 1.8.0_212 openjdk
> Reporter: Zinan Ma
> Priority: Major
> Labels: build
> Attachments: image-2019-07-15-08-21-51-633.png,
> image-2019-07-16-09-09-36-005.png, image-2019-07-18-09-16-16-488.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)