Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Page | 1
5. Fill the following fields which is marked. Find the complete information on
configuration.txt. Click Next when finish
Page | 2
Page | 3
6. Fill the following fields which is marked. Find the complete information on
configuration.txt. Click Next when finish
Page | 4
Page | 5
Configure Appllication
Confiugre applicationContext resources.xml
Page | 6
Configure startWeblogic.sh
Steps:
1. Find webLogic.sh in Training folder project and configure.
Configure 5 things on startWeblogic.sh:
1. DOMAIN_HOME
Find the domain home which created before.
2. TMP_HOME
Create a folder under home folder for temporary data.
3. JAVA_CACHE
Using a folder that user has permission to read and write on. (e.g: user
home folder)
4. Remote Debugging
Configure port for remote debugging. Type the following configuration:
JAVA_OPTIONS="-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=availableport,server=y,susp
end=n"
Note, search the available port using nc command, such as explained
above.
5. TRAINING_HOME
Location of Training project
6. Folder location
Domain folder location
Page | 7
Page | 8
Deploy to Weblogic
In this step, deploy as following :
1. Style.jar (find under dist folder on Training project)
2. Training-client.jar (find under dist folder on Training project)
3. Training-server.jar (find under dist folder on Training project)
4. Webapp (Webapp folder itseft, no need to export as war file)
Install libraries
Follow these steps to do webapp deployment:
1. Click Lock & Edit button on the left menu
2. Click Deployment -> Install and see the following step. Find the jar file.
Click Next and Finish
Page | 9
P a g e | 10
2. Click Install and see the following step. Find the location of webapp folder,
select, click next.
P a g e | 11
P a g e | 12
Test
Type URL http://localhost:[portNumber]/
P a g e | 13
Remote Debbuging
Developers need to have an "eye" to see the way of code, called debug. In this
case, server and IDE (Eclipse) stand on different environment. Such as a debug is
called Remote Debugging.
JVM has a debugging feature to help developer to do debugging activities.
Developers need to configure the JVM with parameter when execute the Java
application:
Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,address={availableport},server=y,suspend=n
Eclipse has a debugging visual which will help developer to visualize the information
that given by JVM. In order to do this, configure Eclipse with Remote Debugging, and
connect to such port that was configured in JVM parameter.
(In
P a g e | 14
Eclipse Configuration
To do remote debugging, we need to configure on server and IDE itself. The server
has a role as a listener and IDE as a dispatcher. follow these steps to configure the
IDE (Server has been configure before a long with startWeblogic.sh):
1. Open debug configurations
2. Click Remote Java Application and create new configuration. Consider the
port configuration which is configured before along with startWebLogic.sh.
P a g e | 15
P a g e | 16