m2eclipse weblogic-maven-plugin 无法连接到“http://localhost:7001”:无效类型代码:31

发布于 2024-10-10 04:28:39 字数 642 浏览 0 评论 0原文

我正在尝试将 Web 应用程序部署到安装在本地计算机上的 Weblogic 服务器。从命令行调用 mvn install 时效果很好。然而,从 Eclipse 中,它给出了错误 - “无法连接到‘http://localhost:7001’:无效类型代码:31。”

Weblogic 列出以参数 DeployMojoBase[adminServerHostName = localhost、adminServerProtocol = http、adminServerPort = 7001、userId = weblogic、password = weblogic、projectPackaging = war、name = miadidas-ecom-1、targetNames = AdminServer、remote = false] 开头的应用程序

错误发生在 mojoExecution 阶段,异常为 org.apache.maven.plugin.MojoExecutionException:工件 listapps 期间遇到异常:weblogic.deploy.api.tools.deployer.DeployerException:无法连接到“http://localhost:7001”:无效输入代码:31。确保 url 代表正在运行的管理服务器并且凭据正确。如果使用 http 协议,则必须在管理服务器上启用隧道。

I'm trying to deploy a web application to weblogic server installed in my local machine. It works well when mvn install is invoked from command line. However from eclipse, it gives the error - "Unable to connect to 'http://localhost:7001': invalid type code: 31."

Weblogic list apps beginning with parameters DeployMojoBase[adminServerHostName = localhost, adminServerProtocol = http, adminServerPort = 7001, userId = weblogic, password = weblogic, projectPackaging = war, name = miadidas-ecom-1, targetNames = AdminServer, remote = false]

An error occurred in phase mojoExecution with the exception org.apache.maven.plugin.MojoExecutionException: Exception encountered during artifact listapps: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 'http://localhost:7001': invalid type code: 31. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帥小哥 2024-10-17 04:28:39

如果您尚未在 WebLogic Server 中启用 HTTP 隧道,请转至管理控制台的“环境”>“服务器>管理服务器>协议> HTTP 并设置启用隧道= true。

如果启用隧道,您可以将 [http://localhost:7001] 更改为 [t3://localhost:7001]

如果您在启用隧道后得到此信息,请使用以下选项执行所有任务
-Dsun.lang.ClassLoader.allowArraySyntax=true

enable HTTP tunneling in WebLogic Server if you havent already done so, Go to Administration Console at Environment > Servers > AdminServer > Protocols > HTTP and set Enable Tunneling= true.

if tunneling is enabled, you can change [http://localhost:7001] by [t3://localhost:7001]

if you are getting this after enabling tunneling use following option to execute all the tasks
-Dsun.lang.ClassLoader.allowArraySyntax=true

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文