[
https://issues.jboss.org/browse/WFLY-3887?page=com.atlassian.jira.plugin....
]
Darran Lofthouse commented on WFLY-3887:
----------------------------------------
The error message that you are showing is really only possible if the wrong version of
Java is in use, can you please edit the add-user.bat script - should be line 66 but
between these two lines: -
{code}
set "JAVA_OPTS=%JAVA_OPTS%"
"%JAVA%" %JAVA_OPTS% ^
{code}
Between these two lines add the following: -
{code}
echo %JAVA_HOME%
"%JAVA%" -version
{code}
This will help clarify how the add-user batch script is selecting the java executable.
UnsupportedClassVersionError is thrown while adding user.
---------------------------------------------------------
Key: WFLY-3887
URL:
https://issues.jboss.org/browse/WFLY-3887
Project: WildFly
Issue Type: Bug
Components: Domain Management, Security
Affects Versions: 8.1.0.Final, 9.0.0.Alpha1
Environment: Windows Server 2008
Java 8u20
Reporter: shinzey shinzey
Assignee: Darran Lofthouse
Labels: domain, security
Fix For: 8.1.0.Final
The server can be successfully started, but I'm unable to manage it because running
add-user.bat immediately fails with the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/jboss/as/domain/management/security/adduser/AddUser : Unsupported major.minor version
51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at
org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92)
at org.jboss.modules.Module.loadModuleClass(Module.java:568)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:447)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:414)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.jboss.modules.Module.run(Module.java:300)
at org.jboss.modules.Main.main(Main.java:460)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)