-
1. Re: Jboss 4.2.0 : How can i change the web-console password ?
peterj Jan 26, 2010 2:42 PM (in response to ltblight)I
f you have a web-console-user.properties file, then someone there created it - 4.2.0 ships only with two *-users.properties files: jmx-console-users.properties and jbossws-user.properties (well, I am actually looking at 4.2.3, but I don't think that it is any different). In neither of those are the passwords encrtpyed. You will need to go into the server/xxx/deploy/management/console-mgr.sar/web-console.war/web-inf/jboss-web.xml file for the web console to see which security domain is in use, and look up that security domain in the server/xxx/conf/login-conf.xml file to determine what mechanism is is using to ecnrypt the passwords (perhaps sha1 or md5). Or it might just be using the same mechanism as here:
http://community.jboss.org/wiki/encryptingdatasourcepasswords
-
2. Re: Jboss 4.2.0 : How can i change the web-console password ?
ltblight Jan 27, 2010 5:12 AM (in response to peterj)Hi Peter, thanks for your advice, but the procedure doesn't work. I have adapted the command line
java -cp lib/jboss-common.jar:lib/jboss-jmx.jar:server/default/lib/jbosssx.jar:server/default/lib/jboss-jca.jar org.jboss.resource.security.SecureIdentityLoginModule password
for my jboss 4.2.0 but i have this message :
The java class is not found: org/jboss/resource/security/SecureIdentityLoginModuleHow can I fix this problem? For information, my java version is 1.4.2. I have installed java6_64.sdk but when i launch the command java -version, i have Java version "1.4.2".
Or for the second solution, i make a screenshot of jboss-web.xml but i don't understand what can I do. For the second file,login-config.xml, the machinism used to encrypt password is the MD5.
-
jboss-xml.jpg 30.8 KB
-
-
3. Re: Jboss 4.2.0 : How can i change the web-console password ?
f_marchioni Jan 27, 2010 4:33 AM (in response to ltblight)Hi Cristophe
I believe you are trying to load a 1.5 Class in a 1.4 JRE. Try using JDK 1.5
regards,
Francesco
-
4. Re: Jboss 4.2.0 : How can i change the web-console password ?
peterj Jan 27, 2010 10:48 AM (in response to ltblight)"I have installed java6_64.sdk but when i launch the command java -version, i have Java version "1.4.2"."
Sounds like /usr/bin/java still links to the 1.4.2 version. You should go to /usr/bin, enter "ls -al ja*" and then remove all java related links and re-establish them (with "ln -s") to reference the 1.6 version. (If you ar running Fedora or RHEL, this might amount to just changing the /usr/java/default (?) link)
-
5. Re: Jboss 4.2.0 : How can i change the web-console password ?
ltblight Jan 29, 2010 9:10 AM (in response to peterj)When I enter ls -al ja* in /usr/sbin (my OS is AIX 6.1), the system don't found a ja* files. On the other side, I have a two folders in /usr : java6_64 and java5_64. -
6. Re: Jboss 4.2.0 : How can i change the web-console password ?
f_marchioni Jan 29, 2010 9:33 AM (in response to ltblight)That's the 64-bit installation of Java on AIX. Are you trying to use this one ?
Verify at first the installed JDK's on your system with:
lslpp -l | grep Java
if that's the correct JVM, you should link java to one of the following PATH:
/usr/java6_64/jre/bin
/usr/java6_64/bin
Hope it helps
Francesco
-
7. Re: Jboss 4.2.0 : How can i change the web-console password ?
ltblight Jan 29, 2010 9:43 AM (in response to f_marchioni)OK, my version is good now, there is the 1.6.0 on java -version.
I tried the command line
java -cp lib/jboss-common.jar:lib/jboss-jmx.jar:server/default/lib/jbosssx.jar:server/default/lib/jboss-jca.jar org.jboss.resource.security.SecureIdentityLoginModule password
and now, the problem is new :
Exception in thread "main" java.lang.NoClassDefFoundError: org.jboss.resource.security.SecureIdentityLoginModule
Caused by: java.lang.ClassNotFoundException: org.jboss.resource.security.SecureIdentityLoginModule
at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:320)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609) -
8. Re: Jboss 4.2.0 : How can i change the web-console password ?
f_marchioni Jan 29, 2010 10:01 AM (in response to ltblight)Add to your classpath
JBOSS_HOME\server\default\lib\jboss-jca.jar
Hint: use a JavaClass finder to search missing classes in directories