Linux stop weblogic服务报错

当前位置: 讨论区 » 技术问答 »  WebLogic
 
灯火阑珊,寂寞流年

Linux stop weblogic服务报错

灯火阑珊,寂寞流年 发表于 10-26 13:32 1个月前, 1回/221阅, 最后回答: 1个月前
讨论区 » 技术问答
 

【厦门】 12月22日(周六下午)OSC 源创会 我要报名»

Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://localhost:7001 with userid weblogic ...
This Exception occured at Fri Oct 26 15:42:56 CST 2012.
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
        java.net.ConnectException: Connection refused; No available router to destination]
        at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:49)
        at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:773)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:363)
        at weblogic.jndi.Environment.getContext(Environment.java:307)
        at weblogic.jndi.Environment.getContext(Environment.java:277)
        at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:494)
        at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:547)
        at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:299)
        at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:201)
        at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
        at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
        at org.python.core.PyMethod.__call__(PyMethod.java:96)
        at org.python.core.PyObject.__call__(PyObject.java:248)
        at org.python.core.PyObject.invoke(PyObject.java:2016)
        at org.python.pycode._pyx6.connect$1(<iostream>:16)
        at org.python.pycode._pyx6.call_function(<iostream>)
        at org.python.core.PyTableCode.call(PyTableCode.java:208)
        at org.python.core.PyTableCode.call(PyTableCode.java:404)
        at org.python.core.PyFunction.__call__(PyFunction.java:184)
        at org.python.pycode._pyx18.f$0(/root/bea/user_projects/domains/hnlmst_domain/shutdown.py:1)
        at org.python.pycode._pyx18.call_function(/root/bea/user_projects/domains/hnlmst_domain/shutdown.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:208)
        at org.python.core.PyCode.call(PyCode.java:14)
        at org.python.core.Py.runCode(Py.java:1135)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
        at weblogic.management.scripting.WLST.main(WLST.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at weblogic.WLST.main(WLST.java:29)
Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
        java.net.ConnectException: Connection refused; No available router to destination
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:204)
        at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:154)
        at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:342)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:337)
        ... 38 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
        java.net.ConnectException: Connection refused; No available router to destination
        at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:475)
        at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:326)
        at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:261)
        at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:204)
        at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:226)
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:189)
        ... 43 more
Problem invoking WLST - Traceback (innermost last):
  File "/root/bea/user_projects/domains/hnlmst_domain/shutdown.py", line 1, in ?
  File "<iostream>", line 22, in connect
WLSTException: 'Error occured while performing connect : Error getting the initial context. There is no server running at t3://localhost:7001 Use dumpStack() to view the full stacktrace'

停止服务时包上边这个错误,请各位帮忙看一下什么原因。。谢谢。。

 

从错误信息看,是服务不可达,原因可能有很多。

比如,你启动的时候,指定了特定的端口,但是停止的时候,没有指定端口,而是去停止默认的端口;

也可能是服务器由于某些原因,已经异常停止了,从而导致无法通过正常的停止命令来停止服务。

--------------------------------------------------------------------------------------------------------------------

解决办法:

建议可以直接ps -ef ,找到weblogic服务的PID,通过kill命令来强行结束weblogic服务的相关进程,然后再重新启动weblogic的服务器。

你可能感兴趣的:(linux,Stop,weblogic服务报错)