m2eclipse weblogic-maven-plugin 无法连接到“http://localhost:7001”:无效类型代码:31
我正在尝试将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您尚未在 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