When using the script ./chpasswd.sh to change the admin password, it reads all the jar files to setup a classpath. But it does NOT read the $CARBON_HOME/repository/components/lib/*.jar files. In this directory you put the ojdbc6.jar file when you use a database such as Oracle.
When I copy the ojdbc6.jar file into $CARBON_HOME/repository/lib directory, the script works.
My command is:
./chpasswd.sh --db-url "jdbc:oracle:thin:@localhost:1521:orcl" --db-username wso2carbon -db-password wso2carbon --username admin --new-password nimda
Could this be a bug in the script?