重启了一次linux服务器后,weblogic启动莫名报错,查看日志发现说部署的项目有个bean类无法加载,
1、然后手动删除 已经部署的项目,先在
domais/servers/AdminServer/upload
删除上传的项目;启动报错
<Jul 13, 2016 10:01:47 AM CST> <Error> <Deployer> <BEA-149605> <Failed to create App/Comp mbeans for AppDeploymentMBean mmp. Error - weblogic.management.DeploymentException: . weblogic.management.DeploymentException: at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69) at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48) at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110) at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76) at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89) Truncated. see log file for complete stacktrace Caused By: java.util.zip.ZipException: Error opening file - /domains/borzmmp/servers/AdminServer/upload/mmp.war Message - error in opening zip file at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:87) at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:76) at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:61) at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48) at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110) Truncated. see log file for complete stacktrace >
2.修改配置文件
/soft/Oracle/Middleware/user_projects/domains/borzmmp/config
此文件内删除以下代码
<app-deployment> <name>yitong-mmc</name> <target>AdminServer</target> <module-type>war</module-type> <source-path>servers/AdminServer/upload/yitong-mmc.war</source-path> <security-dd-model>DDOnly</security-dd-model> </app-deployment>
3、启动还报错
<Jul 13, 2016 10:05:22 AM CST> <Emergency> <Security> <BEA-090087> <Server failed to bind to the configured Admin port. The port may already be used by another process.> <Jul 13, 2016 10:05:22 AM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[2]". The address 127.0.0.1 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use.>
<Jul 13, 2016 10:05:22 AM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[3]". The address 0:0:0:0:0:0:0:1 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use.>
<Jul 13, 2016 10:05:22 AM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:20c:29ff:fe93:a0f1 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use.>
<Jul 13, 2016 10:05:22 AM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>
<Jul 13, 2016 10:05:22 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Jul 13, 2016 10:05:22 AM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Jul 13, 2016 10:05:22 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
呵呵哒了
原来端口占用了
4、解决端口占用
[root@localhost bin]# netstat -apn | grep 7001 tcp 0 0 :::7001 :::* LISTEN 22458/java
万千人群中一眼就发现了它,让我瞅下这是个什么鬼
[root@localhost bin]# ps -aux|grep 22458 root 13517 0.0 0.0 103252 840 pts/1 S+ 10:10 0:00 grep 22458 root 22458 0.0 8.7 8759556 1425968 ? Sl Jun27 19:09 /usr/java/jdk1.8.0_66/bin/java -Djava.util.logging.config.file=/root/.IntelliJIdea2016.1/system/tomcat/Unnamed_mmp-sdk/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:37150,suspend=y,server=n -Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1098 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1 -Djava.endorsed.dirs=/soft/apache-tomcat-7.0.67/endorsed -classpath /soft/apache-tomcat-7.0.67/bin/bootstrap.jar:/soft/apache-tomcat-7.0.67/bin/tomcat-juli.jar -Dcatalina.base=/root/.IntelliJIdea2016.1/system/tomcat/Unnamed_mmp-sdk -Dcatalina.home=/soft/apache-tomcat-7.0.67 -Djava.io.tmpdir=/soft/apache-tomcat-7.0.67/temp org.apache.catalina.startup.Bootstrap start
原来是之前服务器上装了intellij,启动后忘记关掉了。
怒关
kill -9
重启一切正常