[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project kafka-schema-registry-parent: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project kafka-schema-registry-parent: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain
at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:352)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain
at java.net.URLClassLoader.findClass (URLClassLoader.java:591)
at java.lang.ClassLoader.loadClassHelper (ClassLoader.java:934)
at java.lang.ClassLoader.loadClass (ClassLoader.java:879)
at java.lang.ClassLoader.loadClass (ClassLoader.java:862)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:285)
at java.lang.Thread.run (Thread.java:813)
Looks like it's trying to search classes folder from D:\ka\schema-registry\target\classes but there is no such folder created in Parent level target folder.
I have tried with /d/kaf/apache-maven-3.6.3/bin/mvn exec:java -Dexec.mainClass=io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain
also with
/d/kaf/apache-maven-3.6.3/bin/mvn exec:java
and also from Kafka-schema-registry/target as ./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties
from parent folder as ./bin/windows/schema-registry-start.bat ./config/schema-registry.properties
Hi,
I am not able to start Schema registry version 5.5.1 after building it. Kafka and Zookeeper are running getting error as
Invoking : io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main() [DEBUG] Plugin Dependencies will be excluded. [DEBUG] Project Dependencies will be included. [DEBUG] Collected project artifacts [io.confluent:common-utils:jar:5.5.1:compile, org.slf4j:slf4j-api:jar:1.7.26:compile] [DEBUG] Collected project classpath [D:\ka\schema-registry\target\classes] [DEBUG] Adding to classpath : file:/D:/ka/schema-registry/target/classes [DEBUG] Adding project dependency artifact: common-utils to classpath [DEBUG] Adding project dependency artifact: slf4j-api to classpath [DEBUG] joining on thread Thread[io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(),5,io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain] [WARNING] java.lang.ClassNotFoundException: io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain at java.net.URLClassLoader.findClass (URLClassLoader.java:591) at java.lang.ClassLoader.loadClassHelper (ClassLoader.java:934) at java.lang.ClassLoader.loadClass (ClassLoader.java:879) at java.lang.ClassLoader.loadClass (ClassLoader.java:862) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:285) at java.lang.Thread.run (Thread.java:813) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for kafka-schema-registry-parent 5.5.1: [INFO] [INFO] kafka-schema-registry-parent ....................... FAILURE [ 10.440 s] [INFO] kafka-schema-registry-client ....................... SKIPPED [INFO] kafka-json-schema-provider ......................... SKIPPED [INFO] kafka-protobuf-provider ............................ SKIPPED [INFO] kafka-schema-serializer ............................ SKIPPED [INFO] kafka-avro-serializer .............................. SKIPPED [INFO] kafka-schema-registry .............................. SKIPPED [INFO] kafka-json-serializer .............................. SKIPPED [INFO] kafka-connect-avro-data ............................ SKIPPED [INFO] kafka-connect-avro-converter ....................... SKIPPED [INFO] kafka-schema-registry-package ...................... SKIPPED [INFO] kafka-streams-avro-serde ........................... SKIPPED [INFO] kafka-json-schema-serializer ....................... SKIPPED [INFO] kafka-connect-json-schema-converter ................ SKIPPED [INFO] kafka-streams-json-schema-serde .................... SKIPPED [INFO] kafka-protobuf-serializer .......................... SKIPPED [INFO] kafka-connect-protobuf-converter ................... SKIPPED [INFO] kafka-streams-protobuf-serde ....................... SKIPPED [INFO] kafka-serde-tools-package .......................... SKIPPED [INFO] maven-plugin ....................................... SKIPPED [INFO] client-console-scripts ............................. SKIPPED [INFO] schema-registry-console-scripts .................... SKIPPED [INFO] kafka-schema-registry-benchmark .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.073 s [INFO] Finished at: 2020-07-20T16:19:51+05:30 [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project kafka-schema-registry-parent: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project kafka-schema-registry-parent: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:352) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.ClassNotFoundException: io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain at java.net.URLClassLoader.findClass (URLClassLoader.java:591) at java.lang.ClassLoader.loadClassHelper (ClassLoader.java:934) at java.lang.ClassLoader.loadClass (ClassLoader.java:879) at java.lang.ClassLoader.loadClass (ClassLoader.java:862) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:285) at java.lang.Thread.run (Thread.java:813)
Looks like it's trying to search classes folder from D:\ka\schema-registry\target\classes but there is no such folder created in Parent level target folder.
I have tried with /d/kaf/apache-maven-3.6.3/bin/mvn exec:java -Dexec.mainClass=io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain also with /d/kaf/apache-maven-3.6.3/bin/mvn exec:java
and also from Kafka-schema-registry/target as ./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties from parent folder as ./bin/windows/schema-registry-start.bat ./config/schema-registry.properties