티스토리 뷰

기타

jboss shutdown 에러

탐구하는 SEA&SUN 2020. 6. 11. 11:01

에러내용

Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)]
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:356)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
        at org.jboss.Shutdown.main(Shutdown.java:235)
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)]
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
        at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
        at javax.naming.InitialContext.lookup(InitialContext.java:409)
        at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1914)
        at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1883)
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:290)
        ... 2 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
        ... 7 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
        at java.net.Socket.connect(Socket.java:543)
        at java.net.Socket.connect(Socket.java:492)
        at java.net.Socket.<init>(Socket.java:392)
        at java.net.Socket.<init>(Socket.java:206)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
        ... 12 more

 

에러원인

jboss 서비스 포트 변경 (8109 > 8009)

변경전 : SERVICE_BINDING_SET=ports-01
변경후 : SERVICE_BINDING_SET=ports-default

 

해결방법

jboss shutdown 옵션의 jmx 포트 변경 (1190 > 1090)

변경전 : ${JBOSS_HOME}/bin/shutdown.sh -S -s service:jmx:rmi:///jndi/rmi://localhost:1190/jmxrmi
변경후 : ${JBOSS_HOME}/bin/shutdown.sh -S -s service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi

 

'기타' 카테고리의 다른 글

jboss shutdown 에러  (0) 2020.06.11
Visual Studio Code git.path 설정  (0) 2018.07.25
SSMS 2017 테이블 디자이너 컬럼 추가  (0) 2018.04.17
댓글
댓글쓰기 폼