我基于Oracle的官方Docker映像为版本12.1.3创建了一个Weblogic通用容器,地址为https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles命令:buildDockerImage.sh-g -s -v 12.1.3这将创建映像oracle/weblogic:12.1.3-通用
我使用1213-domain的样例dockerfile的修改版本构建了Weblogic容器。已将基础映像更改为通用映像,而不是开发人员Docker build -t 1213-domain --build-arg ADMIN_PASSWORD=“admin 123”-f myDockerfile。
将构建的映像推送到Amazon ECR并使用AWS ECS运行容器。将端口Map配置为0:7001,将内存软限制设置为1024,默认ECS设置中没有其他更改。我在前端有一个应用程序负载平衡器,它在443端口接收流量并转发到容器。在浏览器中,我得到一个Weblogic的登录页面,当我输入用户名weblogic和密码admin 123时,我得到错误:
身份验证被拒绝
有趣的是,当我转到容器并使用WLST连接到weblogic时,它工作得很好。
[ec2-user@ip-10-99-103-141 ~]$ docker exec -it 458 bash
[oracle@4580238db23f mydomain]$ /u01/oracle/oracle_common/common/bin/wlst.sh
Initializing WebLogic Scripting Tool (WLST) ...
Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect("weblogic","admin123","t3://localhost:7001")
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "mydomain".
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/mydomain/serverConfig>
有什么迹象表明哪里可能出错吗?
1条答案
按热度按时间xjreopfe1#
确实很有趣。:)..当你输入用户名和密码时,你肯定没有特殊字符。如果你正在复制,请尝试输入相同的字符。同样作为备份,因为你能够登录到WLST,你可以尝试两个选项。
1.重置weblogic的当前密码或尝试添加新的用户名和密码。下面的链接将帮助http://middlewarebuzz.blogspot.com/2013/06/weblogic-password-reset.html
或
http://middlewaremagic.com/weblogic/?p=4962