Table of Contents
This chapter explains how to set up and start JEUS and WebAdmin.
The following are the steps for configuring a JEUS system and WebAdmin.
Configuring basic environment variables
Adding and configuring Managed Servers
Adding data sources
JEUS WebAdmin can be used to easily manage all JEUS components, configure the environment, perform monitoring, and manage applications.
Use the following steps to start WebAdmin.
Run the startDomainAdminServer script from command prompt to start JEUS Domain Administration Server.
The startDomainAdminServer script is in the 'JEUS_HOME/bin/' directory and must be set in the system path. To execute WebAdmin, it must first be configured in the <enable-webadmin> attribute of domain.xml. For more information about <enable-webadmin>, refer to JEUS WebAdmin Guide. "2.2. Logging In".
Example:
C:/Documents and Settings/Administrator>startDomainAdminServer -u administrator -p <password>
**************************************************************
- JEUS Home : C:/TmaxSoft/JEUS7.0
- Added Java Option :
- Java Vendor : Sun
**************************************************************
C:/TmaxSoft/JEUS7.0/bin>"C:/Java/jdk1.6.0_45/bin/java" -server -Xmx512m -Xbootclasspath/p:"C:/TmaxSoft/JEUS7.0/lib/system/extension.jar"
-classpath "C:/TmaxSoft/JEUS7.0/lib/system/jeus-launcher.jar;C:/TmaxSoft/JEUS7.0/lib/system/xalan.jar;C:/TmaxSoft/JEUS7.0/lib/system/jaxb-impl.jar;
C:/TmaxSoft/JEUS7.0/lib/system/woodstox.jar;C:/TmaxSoft/JEUS7.0/lib/system/xml_resource.jar;C:/TmaxSoft/JEUS7.0/lib/system/commons-cli.jar;
C:/TmaxSoft/JEUS7.0/lib/system/jaxb2-basics-runtime.jar;C:/TmaxSoft/JEUS7.0/lib/system/javaee.jar;
C:/TmaxSoft/JEUS7.0/lib/system/tmaxjce_jdk15x.jar" -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Djeus.jvm.version=hotspot -Djeus.tool.webadmin.locale.language=ko -Djeus.home="C:/TmaxSoft/JEUS7.0"
-Djava.naming.factory.initial=jeus.jndi.JNSContextFactory -Djava.naming.factory.url.pkgs=jeus.jndi.jns.url
-Djava.library.path="C:/TmaxSoft/JEUS7.0/lib/system" -Djava.endorsed.dirs="C:/TmaxSoft/JEUS7.0/lib/endorsed"
-Djava.util.logging.manager=jeus.util.logging.JeusLogManager -Djava.util.logging.config.file="C:/TmaxSoft/JEUS7.0/bin/logging.properties"
-Djeus.properties.replicate=jeus,java.util.logging,sun.rmi.dgc -Djava.net.preferIPv4Stack=true jeus.launcher.Launcher -u administrator -p <password>
================ JEUS LICENSE INFORMATION ================
=== VERSION : JEUS 7.0 (Fix#2) (7.0.0.2-b113)
=== EDITION: Enterprise (Trial License)
=== NOTICE: This license restricts the number of allowed clients.
=== Max. Number of Clients: 5
==========================================================
This license is not appropriate for product runtime mode. Replace the license with an appropriate one.
[2013.06.25 14:57:53][2] [launcher-1] [Launcher-0012] Starting the server [adminServer] with the command
C:/Java/jdk1.6.0_45/jre/bin/java -DadminServer -Xmx1024m -XX:MaxPermSize=128m -server
-Xbootclasspath/p:C:/TmaxSoft/JEUS7.0/lib/system/extension.jar -classpath C:/TmaxSoft/JEUS7.0/lib/system/bootstrap.jar
-Djava.security.policy=C:/TmaxSoft/JEUS7.0/domains/jeus_domain/config/security/policy -Djava.library.path=C:/TmaxSoft/JEUS7.0/lib/system
-Djava.endorsed.dirs=C:/TmaxSoft/JEUS7.0/lib/endorsed -Djeus.properties.replicate=jeus,java.util.logging,sun.rmi.dgc -Djeus.jvm.version=hotspot
-Djava.util.logging.config.file=C:/TmaxSoft/JEUS7.0/bin/logging.properties -Dsun.rmi.dgc.server.gcInterval=3600000
-Djava.util.logging.manager=jeus.util.logging.JeusLogManager -Djeus.home=C:/TmaxSoft/JEUS7.0 -Dsun.rmi.dgc.client.gcInterval=3600000
-Djeus.tool.webadmin.locale.language=ko -Djeus.domain.name=jeus_domain -Djava.naming.factory.initial=jeus.jndi.JNSContextFactory
-Djava.naming.factory.url.pkgs=jeus.jndi.jns.url -Djeus.server.protectmode=false -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput
-XX:LogFile=C:/TmaxSoft/JEUS7.0/domains/jeus_domain/servers/adminServer/logs/jvm.log jeus.server.admin.DomainAdminServerBootstrapper
-u administrator -p <password> -domain jeus_domain -server adminServer .
[2013.06.25 14:57:53][2] [launcher-1] [Launcher-0014] The server[adminServer] is being started ...
[2013.06.25 14:57:59][2] [adminServer-1] [SERVER-0248] The JEUS server is STARTING.
[2013.06.25 14:57:59][0] [adminServer-1] [SERVER-0000] Version information - JEUS 7.0 (Fix#2) (7.0.0.2-b113).
... omitted
[2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is STANDBY.
[2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is STARTING.
[2013.06.25 14:58:06][2] [adminServer-1] [WEB-3413] The web engine is ready to receive requests.
[2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0602] Successfully sent the JoinedAndReady event. JEUS GMS=[Group=jeus_domain_896627143,
ServerToken=adminServer]
[2013.06.25 14:58:06][2] [adminServer-1] [UNIFY-0100] Listener information
BASE (plain, 0.0.0.0 : 9736) - VIRTUAL - SecurityServer
- FileTransfer
- BootTimeFileTransfer
- ClassFTP
- JNDI
- JMXConnectionServer/JeusMBeanServer
- JMXConnectionServer/JEUSMP_adminServer
- GMS-NetworkManager
- TransactionManager
- HTTP Listener
http-server (plain, 0.0.0.0 : 8808) - VIRTUAL
- HTTP Listener
jms-internal (plain, 0.0.0.0 : 9941) - VIRTUAL - JMSServiceChannel-internal
[2013.06.25 14:58:06][0] [adminServer-1] [SERVER-0242] Successfully started theserver.
[2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is RUNNING.
[2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0401] The elapsed time to start: 12406ms.
[2013.06.25 14:58:06][2] [launcher-10] [Launcher-0034] The server[adminServer] initialization completed successfully[pid : 1400].
[2013.06.25 14:58:06][0] [launcher-1] [Launcher-0040] Successfully started the server. The server state is now RUNNING.
Open a Web browser to access WebAdmin. Enter the login ID and password that was specified during JEUS installation.
http://<localhost>:9736/webadmin
WebAdmin is accessed through a specific port. The default port is '9736'.
After a successful login, the main WebAdmin page will appear.
The server instances that manage the actual application service engines and services are called Managed Servers (MSs). Multiple MSs can exist in a single domain. Applications are deployed to MSs, and the MSs provide the resources and services that the applications need.
Add new MSs and then add listeners to the MSs.
Click [Servers] from the left pane to go to the Servers page. Click [Add] to add a server.
Click [Lock & Edit] to make dynamic configuration changes. [Lock & Edit] locks JEUS configurations so that they can be modified. If this button is disabled, [Add] will also be disabled.
Fill in the required fields of the Basic Information section and then click [OK].
Click [Apply Changes] on the bottom left of the screen to dynamically apply the configurations.
When the changes have been applied to the server, the following message will be displayed. Use this information to check that the MS has been created correctly.
The BASE listener is used to start the MSs. The BASE listener uses port 9736 by default. Because DAS uses the same port, change the BASE listener to use another port.
Click [Servers] from the left menu to go to the Servers page. Select a server to view from the list and then click [Resource] > [Listener]. Click the BASE listener from the Listeners page to go to the Listener properties page.
Change the Listen Port from the default value of 9736 to another value and then click [OK].
Click [Apply Changes] from the left pane to apply the changes.
Only the [Basic] section needs to be configured to start an MS. However, additional Listener property settings are required to use the Web services.
Select [Servers] from the left pane to go to the Servers page and then select a server. Click [Resource] > [Listener] to go to the Listeners page. On the Listeners page, click [Add].
Click [Lock & Edit] to make dynamic configuration changes. [Lock & Edit] locks JEUS configurations so that they can be modified. If this button is disabled, [Add] will also be disabled.
On the Listener page, set the Name and Listen Port properties and then click [OK].
The specified port must not be already in use by another listener.
Click [Engine] > [Web Engine] > [Web Connections] to go to the Web Connections page. For this example, click [HTTP] to configure an HTTP listener.
On the HTTP Listener screen, set the Name and Server Listener Ref properties. For the Server Listener Ref option, select 'http-listener' from the drop-down list.
Click the [Apply Changes] from the left pane to apply the changes.
Unlike JEUS 6.0, JEUS 7.0 does not support web engines that start an embedded WebtoB. To use an embedded WebtoB, compile the WebtoB configuration file to manually execute the embedded WebtoB, and then add a WebtoB connector to connect with the embedded WebtoB.
Compile the configuration file ($JEUS_HOME/webserver/config/ws_engine.m) of the embedded WebtoB.
Since the configuration file of the embedded WebtoB, which is installed by default, is not compiled, the configuration file must be compiled before starting the embedded WebtoB.
C:/TmaxSoft/JEUS7.0/webserver/config>wscfl -i ws_engine.m Current configuration: Number of client handler(HTH) = 1 Supported maximum user per node = 2018 Supported maximum user per handler = 2018 Successfully created the configuration file (C:/TmaxSoft/JEUS7.0/webserver/config/wsconfig) for node paper-PC. The host name of the running machine is paper-PC. C:/TmaxSoft/JEUS7.0/webserver/config>
Start the embedded WebtoB.
C:/TmaxSoft/JEUS7.0/webserver/config>wsboot Booting WebtoB on node (paper-PC) Starting WSM at 04/30/13 11:06:56 Starting HTL at 04/30/13 11:06:56 Starting HTH at 04/30/13 11:06:56 Current WebtoB Configuration: Number of client handlers (HTH) = 1 Supported maximum user per node = 2018 Supported maximum user per handler = 2018 Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/htmls.exe) at 04/30/13 11:06:56 Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/cgis.exe) at 04/30/13 11:06:56 Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/ssis.exe) at 04/30/13 11:06:56 C:/TmaxSoft/JEUS7.0/webserver/config>
Select [Servers] from the left pane to go to the Servers page and then select a server. Click [Engine] > [Web Engine] > [Web Connections] to go to the Web Connections page. On the WebConnections page, click [WEBTOB].
Click [Lock & Edit] to make dynamic configuration changes. [Lock & Edit] locks JEUS configurations so that they can be modified. If this button is disabled, [WEBTOBE] will also be disabled.
On the Webtob Connector screen, set the Name, WebtoB Home, and Thread Pool Number properties. When the configuration is complete, click [OK].
To configure the Thread Pool Number property, refer to the WebtoB settings.
If the configurations of the embedded WebtoB is not changed after installation, use the default Thread Pool count of 5.
Click [Apply Changes] from the left pane to apply the changes.
Restart JEUS to apply the WebtoB connector settings.
JEUS can be used to configure the database connectivity by configuring data sources.
The following example uses the Apache Derby database that is included with JEUS. Apache Derby is located in the 'JEUS_HOME/derby' directory.
Execute the following command to start Derby on UNIX, Linux, or Windows.
JEUS_HOME/bin> startderby
Execute the following command to stop Derby.
JEUS_HOME/bin> stopderby
Derbyclient.jar, the Derby JDBC driver file, must be located in the 'JEUS_HOME/lib/datasource' directory to be able use Derby in JEUS. This file is included in JEUS by default.
For detailed information about Derby, refer to http://db.apache.org/derby/.
The following example registers a data source named 'jdbc/sample' to use a database called 'sample'.
To add a data source:
Click [Resources] > [Data Source] from the left pane of the WebAdmin screen. The Data Source page appears.
To add a data source, click [Add] from the database table.
Click [Lock & Edit] to make dynamic configuration changes. [Lock & Edit] locks JEUS configurations so that they can be modified. If this button is disabled, [Add] will also be disabled.
Configure the Database properties and then click [OK].
Verify that the data source has been correctly added to the list.
Click [Servers] from the left pane to go to the Server List page. Select a server from the list to go to the Server page. For Data Sources, select the newly added data source for the server.
DAS must be running in order to start MSs in WebAdmin. To start or stop an MS while DAS is running, either its node manger must be running or the SSH properties must be configured on the server. For detailed information about SSH properties, refer to JEUS Node Manager Guide.
SSH is not available on Windows. The node manager must be started before starting MS on Windows.
To start MSs in WebAdmin,
Click [Servers] on the left pane of WebAdmin. The Servers page will appear. Select a server from the list and then click the [Resource] > [Listener] tab. On the Listeners page, click [Add] from the Listener list table. Set the required Listener options and then click [OK].
On the [Servers] page, click [start] or [stop] to start or stop each MS.