๐Ÿ’ป Programming/WAS (10)

Jboss AS 7 ์—์„œ module.xml ์„ค์ •์„ ์œ„ํ•œ ๊ฐ„๋žตํ•œ ์„ค๋ช…์„ ์ ์–ด๋†“์€ ์ข‹์€ ์ž๋ฃŒ๋ฅผ ์ฐพ์•„์„œ ํฌ์ŠคํŒ… ํ•ด๋ด…๋‹ˆ๋‹ค.

์˜๋ฌธ์ด๊ธดํ•˜์ง€๋งŒ ์–ด๋ ค์šด ๋ง์€ ์—†์œผ๋‹ˆ ํ•œ๋ฒˆ ์ฝ์–ด๋ณด์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค ^-^ 



Full module.xml example with comments 


    <?xml version="1.0" encoding="UTF-8"?> 
     
    <module xmlns="urn:jboss:module:1.1" name="org.jboss.msc"> 
     
        <!-- Main class to use when launched as a standalone jar. --> 
        <main-class name="org.jboss.msc.Version"/> 
     
        <!-- Properties readable through Modules API. Not to be confused with Java system properties. --> 
        <properties> 
            <!-- jboss.api=private means that the module is not part of the JBoss AS 7 public API - basically saying, "Don't use it's packages in your apps." --> 
            <property name="jboss.api" value="private"/> 
        </properties> 
     
        <resources> 
            <!-- Basically, list of jars to load classes and resources from. --> 
            <resource-root path="jboss-msc-1.0.1.GA.jar"/> 
            ... 
        </resources> 
     
        <dependencies> 
     
            <!--  Export paths and packages from the class loader which loaded JBoss Modules (usually the system's application CL). --> 
            <system export="true"> 
                <!-- List of exported paths. Mandatory. --> 
                <paths> 
                   <path name="org/jboss/modules"/> 
                   <path name="org/jboss/modules/log"/> 
                </paths> 
                <!-- Optional limitation of what's exported. --> 
                <exports> 
                     <include path="META-INF/"/> 
                </exports> 
            </system> 
     
            <!-- Dependencies on other modules. Classloader of this module will have their classes visible. --> 
            <module name="javax.api"/> 
            <module name="org.jboss.logging"/> 
     
            <!-- services="import/export/none" controls whether services defined in META-INF/services are also visible to/from this module. 
                   I.e. services="export" will make the services of this module visible to the dependency. Import will do the other way around. 
                   Defaults to "none". --> 
            <!-- export="true" controls whether own exports of this dependency are visible. --> 
            <module name="org.jboss.ws.native.jbossws-native-core" services="export" export="true"> 
                <!-- You can limit what packages in dependency modules are allowed  
                       to be seen from this module's point of view (import), or vice versa (export). 
                       By default, all are imported/exported. When you specify <imports> or <exports>, only those listed are. --> 
                <imports> 
                   <include path="META-INF"/> 
                   <include path="dtd"/> 
                   <include path="schema"/> 
                   <exclude-set> 
                       <path name="org.jboss.example.tests"/> 
                   </exclude-set> 
                </imports> 
                <exports> 
                    <include path="META-INF"/> 
                    <include path="dtd"/> 
                    <include path="schema"/> 
                </exports> 
            </module> 
     
            <!-- Optional deps --> 
            <module name="javax.inject.api" optional="true"/> 
        </dependencies> 
    </module> 


- See more at: https://developer.jboss.org/people/ozizka/blog/2012/11/12/about-modulexml-in-jboss-as-7#sthash.oZ0bLEzI.dpuf



์ถœ์ฒ˜ : https://developer.jboss.org/people/ozizka/blog/2012/11/12/about-modulexml-in-jboss-as-7




๐Ÿ’ป Programming/WAS

[JBoss 7] LogManager ์˜ค๋ฅ˜

standalone์œผ๋กœ jboss ์‹คํ–‰์‹œ์ผฐ์„ ๋•Œ ์•„๋ž˜์ฒ˜๋Ÿผ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.


1.

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.jboss.as.server.Main.main(Main.java:73)
        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:597)
        at org.jboss.modules.Module.run(Module.java:260)
        at org.jboss.modules.Main.main(Main.java:291)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
        at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
        at org.jboss.logmanager.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)
        ... 7 more



2.

WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.jboss.as.server.Main.main(Main.java:73)
    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:597)
    at org.jboss.modules.Module.run(Module.java:260)
    at org.jboss.modules.Main.main(Main.java:291)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
    at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
    at org.jboss.logmanager.log4j.BridgeRepositorySelector.(BridgeRepositorySelector.java:42)
    ... 7 more



์œ„ ๋‘ ๊ฐœ ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ์•„๋ž˜์ฒ˜๋Ÿผ ํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

standalone.conf ํŒŒ์ผ์„ ์—ด์–ด์„œ ์•„๋ž˜ ๋ผ์ธ์ฒ˜๋Ÿผ ์ƒ๊ธด ๊ณณ์„ ์ฐพ์€๋‹ค์Œ์— ์•„๋ž˜์ฒ˜๋Ÿผ ์ˆ˜์ •ํ•ด์ฃผ์‹œ๋ฉด๋ฉ๋‹ˆ๋‹ค.

ํ™•์ธํ•˜์…”์•ผ ํ•  ๋ถ€๋ถ„(์—†๋Š” ๊ฒฝ์šฐ ์ถ”๊ฐ€ํ•ด์•ผํ•˜๋Š” ๋ถ€๋ถ„)์„ ๋ถ‰์€ ์ƒ‰์œผ๋กœ ํ‘œ์‹œํ–ˆ์Šต๋‹ˆ๋‹ค.


if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
    JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,org.jboss.logmanager"
fi
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/org/jboss/logmanager/main/jboss-logmanager-1.3.1.jar"


๐Ÿ’ป Programming/WAS

[Jeus 6] baseport ์ˆ˜์ • ๋ฐฉ๋ฒ•

์•„๋ž˜ ๋‘ ๊ฐœ ํŒŒ์ผ์—์„œ ํฌํŠธ๋ฅผ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.


$JEUS_HOME/config/vhost.properties

$JEUS_HOME/bin/jeus.properties


[jeus@mycom config]$ cat vhost.properties
jeus.vhost.enabled=true
myhost=myhost:19736
example=myhost:21000


[bxtap4wje@Emerald bin]$ vi jeus.properties

.

.

# set up JEUS_BASEPORT.
 #JEUS_BASEPORT=9736
 JEUS_BASEPORT=19736
.

.


JEUS๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ webadmin ํฌํŠธ๋ฅผ baseport + 8 ๋กœ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ ์›น์–ด๋“œ๋ฏผ ํฌํŠธ๋„ ๋ณ€๊ฒฝ๋จ์— ์œ ์˜ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์œ„ ์˜ˆ์—์„œ๋Š” 19744๋กœ ์ ‘์†์„ ํ•˜์…”์•ผ ๊ฒ ์ฃ 

ํŒŒ์ผ: accounts.xml
ํ•ด๋‹น ํŒŒ์ผ์—์„œ ์•„๋ž˜ <password> ๋ถ€๋ถ„์„ copy & paste ํ•˜๋ฉด ๋จ

 vi  $JEUS_HOME/config/$SERVERNAME/security/SYSTEM_DOMAIN/accounts.xml
----------------------------------------------------------------------------------------------------------
 <?xml version="1.0"?>
<accounts xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
      <users>
        <user>
            <name>administrator</name>
            <password>{base64}amV1c2FkbWlu</password>
            <group>Administrators</group>
        </user>
    </users>
    <groups>
        <group>
            <description>A group for administrators</description>
            <name>Administrators</name>
        </group>
    </groups>
</accounts>
----------------------------------------------------------------------------------------------------------
๋‹ค๋ฅธ ํŒจ์Šค์›Œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ์ง์ ‘ base64 ์ธ์ฝ”๋”ฉ์„ ํ•œ ํ›„, ๊ทธ ๊ฐ’์„ ์ž…๋ ฅํ•˜๋ฉด ๋œ๋‹ค.
๋‹จ, base64๋กœ ์ธ์ฝ”๋”ฉ ๋œ ๊ฒƒ์„ ์•Œ๋ฆฌ๊ธฐ ์œ„ํ•ด {base64}๋Š” ๋ฐ˜๋“œ์‹œ ์ถ”๊ฐ€ํ•œ๋‹ค.
 
์œˆ๋„์šฐ
 C:\Users\Administrator>java -classpath C:\TmaxSoft\JEUS6.0\lib\system\jeus.jar jeus.security.admin.Base64Coder encode jeusadmin
amV1c2FkbWlu

์œ ๋‹‰์Šค
java -classpath $JEUS_HOME/lib/system/jeus.jar jeus.security.admin.Base64Coder encode jeusadmin

amV1c2FkbWlu

java -classpath $JEUS_HOME/lib/system/jeus.jar jeus.security.admin.Base64Coder decode amV1c2FkbWlu

jeusadmin

ํŒ ํŒจ์Šค์›Œ๋“œ๋ฅผ ์ƒˆ๋กœ ๋„ฃ์„ ๊ฒฝ์šฐ
/$JEUS_HOME/bin/encryption base64 passwd
[base64] : [passwd] --> [encode:cGFzc3dk]
[base64] : [cGFzc3dk] --> [decode:passwd]

์ด๋ ‡๊ฒŒ ๊ฒฐ๊ณผ ๊ฐ’์„ ์–ป์–ด์„œ accounts.xml ํŒŒ์ผ์— ๋นจ๊ฐ„์ƒ‰ ๋ถ€๋ถ„๊ณผ ๊ต์ฒด ํ›„ ์ €์žฅํ•˜๋ฉด ๋กœ๊ทธ์ธ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.


์ถœ์ฒ˜ : http://existence.tistory.com/60


IBMํ™ˆํŽ˜์ด์ง€ ํ†ตํ•ด์„œ WebSphere 8 ์ด์ „ ๋ฒ„์ „์„ ๊ตฌํ•˜๋ ค๊ณ  ํ•œ์ฐธ ์ฐพ์•„ํ—ค๋งค๋‹ค๊ฐ€ ๊ทธ๋ƒฅ ๊ตฌ๊ธ€๋งํ–ˆ๋”๋‹ˆ ๋–ก!! ํ•˜๋‹ˆ ๋‚˜์˜จ ์ด๊ณณ.


https://www.genuitec.com/products/myeclipse/download/websphere-developers/


WebSphere 6, 7 ๋งํฌ๋„ ์žˆ๋‹ค๋Š” ์‚ฌ์‹ค!!!

WAS๋ฅผ ์ดํ‹€ ๋™์•ˆ ๋‹ค์„ฏ์ข…๋ฅ˜์— ๋Œ€ํ•ด์„œ ์„ค์น˜ํ•ด๋ณด๋‹ค๋ณด๋‹ˆ๊นŒ ๊ฐ WAS๋งˆ๋‹ค ์šฉ์–ด ๋ฐ ๊ฐœ๋…์ด ๋„ˆ๋ฌด ๋‹ค๋ฅธ๊ฒŒ ๋งŽ์•„์„œ ๊ณ ์ƒํ•˜๊ณ ์žˆ๋Š”์ฐธ์— ์ •๋ง ์ž˜ ์ฐพ์€ ์ž๋ฃŒ๊ฐ€ ์žˆ์–ด์„œ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค.


์ถœ์ฒ˜ : http://antop.tistory.com/7





๋„๋ฉ”์ธ์ด๋ž€? ๊ด€๋ฆฌ์ ์ธ ๊ฐœ๋…์œผ๋กœ์„œ ๋‹จ์ผ Administration Server๋กœ ๊ด€๋ฆฌํ•˜๋Š” Server, Machine ๋ฐ Cluster์˜ ๊ทธ๋ฃน(์ธํ„ฐ๋„ท ๋„๋ฉ”์ธ x)


- ์‹œ์ž‘ โ†’ ํ”„๋กœ๊ทธ๋žจ โ†’ Oracle WebLogic โ†’ WebLogic Server 10gR3 โ†’ Tools โ†’ Configuration Wizard


- Create a new WebLogic domain ์„ ํƒ




- Generate a domain configured automatically to support to following products ์„ ํƒ



- User name๊ณผ User password ์„ค์ •



- ์„œ๋ฒ„ ๋ชจ๋“œ(๊ฐœ๋ฐœ, ์šด์šฉ) ๋ฐ JDK ์„ค์ •



- ๋‹ค๋ฅธ ์˜ต์…˜๋“ค ์ถ”๊ฐ€ ์„ค์ •



- ๋„๋ฉ”์ธ ์ด๋ฆ„, ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ •



- ๋„๋ฉ”์ธ ์ƒ์„ฑ ์™„๋ฃŒ





โ€ป html, jsp, Servlet ํ…Œ์ŠคํŠธ



์ด ํŒŒ์ผ์—๋Š” ๊ฐ„๋‹จํ•œ index.html sum.jsp HelloServlet.java ํŒŒ์ผ์ด ๋“ค์–ด์žˆ์Šต๋‹ˆ๋‹ค.

Test.war ํŒŒ์ผ์„ ๋ฐฐ์น˜ํ•˜์—ฌ ํ…Œ์ŠคํŠธ ํ•ด๋ด…์‹œ๋‹ค.


- Test.war ํŒŒ์ผ์„ ์ ๋‹นํ•œ ์œ„์น˜๋กœ ์˜ฎ๊น๋‹ˆ๋‹ค.



- ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
์‹œ์ž‘ โ†’ ํ”„๋กœ๊ทธ๋žจ โ†’ Oracle WebLogic โ†’ User Projects โ†’ base_domain โ†’ Start Admin Server for Weblogic Server Domain



Administration Console์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.



- ์™ผ์ชฝ์˜ Domain Structure ํŠธ๋ฆฌ์—์„œ Deployments๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.



- Install ํด๋ฆญ



- ๋ฐฐ์น˜ํ•  ํŒŒ์ผ์ด๋‚˜ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
์—ฌ๊ธฐ์„œ war, jar ํŒŒ์ผ์ด๋‚˜ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์„ ํƒ์ด ๋˜์ง€ ์•Š์œผ๋ฉด ์ž˜๋ชป ์ž‘์„ฑ๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.



- Next ํด๋ฆญ



- Finish ํด๋ฆญ.(๋” ์ž์„ธํ•œ ์„ค์ •์„ ํ•˜๋ ค๋ฉด Next๋กœ ๋” ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค)



- war ํŒŒ์ผ์ด ์ •์ƒ์ ์œผ๋กœ ๋ฐฐ์น˜(deploy) ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.



- html ํ…Œ์ŠคํŠธ



- jsp ํ…Œ์ŠคํŠธ



- Servlet ํ…Œ์ŠคํŠธ


์›น๋กœ์ง default ์–ด๋“œ๋ฏผ ์„œ๋ฒ„ ํฌํŠธ(7001) ๋ณ€๊ฒฝ

 

<Aug 16, 2011 5:03:50 PM GMT+09:00> <Emergency> <Security> <BEA-090087> <Server failed to bind to the configured Admin port. The port may already be used by another process.>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <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.>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default". The address 192.168.213.132 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use.>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <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.>
<Aug 16, 2011 5:03:50 PM GMT+09:00> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:20c:29ff:fee0:753c might be incorrect or another process is using port 7001: java.net.BindException: Address already in use.>

 

ํ•˜๋‚˜์˜ ์›น๋กœ์ง ๋จธ์‹ ์— ์—…๋ฌด์ƒ ๋‹ค์ˆ˜์˜ ๋„๋ฉ”์ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ,
๊ธฐ๋ณธ ํฌํŠธ๊ฐ€ 7001์ธ ์›น๋กœ์ง ์„œ๋ฒ„ ๋„๋ฉ”์ธ์˜ ์–ด๋“œ๋ฏผ ์„œ๋ฒ„ ๊ตฌ๋™์‹œ ํฌํŠธ ์ถฉ๋Œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
์ด๋Ÿด ๊ฒฝ์šฐ ๋Œ€์ฒ˜ ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•ฉ๋‹ˆ๋‹ค.

์›น๋กœ์ง ๋„๋ฉ”์ธ ์„ค์ • ํŒŒ์ผ์„ ์ˆ˜์ •ํ›„ ์žฌ๊ธฐ๋™ ํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค.

1. DOMAIN_HOME/config/config.xml
   

    <name>AdminServer</name>
    <listen-address/>


์ด๋Ÿฌํ•œ ๋ถ€๋ถ„์ด ์กด์žฌํ•˜๋Š”๋ฐ์š”, ์—ฌ๊ธฐ์„œ <name>ํƒœ๊ทธ ์•„๋ž˜ ๋ถ€๋ถ„์— <listen-port>ํƒœ๊ทธ๋ฅผ ์ถ”๊ฐ€ํ›„ ์žฌ๊ธฐ๋™์„ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

    <name>AdminServer</name>
    <listen-port>7000</listen-port>
    <listen-address/>


์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋˜๊ฒ ์Šต๋‹ˆ๋‹ค.

 

์ฆ‰, ์›น๋กœ์ง ์„œ๋ฒ„์—๋Š” ๋‹ค์ˆ˜์˜ ๋„๋ฉ”์ธ์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ํ•˜๋‚˜์˜ ๋„๋ฉ”์ธ์€ ๊ฐ๊ฐ์˜ ์ฝ˜์†”์ด ์กด์žฌํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

ํ˜น์‹œ, <listen-port>๋ฅผ <listen-address>์•„๋žซ๋ถ€๋ถ„์— ์ถ”๊ฐ€ํ•  ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
์ฃผ์˜ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

<Aug 16, 2011 5:32:37 PM GMT+09:00> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141245]Schema Validation Error in /home/oracle/Middleware/domains/base_domain/base_domain/config/config.xml see log for details. Schema validation can be disabled by starting the server with the command line option: -Dweblogic.configuration.schemaValidationEnabled=false>
<Aug 16, 2011 5:32:37 PM GMT+09:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Aug 16, 2011 5:32:37 PM GMT+09:00> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Aug 16, 2011 5:32:37 PM GMT+09:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

 

 

 

์ถœ์ฒ˜ : http://blog.daum.net/_blog/BlogTypeView.do?blogid=0F6LZ&articleno=12283804

 

 

 

 

 

How to workaround WebLogic terminalio not found error

In some PC environments, you may have encounter error like following when trying to create and start a WebLogic Server domain admin server

<Mar 10, 2014 9:40:58 AM EDT> <Error> <Security> <BEA-090783> <Server is Running in Development Mode and Native Library(terminalio) to read the password securely from commandline is not found.><Mar 10, 2014 9:40:58 AM EDT> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now>
<Mar 10, 2014 9:40:58 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

After this unfriendly message, your process will just exit and won't start at all! One quick fix for this is to try add this sys props -Dweblogic.management.allowPasswordEcho=true This will force the password prompt to echo out on console though, but at least it will start your server. And once the domain is created, you may restart it again without prompting password.

Ref: http://saltnlight5.blogspot.kr/2014/03/how-to-workaround-weblogic-terminalio.html



์ž๋ฐ” ์˜ต์…˜์— ๋ถ‰์€ ๊ธ€์”จ๋กœ ๋œ ๋ถ€๋ถ„์„ ์ถ”๊ฐ€ํ•ด์„œ ์‹คํ–‰ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

TMAX์—์„œ ๋งŒ๋“  JEUS ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ์ข‹์€ ํŒ


์„œ๋ฒ„ ๊ธฐ๋™, ์ค‘์ง€, ์–ด๋“œ๋ฏผ ์‚ฌ์šฉ์„ ์ข€ ๋” ๊ฐ„ํŽธํ•˜๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ์•„๋ž˜์™€๊ฐ™์ด jboot, jdown, jadmin ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“ค์–ด์„œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.


# vi jboot

jeus -xml -Uadministrator -Pjeusadmin &
:wq


# vi jdown
jeusadmin `hostname` -Uadministrator -Pjeusadmin jeusexit
:wq

# vi jadmin
jeusadmin `hostname` -Uadministrator -Pjeusadmin
:wq


-U ์˜ต์…˜์— ๋”ฐ๋ผ์˜ค๋Š” ๊ฐ’์€ admin์˜ ID

-P ์˜ต์…˜์— ๋”ฐ๋ผ์˜ค๋Š” ๊ฐ’์€ admin๊ณ„์ •์˜ ํŒจ์Šค์›Œ๋“œ ์ž…๋‹ˆ๋‹ค.


์„ค์น˜ํ•  ๋•Œ ์„ค์ •ํ•œ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.



1. ์ค€๋น„์‚ฌํ•ญ
๋ฆฌ๋ˆ…์Šค ์„œ๋ฒ„ ํ™˜๊ฒฝ์— JAVA ๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

2. JBOSS ๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์ •

3. JBOSS start/stop/restart ์Šคํฌ๋ฆฝํŠธ ๋งŒ๋“ค๊ธฐ

 

4. JBOSS ๋ฐ”์ธ๋”ฉ ๋ณ€๊ฒฝ

5. ์›น์ ‘์† ํ™•์ธ
์›น๋ธŒ๋ผ์šฐ์ € ์ฃผ์†Œ์ฐฝ์— http://IP์–ด๋“œ๋ ˆ์Šค:8080 ์ž…๋ ฅํ•˜์—ฌ ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค.

jboss

6. JBOSS Admin ์ฝ˜์†”์ ‘์†

 

์›น๋ธŒ๋ผ์šฐ์ € ์ฐฝ์— http://ip์–ด๋“œ๋ ˆ์Šค:9990 ํ•˜์—ฌ ๊ด€๋ฆฌ์ฝ˜์†”๋กœ ์ ‘์† ํ•ฉ๋‹ˆ๋‹ค.

jboss2

jboss3

์ฐธ์กฐ : http://www.davidghedini.com/pg/entry/install_jboss_7_on_centos