SUN Application Server SUN JAVA SYSTEM APPLICATION SERVER PLATFORM EDITION 8

1 篇文章 0 订阅
 start the   Application Server:
asadmin start-domain   domain1

on Windows, you can choose
Programs→Sun Microsystems→J2EE 1.4 SDK→Start Default Server

stop the Application Server:
asadmin stop-domain domain1

on Windows, choose
Programs→Sun Microsystems→J2EE 1.4 SDK→Stop Default Server


Starting the Admin Console:
http://localhost:4848/asadmin/

Starting the deploytool Utility:
deploytool
 
Starting and Stopping the Derby Database Server:
asadmin start-database

asadmin stop-database

logs:
<J2EE_HOME>/domains/domain1/logs/server.log
<j2ee.home>/derby/db.log

 Admin Console log viewer. To use the log viewer:
1. Select the Application Server node.
2. Select the Logging tab.
3. Click the Open Log Viewer button. The log viewer will open and display
   the last 40 entries.

Using a Debugger
The Application Server supports the Java Platform Debugger Architecture
(JPDA). With JPDA, you can configure the Application Server to communicate
debugging information via a socket. In order to debug an application using a
debugger:
    1. Enable debugging in the Application Server using the Admin Console as
       follows:
       a. Select the Application Server node.
       b. Select the JVM Settings tab. The default debug options are set to:
       -Xdebug -Xrunjdwp:transport=dt_socket,server=y,
           suspend=n,address=1044
       As you can see, the default debugger socket port is 1044. You can change
       it to a port not in use by the Application Server or another service.
       c. Check the Enabled box of the Debug field.
       d. Click the Save button.
    2. Stop the Application Server and then restart it.
    3. Compile your Java source with the -g flag.
    4. Package and deploy your application.
    5. Start a debugger and connect to the debugger socket at the port you set
       when you enabled debugging.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值