Sun Application Server Sun JAVA SYSTEM application Server PLATFORM EDITION 8__java

Source: Internet
Author: User
Start the application Server:
Asadmin Start-domain domain1

On Windows, 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 would open and display
The last entries.

Using a Debugger
The application Server supports the Java Platform Debugger architecture
(JPDA). With JPDA, your can configure the application Server to communicate
debugging information via a socket. In order to debug a 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, the default debugger socket port is 1044. Can change
It to a port does not have 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 for your set
When you are enabled debugging.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.