WSO2 API管理器:使用外部数据库时,chpasswd.sh不起作用 [英] WSO2 API Manager: chpasswd.sh does not work when using external database

查看:109
本文介绍了WSO2 API管理器:使用外部数据库时,chpasswd.sh不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用脚本./chpasswd.sh更改管理员密码时,它将读取所有jar文件以设置类路径.但是它不会读取$ CARBON_HOME/repository/components/lib/*.jar文件.在使用Oracle之类的数据库时,将ojdbc6.jar文件放在此目录中.

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.

当我将ojdbc6.jar文件复制到$ CARBON_HOME/repository/lib目录中时,该脚本有效.

When I copy the ojdbc6.jar file into $CARBON_HOME/repository/lib directory, the script works.

我的命令是:

./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?

推荐答案

是的.我想,根据脚本,您可以看到它添加了以下目录作为类路径..它不包含component/lib.同样,一旦运行ant脚本,它可能就不会将component/lib中的jar复制到存储库/lib中.

Yes.. I guess, according to the script, you can see that it adds following directories as the class path.. It does not contains component/lib. Also once ant script is run, It may not copy the jars in component/lib in to repository/lib.

对于"$ CARBON_HOME"/lib/*.jar中的f 做 CARBON_CLASSPATH = $ CARBON_CLASSPATH:$ f 完成

for f in "$CARBON_HOME"/lib/*.jar do CARBON_CLASSPATH=$CARBON_CLASSPATH:$f done

对于"$ CARBON_HOME"/存储库/lib/*.jar中的g 做 CARBON_CLASSPATH = $$ CARBON_CLASSPATH:$ g 完成

for g in "$CARBON_HOME"/repository/lib/*.jar do CARBON_CLASSPATH=$CARBON_CLASSPATH:$g done

在"$ CARBON_HOME"/lib/api/*.jar中为h 做 CARBON_CLASSPATH = $ CARBON_CLASSPATH:$ h 完成

for h in "$CARBON_HOME"/lib/api/*.jar do CARBON_CLASSPATH=$CARBON_CLASSPATH:$h done

这篇关于WSO2 API管理器:使用外部数据库时,chpasswd.sh不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆