Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Hello World: WebSphere Application Server and Application Server Toolkit, V6.1

Publish an enterprise application

Larina Vera (larinac@ca.ibm.com), Information Developer, IBM Toronto Lab
Larina Vera photo
Larina Vera is an information developer for IBM Rational Application Developer and WebSphere Application Server Toolkit at the IBM Toronto Lab. As an information developer, she provides help documentation to the products she represents. Previously, she was a knowledge engineer and served as a support analyst on the WebSphere Studio support team. As a knowledge engineer, she worked towards delivering support information to the Web and the product help system. As a support analyst, she had direct customer interaction to solve problems and served as an advocate for customer concerns such as defects and feature requests. Larina received an honors bachelor in Computer Science from the University of Toronto in 2003.

Summary:  Welcome to the fourth tutorial in the "Hello, World" series, which provides high-level overviews of various IBM® software products. This tutorial places you in the role of an IT department administrator who receives Enterprise Java™ Beans (EJBs) and Web modules from the development team. Your responsibility is to assemble, deploy, and manage these modules as a J2EE application on a WebSphere® Application Server using Application Server Toolkit. The tutorial provides practical exercises that teach you how to complete these tasks.

View more content in this series

Date:  29 Nov 2006 (Published 26 Sep 2006)
Level:  Intermediate PDF:  A4 and Letter (1821 KB | 51 pages)Get Adobe® Reader®

Activity:  20549 views
Comments:  

Maintaining the J2EE application on the server

This exercise shows you how to start, stop, and uninstall the application from the server. In addition, you learn some problem determination techniques.

Would you like to see these steps demonstrated for you?

Show meShow me

Managing the application on the server

Suppose a month has passed and the due date of the prize giveaway has approached. It's time to stop the HelloWorld application from running on the server as your company is no longer accepting contestant entries. To stop the application on the server, you need to use the WebSphere administrative console. The workbench is integrated with the WebSphere administrative console.

  1. In the Servers view, right-click the server and select Run Administrative Console. The Administrative Client logon window opens in the Web Browser view.

    Alternatively, open the administrative console in a Web browser by specifying http://localhost:9060/ibm/console/ in the address bar.


    1. Specify any text for the user ID as it is used for logging purposes when the server is not secured. Click Log In.


      Figure 32. The WebSphere Administrative Console
      The WebSphere Administrative Console.


    2. On the left pane, select Applications > Enterprise Applications. The Enterprise Applications page opens.
    3. Place a check mark beside HelloWorldEAR and click Stop. The status of the HelloWorldEAR application changes to the The stop icon in WebSphere administrative console. stop icon.


      Figure 33. Stopping an application in WebSphere Administrative Console
      Stopping an application in WebSphere Administrative Console.


    4. Open a new Web browser and in the address bar specify: http://<hostname>:9080/PrizeRegistration/index.jsp
      where, <hostname> is the name of the machine where you are running the server. An error 404: FileNotFoundException is displayed.

    5. Congratulations, you have successfully stopped the application from running on the server.
  2. If your manager decides to extend the promotional giveaway, allowing for more contestant entries past the due date, repeat the preceding steps and select Start to restart the application on the server.
  3. If your manager decides that the promotional giveaway will no longer continue, select Uninstall to remove the application from the installedApps directory of the external server.
  4. Logout and close the WebSphere administrative console.

Troubleshooting and problem determination

  1. The WebSphere Application Server generates many log files that assist in problem determination. All WebSphere Application Server log files are under the WAS_INSTALL_ROOT/profile/log directory, where WAS_INSTALL_ROOT/profile is the directory of your profile for the WebSphere Application Server. For example, C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs directory. The following table describes some of the main log files available for troubleshooting the server:

    Log fileDescription
    SystemOut.logStandard JVM output log that indicates if code running in the server started and stopped successfully.
    SystemErr.logStandard JVM error log that contain exceptions thrown by code running in the server.
    startServer.logLogs the startup of the server. If the server has successfully started, the last two lines of this log file read:
    Server launched. Waiting for initialization status.
    Server server1 open for e-business; process id is 1932.
    stopServer.logLogs the shutdown of the server. If the server has successfully stopped, the last two lines of this log file read:
    Server stop request issued. Waiting for stop status.
    Server server1 stop completed.
    activity.logA binary file that logs events that show a history of activities. A Log Analyzer tool is available to read the output from this file.


  2. In WebSphere Application Server Toolkit , you might have noticed that most of the messages in these log files were written in the Console view during the runtime of the server.
  3. Interpreting log messages. A WebSphere Application Server log entry has the following format:

    Time StampThread IdComponentMessage TypeMessage ReferenceMessage Description
    [8/16/06 9:37:20:380 EDT]0000000aWsServerImplAWSVR0001IServer server1 open for e-business


    Time Stamp: The timestamp is formatted using the locale of the process where it is formatted. It includes a fully qualified date (YYMMDD), 24-hour time with millisecond precision, and the time zone.

    Thread Id: An 8-character hexadecimal value generated from the hash code of the thread that issued the trace event.

    Component: The abbreviated name of the logging component that issued the log event. This is typically the class name for WebSphere Application Server internal components, but might be some other identifier for user applications.

    Message Type: A one-character field that indicates the type of the log event:



    >Entry to a method
    <Exit a method
    AAudit
    WWarning
    XError
    EEvent
    DDebug
    TTerminate (exits process)
    FFatal (exits process)
    IInformation
    OProgram output


    Message Reference: The message identifier can be either 8 or 9 characters in length and has the form, for example, CCCC1234X, where CCCC is a four-character alphabetic component or application identifier, 1234 is a four-character numeric identifier used to identify the specific message for that component, and X is an optional alphabetic severity indicator (I=Informational, W=Warning, E=Error). For details on the message reference on a particular message identifier, search on the message identifier in the WebSphere Information Center.

    Message Description: The message output issued.

9 of 13 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere, Java technology
ArticleID=162257
TutorialTitle=Hello World: WebSphere Application Server and Application Server Toolkit, V6.1
publish-date=11292006
author1-email=larinac@ca.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.