wildfly-security / wildfly-elytron-tool

Other
0 stars 17 forks source link

elytron-tool.sh filesystem-realm gives NoClassDefFoundError ArrayUtils #179

Open bvfalcon opened 3 years ago

bvfalcon commented 3 years ago

Bug description: Command from Elytron Manual

$JBOSS_HOME/bin/elytron-tool.sh filesystem-realm -u conf/users.properties -r conf/roles.properties --output-location realms/example --summary -f example-fs-realm

gives an Error:

` elytron-tool.bat filesystem-realm -u c:....\sampleapp-users.properties -r c:....\sampleapp-roles.properties --output-location c:...\output --summary -f example-fs-realm

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/ArrayUtils at org.wildfly.security.tool.FileSystemRealmCommand.createFileSystemRealm(FileSystemRealmCommand.java:585) at org.wildfly.security.tool.FileSystemRealmCommand.execute(FileSystemRealmCommand.java:276) at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.ArrayUtils at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 3 more `

Environment: Wildfly 22.0.1.Final

fjuma commented 3 years ago

Thanks for the PR, @bvfalcon. The code for the WildFly Elytron Tool has actually been moved to the WildFly Elytron repo (see the tool directory) and issues are tracked using https://issues.redhat.com/projects/ELY.

bvfalcon commented 3 years ago

@fjuma then can you mark this project as "archived" and move this fix in correct repo?

bvfalcon commented 3 years ago

https://github.com/wildfly-security/wildfly-elytron/pull/1560 - I make duplicate. Close please this repository as ARCHIVED