Docker中Weblogic的登录问题

问题描述 投票:0回答:1

我基于Oracle的https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles官方Docker镜像为版本12.1.3创建了Weblogic通用容器。命令:buildDockerImage.sh -g -s -v 12.1.3这将创建映像oracle / weblogic:12.1.3-generic

使用1213域的示例dockerfile的修改版本,我构建了Weblogic容器。注意:将基本映像更改为通用映像,而不是开发人员映像docker build -t 1213-domain --build-arg ADMIN_PASSWORD =“ admin123” -f myDockerfile。

将构建的映像推送到Amazon ECR并使用AWS ECS运行容器。将端口映射配置为0:7001,将内存软限制设置为1024,默认ECS设置中没有其他更改。我在前面有一个应用程序负载平衡器,该负载平衡器在443端口接收流量并转发到容器。在浏览器中,我得到一个Weblogic的登录页面,当我输入用户名作为weblogic和密码作为admin123时,出现错误:

身份验证被拒绝

enter image description here

有趣的是,当我转到容器并使用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>

有关发生问题的任何提示?

docker weblogic weblogic12c
1个回答
0
投票

确实非常有趣。 :) ..确保输入用户名和密码时没有特殊字符。如果要应对,请尝试键入相同的内容。同样作为备份,由于您能够登录WLST,因此可以尝试两种选择。

© www.soinside.com 2019 - 2024. All rights reserved.