[
https://issues.apache.org/jira/browse/NIFIREG-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448140#comment-16448140
]
Valery Bonnet commented on NIFIREG-140:
---------------------------------------
Hi,
In the official archive I downloaded (
{{[nifi-registry-0.1.0-bin.zip|https://www.apache.org/dyn/closer.lua?path=/nifi/nifi-registry/nifi-registry-0.1.0/nifi-registry-0.1.0-bin.zip]}}
), the file {{bin\run-nifi-registry.bat}} defines a wrong classpath: The
{{LIB_DIR}} should also contain the subfolders.
One way to fix it, is adding the subfolders to the {{LIB_DIR}}:
{code:java}
set LIB_DIR=%NIFI_REGISTRY_ROOT%\lib\*;%NIFI_REGISTRY_ROOT%\lib\shared\*;
{code}
And then, the {{JAVA_PARAMS}} should be amended to remove the joker:
{code:java}
SET JAVA_PARAMS=-cp %CONF_DIR%;%LIB_DIR% -Xms512m -Xmx1024m %JAVA_ARGS%
org.apache.nifi.registry.NiFiRegistry
{code}
Regards,
> Nifi Registry not able to start - NoClassDefFoundError
> org/apache/nifi/registry/util/FileUtils
> ----------------------------------------------------------------------------------------------
>
> Key: NIFIREG-140
> URL: https://issues.apache.org/jira/browse/NIFIREG-140
> Project: NiFi Registry
> Issue Type: Bug
> Affects Versions: 0.1.0
> Reporter: Gaurang Shah
> Priority: Major
>
> while trying to start the nifi registry I am getting following error.
> nifi registry version: 0.1.0
>
> {code:java}
> 2018-02-06 00:11:52,665 INFO [main] org.apache.nifi.registry.NiFiRegistry
> Launching NiFi Registry...
> 2018-02-06 00:11:52,676 INFO [main] org.apache.nifi.registry.NiFiRegistry
> Read property protection key from conf/bootstrap.conf
> 2018-02-06 00:11:52,799 INFO [main] o.a.n.r.security.crypto.CryptoKeyLoader
> No encryption key present in the bootstrap.conf file at
> C:\nifi-registry-0.1.0-bin\nifi-registry-0.1.0\conf\bootstrap.conf
> 2018-02-06 00:11:52,807 INFO [main] o.a.n.r.p.NiFiRegistryPropertiesLoader
> Loaded 26 properties from
> C:\nifi-registry-0.1.0-bin\nifi-registry-0.1.0\conf\nifi-registry.properties
> 2018-02-06 00:11:52,811 INFO [main] org.apache.nifi.registry.NiFiRegistry
> Loaded 26 properties
> 2018-02-06 00:11:52,813 INFO [main] org.apache.nifi.registry.NiFiRegistry
> NiFi Registry started without Bootstrap Port information provided; will not
> listen for requests from Bootstrap
> 2018-02-06 00:11:52,820 ERROR [main] org.apache.nifi.registry.NiFiRegistry
> Failure to launch NiFi Registry due to java.lang.NoClassDefFoundError:
> org/apache/nifi/registry/util/FileUtils
> java.lang.NoClassDefFoundError: org/apache/nifi/registry/util/FileUtils
> at org.apache.nifi.registry.NiFiRegistry.<init>(NiFiRegistry.java:97)
> ~[nifi-registry-runtime-0.1.0.jar:0.1.0]
> at org.apache.nifi.registry.NiFiRegistry.main(NiFiRegistry.java:158)
> ~[nifi-registry-runtime-0.1.0.jar:0.1.0]
> Caused by: java.lang.ClassNotFoundException:
> org.apache.nifi.registry.util.FileUtils
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161]
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
> ~[na:1.8.0_161]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_161]
> ... 2 common frames omitted
> 2018-02-06 00:11:52,824 INFO [Thread-1] org.apache.nifi.registry.NiFiRegistry
> Initiating shutdown of Jetty web server...
> 2018-02-06 00:11:52,824 INFO [Thread-1] org.apache.nifi.registry.NiFiRegistry
> Jetty web server shutdown completed (nicely or otherwise).
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)