estebanwasinger / dataweave-playground Goto Github PK
View Code? Open in Web Editor NEWDataWeave Language Open Source Playground
DataWeave Language Open Source Playground
Hi Esteban,
I'm trying to run your project, when I run the mvn exec:java -Dexec.mainClass="com.github.estebanwasinger.DWPlayground" command I see this error:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project weave-playground: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground
Do I missed something?
Best regards!
I have downloaded the code for dataweave-playground.
I get this error after starting with:
mvn exec:java -Dexec.mainClass="com.github.estebanwasinger.DWPlayground"
I use a Windows 10 OS and a
Maven 3.5.4 version
Java oracle 1.8.0.191
The only setting in my settings.xml file is this:
<settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">`
Error I get is this:
[DEBUG] joining on thread Thread[com.github.estebanwasinger.DWPlayground.main(),5,com.github.estebanwasinger.DWPlayground]
[WARNING]
java.lang.ClassNotFoundException: com.github.estebanwasinger.DWPlayground
at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.506 s
[INFO] Finished at: 2020-02-06T19:49:30+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project weave-playground: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project weave-playground: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground
at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:339)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: com.github.estebanwasinger.DWPlayground
at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:748)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\tools\dataweaveplayground>
What is going wrong ?
I am getting "package javafx.util does not exist" errors when I try to run the program. I'm using the OpenJDK 11.04, although I saw identical errors when I was running OpenJDK 8.0.222.
Is there another version of Java that I should use for this, or are there any prerequisite packages for the OpenJDK that I should install?
Can you please make it for DW 2.2.0 as well
Really! Impressive @estebanwasinger.
Getting ClassNotFoundError now. can you please help me out.
`[WARNING]
java.lang.ClassNotFoundException: com.github.estebanwasinger.DWPlayground
at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
at java.lang.ClassLoader.loadClass (ClassLoader.java:588)
at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
at java.lang.Thread.run (Thread.java:834)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.226 s
[INFO] Finished at: 2020-10-28T11:20:42+05:30
Request: Can I run it on my wordpress blog to make to secure(https). My blog is dedicated to MuleSoft and you can find it https://vanchiv.com
`
I'm new to Maven and this might be perfectly fine, but any pointers are appreciated. When I downloaded the code and ran the instructions I got this back:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.estebanwasinger:weave-playground:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 67, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/apache/maven/plugins/maven-metadata.xml
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/mule/tools/maven-metadata.xml
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.mule.tools/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/codehaus/mojo/exec-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[INFO]
[INFO] ------------< com.github.estebanwasinger:weave-playground >-------------
[INFO] Building weave-playground 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Failure to transfer org.mule.tools/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.mule.tools/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ weave-playground ---
[WARNING]
java.lang.ClassNotFoundException: com.github.estebanwasinger.DWPlayground
at java.net.URLClassLoader$1.run (URLClassLoader.java:372)
at java.net.URLClassLoader$1.run (URLClassLoader.java:361)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.079 s
[INFO] Finished at: 2019-03-28T10:26:25-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project weave-playground: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException```
Since it says that it is missing version at line 67, I added `<version>1.0</version>` to line 66 and then I got this back:
```mvn exec:java -Dexec.mainClass="com.github.estebanwasinger.DWPlayground" 1 ↵ 10055 10:27:55
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.estebanwasinger:weave-playground:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 68, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/apache/maven/plugins/maven-assembly-plugin/1.0/maven-assembly-plugin-1.0.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:1.0: Plugin org.apache.maven.plugins:maven-assembly-plugin:1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:1.0
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/mule/tools/maven-metadata.xml
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/apache/maven/plugins/maven-metadata.xml
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.mule.tools/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
Downloading from mulesoft-ee-release: https://repository.mulesoft.org/nexus/content/groups/private/org/codehaus/mojo/exec-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[INFO]
[INFO] ------------< com.github.estebanwasinger:weave-playground >-------------
[INFO] Building weave-playground 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:1.0: Plugin org.apache.maven.plugins:maven-assembly-plugin:1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:1.0
[WARNING] Failure to transfer org.mule.tools/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.mule.tools/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from https://repository.mulesoft.org/nexus/content/groups/private was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-ee-release has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml from/to mulesoft-ee-release (https://repository.mulesoft.org/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ weave-playground ---
[WARNING]
java.lang.ClassNotFoundException: com.github.estebanwasinger.DWPlayground
at java.net.URLClassLoader$1.run (URLClassLoader.java:372)
at java.net.URLClassLoader$1.run (URLClassLoader.java:361)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.687 s
[INFO] Finished at: 2019-03-28T10:28:22-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project weave-playground: An exception occured while executing the Java class. com.github.estebanwasinger.DWPlayground -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException```
Any ideas about what could be causing this?
Is it fine to use dataweave plugin in a seperate project without using or having mule esb enterprise license? I see the dependencies are available on mulesoft release but would like to check if there is any licensing need before using it in my non commercial project.
Thank you for a nice example!
We are looking similar dataweave editor what we could use in Angular6+ application.
Erki
It would make sense to update page to point to official Mule Playground.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.