简体   繁体   English

Weblogic 服务器无法启动,因为其中部署了 bad.jar。 但是我无法启动管理控制台,为了删除.jar

[英]Weblogic server won’t start, because a bad.jar was deployed in it. But I can’t start the admin console, in order to remove the .jar

My Weblogic server was running fine inside my Eclipse.我的 Weblogic 服务器在我的 Eclipse 中运行良好。 But then I accidentally deployed an.ear into my Weblogic server (using the server's Admin Console) which conflicts with another.ear, and now my Weblogic server won't start up.但后来我不小心将 an.ear 部署到我的 Weblogic 服务器(使用服务器的管理控制台)中,它与另一个.ear 冲突,现在我的 Weblogic 服务器无法启动。 I know how to remove the.ear.我知道如何去除耳朵。 The way to remove it is to go to the Admin Console, choose Deployments, checkmark the offending.ear and then choose stop and delete.删除它的方法是 go 到管理控制台,选择部署,选中 offending.ear 然后选择停止并删除。 But I can't get to the Admin Console because the Weblogic server won't start up.但我无法进入管理控制台,因为 Weblogic 服务器无法启动。

I want to undeploy it, but I can't, because I can't start up the Admin Console.我想取消部署它,但我不能,因为我无法启动管理控制台。 I also tried undeploying it with the command line, but the command requires communicating with a running server.我还尝试使用命令行取消部署它,但该命令需要与正在运行的服务器通信。

The error message in the Eclipse console says: "Failed to initialize the application 'EILoggingSharedLib [LibSpecVersion=2.22,LibImplVersion=2.22]" due to error weblogic.application.library.LibraryDeploymentException: [J2EE:160145]Failed to deploy library Extension-Name: EILoggingSharedLib, Specification-Version: 2.9, Implementation-Version: 2.9, because of conflicting library Manifest values, and library information registered with the server: [Specification-Version: 2.9 vs. 2.22, Implementation-Version: 2.9 vs. 2.22]. Eclipse 控制台中的错误消息说:“无法初始化应用程序 'EILoggingSharedLib [LibSpecVersion=2.22,LibImplVersion=2.22]”由于错误 weblogic.application.library.LibraryDeploymentException: [J2EE:160145] 无法部署库 Extension-Name : EILoggingSharedLib, Specification-Version: 2.9, Implementation-Version: 2.9,因为库 Manifest 值冲突,以及向服务器注册的库信息:[Specification-Version: 2.9 vs. 2.22, Implementation-Version: 2.9 vs. 2.22]。 Check the library MANIFEST.MF file and correct version information there to match server settings, or undeploy the misconfigured library."检查库 MANIFEST.MF 文件并在其中更正版本信息以匹配服务器设置,或取消部署错误配置的库。”

This is the command line command I used:这是我使用的命令行命令:

C:\bea12c\wlserver\server\lib>java -cp weblogic.jar weblogic.Deployer -verbose -noexit -adminurl http://localhost:7016 -username (myusername) -password (mypassword) -name Dev12c -undeploy EILoggingSharedLib -timeout 300 C:\bea12c\wlserver\server\lib>java -cp weblogic.jar weblogic.Deployer -verbose -noexit -adminurl http://localhost:7016 -username (myusername) -password (mypassword) -name Dev12c -undeploy EILoggingSharedLib -超时 300

weblogic.Deployer invoked with options: -verbose -noexit -adminurl http://localhost:7016 -username weblogic -name Dev12c -undeploy EILoggingSharedLib -timeout 300 Unexpected Error Initializing Deployer: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to ' http://localhost:7016 ': Destination 0:0:0:0:0:0:0:1, 7016 unreachable; weblogic.Deployer invoked with options: -verbose -noexit -adminurl http://localhost:7016 -username weblogic -name Dev12c -undeploy EILoggingSharedLib -timeout 300 Unexpected Error Initializing Deployer: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools .deployer.DeployerException: 无法连接到' http://localhost:7016 ': 目的地 0:0:0:0:0:0:0:1, 7016 无法访问; nested exception is: java.net.ConnectException: Could not connect to /0:0:0:0:0:0:0:1;嵌套异常是:java.net.ConnectException:无法连接到 /0:0:0:0:0:0:0:1; No available router to destination.目的地没有可用的路由器。 Ensure the url represents a running admin server and that the credentials are correct.确保 url 代表正在运行的管理服务器并且凭据正确。 If using http protocol, tunneling must be enabled on the admin server.如果使用 http 协议,则必须在管理服务器上启用隧道。

I also tried starting the server with startweblogic.sh with the following command, using the same ID and password that I use to log into the admin console (when it was running).我还尝试使用 startweblogic.sh 使用以下命令启动服务器,使用与登录管理控制台相同的 ID 和密码(当它运行时)。 But it didn't help:但这没有帮助:

startweblogic.sh username=(myusername) password=(mypassword) startweblogic.sh 用户名=(我的用户名)密码=(我的密码)

Thank you!谢谢!

First, try to remove your application from deployed applications with Eclipse.首先,尝试使用 Eclipse 从已部署的应用程序中删除您的应用程序。 If it does not work, edit the ${DOMAIN_HOME}/config/config.xml file and remove the declaration of your application.如果它不起作用,请编辑 ${DOMAIN_HOME}/config/config.xml 文件并删除应用程序的声明。 Then start your server.然后启动你的服务器。

I found a solution.我找到了解决方案。 My Weblogic server that had the problem was at http://localhost:7016 .有问题的我的 Weblogic 服务器位于http://localhost:7016 Since it's a localhost server, all the libraries and apps deployed to that localhost are in a directory in my C: drive where my Weblogic server installation is.由于它是 localhost 服务器,因此部署到该 localhost 的所有库和应用程序都位于我的 C 的目录中:我的 Weblogic 服务器安装所在的驱动器。 I deleted the offending.ear using File Explorer, then the Weblogic server started up fine.我使用文件资源管理器删除了 offending.ear,然后 Weblogic 服务器启动正常。 I was able to go into the Admin Console and delete them again from there.我能够 go 进入管理控制台并从那里再次删除它们。 After that, all was good.在那之后,一切都很好。 Thank you, Emmanuel and Wesley.谢谢你,伊曼纽尔和卫斯理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM