티스토리 툴바



2009/04/16 09:48

[Jeus] java.net.BindException: Address already in use 문제 해결

<<__Exception__>>
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at jeus.util.net.ActiveDispatcher.initSocket(ActiveDispatcher.java:57)
        at jeus.util.net.AbstractActiveDispatcher.<init>(AbstractActiveDispatcher.java:33)
        at jeus.util.net.ActiveDispatcher.<init>(ActiveDispatcher.java:35)
        at jeus.util.net.AbstractActiveDispatcher.createActiveDispatcher(AbstractActiveDispatcher.java:76)
        at jeus.util.net.JeusSocketDispatcher.initSocketDispatcher(JeusSocketDispatcher.java:61)
        at jeus.util.net.JeusSocketDispatcher.start(JeusSocketDispatcher.java:50)
        at jeus.server.enginecontainer.EngineContainer.init(EngineContainer.java:147)
        at jeus.server.enginecontainer.EngineContainer.<init>(EngineContainer.java:129)
        at jeus.server.enginecontainer.EngineContainer.main(EngineContainer.java:1026)
        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 jeus.server.Bootstrapper.callMainMethod(Bootstrapper.java:291)
        at jeus.server.Bootstrapper.callMain(Bootstrapper.java:360)
        at jeus.server.enginecontainer.EngineContainerBootstrapper.main(EngineContainerBootstrapper.java:15)
<<__!Exception__>>
[2009.04.15 20:46:24][0][0_563] [pfmContainer-10] [MGR-0395] fail to initialize JeusListener
<<__Exception__>>
jeus.server.enginecontainer.EngineContainerException: fail to initialize JeusListener
        at jeus.server.enginecontainer.EngineContainer.init(EngineContainer.java:149)
        at jeus.server.enginecontainer.EngineContainer.<init>(EngineContainer.java:129)
        at jeus.server.enginecontainer.EngineContainer.main(EngineContainer.java:1026)
        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 jeus.server.Bootstrapper.callMainMethod(Bootstrapper.java:291)
        at jeus.server.Bootstrapper.callMain(Bootstrapper.java:360)
        at jeus.server.enginecontainer.EngineContainerBootstrapper.main(EngineContainerBootstrapper.java:15)
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at jeus.util.net.ActiveDispatcher.initSocket(ActiveDispatcher.java:57)
        at jeus.util.net.AbstractActiveDispatcher.<init>(AbstractActiveDispatcher.java:33)
        at jeus.util.net.ActiveDispatcher.<init>(ActiveDispatcher.java:35)
        at jeus.util.net.AbstractActiveDispatcher.createActiveDispatcher(AbstractActiveDispatcher.java:76)
        at jeus.util.net.JeusSocketDispatcher.initSocketDispatcher(JeusSocketDispatcher.java:61)
        at jeus.util.net.JeusSocketDispatcher.start(JeusSocketDispatcher.java:50)
        at jeus.server.enginecontainer.EngineContainer.init(EngineContainer.java:147)
        ... 9 more
<<__!Exception__>>
[2009.04.15 20:46:24][0][0_563] [pfmContainer-11] [MGR-0570] JVM process is shutting down
[2009.04.15 20:46:24][3][0_563] [pfmContainer-11] [Network-0410] <Endpoint> an Endpoint order to destroy all active Endpoints
[2009.04.15 20:46:24][3][0_563] [pfmContainer-11] [Network-0411] <Endpoint> destroyed all active Endpoints successfullly
[2009.04.15 20:46:24][0][0_563] [pfmContainer-11] [MGR-0571] JVM process will be terminated
[2009.04.15 20:46:24][0][0_563] [fsap01-13] [MGR-0462] container fsap01_pfmContainer initializ

위와 같은 로그가 발생시에
${JEUS_HOME}/config/`uname -n`/JEUSMain.xml에서
각각의 컨테이너 id 값을 다른 값으로 다시 세팅해준다.(다만 유니크하게 해준다.)
===============================================================================================================
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
    <node>
        <name>fsap01</name>
        <engine-container>
            <name>pfmContainer</name>
            <id>1</id>
            <!--
            <command-option>-Xms256m -Xmx512m</command-option>
-->
            <command-option>-Xms1024m -Xmx1024m -XX:+DisableExplicitGC -verbose:gc -Xloggc:/jifrs/jeus5/logs/c1.log</command-option>
            <engine-command>
                <type>ws</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>ejb</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>servlet</type>
                <name>engine1</name>
            </engine-command>
            <sequential-start>true</sequential-start>
            <user-class-path>/jifrs/proframe/lib/devsvr/pfmdevsvr15.jar:/jifrs/proframe/lib/devsvr/pfmdevsvr_probus15.jar:/jifrs/proframe/lib/devsvr/pfmwebadmin15.jar:/jifrs/proframe/config:/jifrs/proframe/lib/common/bcprov-jdk14-129.jar:/jifrs/proframe/lib/devsvr/common-util.jar:/jifrs/proframe/lib/common/commons-collections.jar:/jifrs/proframe/lib/common/concurrent.jar:/jifrs/proframe/lib/common/cos.jar:/jifrs/proframe/lib/common/freemarker.jar:/jifrs/proframe/lib/devsvr/jakarta-regexp-1.4.jar:/jifrs/proframe/lib/common/javaee.jar:/jifrs/proframe/lib/common/jax-qname.jar:/jifrs/proframe/lib/common/jaxb-api.jar:/jifrs/proframe/lib/common/jaxb-impl.jar:/jifrs/proframe/lib/common/jaxb-libs.jar:/jifrs/proframe/lib/common/jaxb-xjc.jar:/jifrs/proframe/lib/common/jaxp-api.jar:/jifrs/proframe/lib/common/jaxp-ri.jar:/jifrs/proframe/lib/common/jtmax.jar:/jifrs/proframe/lib/common/junit.jar:/jifrs/proframe/lib/common/jxl.jar:/jifrs/proframe/lib/common/log4j-1.2.14.jar:/jifrs/proframe/lib/devsvr/mapper-cg.jar:/jifrs/proframe/lib/devsvr/mapper-rt.jar:/jifrs/proframe/lib/devsvr/meta-schemas.jar:/jifrs/proframe/lib/common/namespace.jar:/jifrs/proframe/lib/devsvr/pfm_jaxb_model.jar:/jifrs/proframe/lib/engine/proframe.jar:/jifrs/proframe/lib/engine/proframe-rscache.jar:/jifrs/proframe/lib/engine/proframe_probus.jar:/jifrs/proframe/lib/common/relaxngDatatype.jar:/jifrs/proframe/lib/common/serializer.jar:/jifrs/proframe/lib/common/servlet-api.jar:/jifrs/proframe/lib/common/stax-api-1.0.1.jar:/jifrs/proframe/lib/common/stax2.jar:/jifrs/proframe/lib/common/velocity-1.4.jar:/jifrs/proframe/lib/common/velocity-tools-generic-1.1.jar:/jifrs/proframe/lib/common/wstx-lgpl-3.0.2.jar:/jifrs/proframe/lib/devsvr/xbean-2.1.0.jar:/jifrs/proframe/lib/common/xecure.jar:/jifrs/proframe/lib/common/xercesImpl.jar:/jifrs/proframe/lib/common/xml-apis.jar:/jifrs/proframe/lib/common/xsdlib.jar:/jifrs/proframe/lib/common/commons-net-1.4.1.jar:/jifrs/proframe/lib/devsvr/commons-codec-1.3.jar:/jifrs/proframe/lib/devsvr/commons-httpclient-3.1.jar:/jifrs/proframe/lib/devsvr/commons-logging-api-1.1.1.jar:/jifrs/proframe/lib/common/poi-2.5.1.jar:/jifrs/proframe/lib/common/poi-contrib-2.5.1.jar:/jifrs/proframe/lib/common/poi-scratchpad-2.5.1.jar:/jifrs/proframe/lib/common/tunnel_jdbc.jar:/jifrs/proframe/lib/devsvr/proframe4java_srcgen.jar</user-class-path>
            <user-logging>
                <level>DEBUG</level>
            </user-logging>
            <system-logging>
                <level>DEBUG</level>
                <handler>
                    <console-handler>
                        <name>pfmConsoleHandler</name>
                        <level>DEBUG</level>
                    </console-handler>
                    <file-handler>
                        <name>pfmFileHandler</name>
                        <level>DEBUG</level>
                        <valid-day>1</valid-day>
                    </file-handler>
                </handler>
            </system-logging>
        </engine-container>
        <engine-container>
            <name>pfmdevsvrContainer</name>
            <id>2</id>
            <engine-command>
                <type>servlet</type>
                <name>pfmdevsvr</name>
            </engine-command>
            <sequential-start>true</sequential-start>
            <user-class-path>/jifrs/proframe/pfm/classes/PFM_IO:/jifrs/proframe/pfm/classes/PFM_DBIO:/jifrs/proframe/pfm/classes/PFM_RULE:/jifrs/proframe/pfm/classes/PFM_MODULES:/jifrs/proframe/config:/jifrs/proframe/lib/common/bcprov-jdk14-129.jar:/jifrs/proframe/lib/devsvr/common-util.jar:/jifrs/proframe/lib/common/commons-collections.jar:/jifrs/proframe/lib/common/concurrent.jar:/jifrs/proframe/lib/common/cos.jar:/jifrs/proframe/lib/common/freemarker.jar:/jifrs/proframe/lib/devsvr/jakarta-regexp-1.4.jar:/jifrs/proframe/lib/common/javaee.jar:/jifrs/proframe/lib/common/jax-qname.jar:/jifrs/proframe/lib/common/jaxb-api.jar:/jifrs/proframe/lib/common/jaxb-impl.jar:/jifrs/proframe/lib/common/jaxb-libs.jar:/jifrs/proframe/lib/common/jaxb-xjc.jar:/jifrs/proframe/lib/common/jaxp-api.jar:/jifrs/proframe/lib/common/jaxp-ri.jar:/jifrs/proframe/lib/common/jtmax.jar:/jifrs/proframe/lib/common/junit.jar:/jifrs/proframe/lib/common/jxl.jar:/jifrs/proframe/lib/common/log4j-1.2.14.jar:/jifrs/proframe/lib/devsvr/mapper-cg.jar:/jifrs/proframe/lib/devsvr/mapper-rt.jar:/jifrs/proframe/lib/devsvr/meta-schemas.jar:/jifrs/proframe/lib/common/namespace.jar:/jifrs/proframe/lib/devsvr/pfm_jaxb_model.jar:/jifrs/proframe/lib/engine/proframe.jar:/jifrs/proframe/lib/engine/proframe-rscache.jar:/jifrs/proframe/lib/engine/proframe_probus.jar:/jifrs/proframe/lib/common/relaxngDatatype.jar:/jifrs/proframe/lib/common/serializer.jar:/jifrs/proframe/lib/common/servlet-api.jar:/jifrs/proframe/lib/common/stax-api-1.0.1.jar:/jifrs/proframe/lib/common/stax2.jar:/jifrs/proframe/lib/common/velocity-1.4.jar:/jifrs/proframe/lib/common/velocity-tools-generic-1.1.jar:/jifrs/proframe/lib/common/wstx-lgpl-3.0.2.jar:/jifrs/proframe/lib/devsvr/xbean-2.1.0.jar:/jifrs/proframe/lib/common/xecure.jar:/jifrs/proframe/lib/common/xercesImpl.jar:/jifrs/proframe/lib/common/xml-apis.jar:/jifrs/proframe/lib/common/xsdlib.jar:/jifrs/proframe/lib/devsvr/bcel-5.2.jar:/jifrs/proframe/lib/devsvr/dbio_src_gen.jar:/jifrs/proframe/lib/devsvr/doop_src_gen.jar:/jifrs/proframe/lib/devsvr/jsr173_api-1.0.0.jar:/jifrs/proframe/lib/devsvr/pfmdevsvr15.jar:/jifrs/proframe/lib/devsvr/pfmwebadmin15.jar:/jifrs/proframe/lib/devsvr/smd_fm_gen.jar:/jifrs/proframe/lib/devsvr/smd-c-codegen.jar:/jifrs/proframe/lib/common/commons-net-1.4.1.jar:/jifrs/proframe/lib/devsvr/commons-codec-1.3.jar:/jifrs/proframe/lib/devsvr/commons-httpclient-3.1.jar:/jifrs/proframe/lib/devsvr/commons-logging-api-1.1.1.jar:/jifrs/proframe/lib/common/poi-2.5.1.jar:/jifrs/proframe/lib/common/poi-contrib-2.5.1.jar:/jifrs/proframe/lib/common/poi-scratchpad-2.5.1.jar:/jifrs/proframe/lib/common/tunnel_jdbc.jar:/jifrs/proframe/lib/devsvr/proframe4java_srcgen.jar</user-class-path>
            <system-logging>
                <level>DEBUG</level>
                <handler>
                    <console-handler>
                        <name>pfmdevsvrConsoleHandler</name>
                        <level>DEBUG</level>
                    </console-handler>
                    <file-handler>
                        <name>pfmdevsvrFileHandler</name>
                        <level>DEBUG</level>
                        <valid-day>1</valid-day>
                    </file-handler>
                </handler>
            </system-logging>
        </engine-container>


'Study > TmaxSoft' 카테고리의 다른 글

[Jeus] java.net.BindException: Address already in use 문제 해결  (1) 2009/04/16
[TmaxSoft] jeus5 암호 변경  (0) 2009/04/10
Trackback 0 Comment 1