Java Platform, Enterprise Edition (Java EE) 5 Technologies

The Java EE Tutorial FAQ

This page attempts to answer the questions that readers most frequently send to us.

Here's a list of the questions, by category, that are posed and answered in this FAQ:

About the Java EE 5 Tutorial

What version of the Sun Java System Application Server does The Java EE 5 Tutorial work with?

The Java EE 5 Tutorial works with Sun Java System Application Server 9.0 Update Release 1 (or GlassFish v1) and Sun Java System Application Server 9.1 FCS (or GlassFish v2).


What platforms does The Java EE 5 Tutorial support?

For a list of supported platforms, see the Application Server Release Notes.


I'm having problems compiling the examples using Ant.

The build.xml seems to be missing:

ant converter
Buildfile: build.xml does not exist!
Build failed
The build.xml file is in the directory for each technology. Make sure you are in that directory when you run ant.

About Downloading The Java EE 5 Tutorial Examples

How do I download The Java EE 5 Tutorial examples?

Follow the instructions in Required Software in Chapter 2 of the Tutorial.


Where can I download the Sun Java System Application Server?

See Java EE Downloads: GlassFish and Java EE 5.


I'm having trouble downloading The Java EE 5 Tutorial examples. What should I do?

Go to Contact Us and send an email to the address indicated. Describe exactly what the problem is. They can't help you if you don't give them enough information. Make sure you tell them the hardware platform, operating system, and browser you're using.


When I unzip the download file, all of the files have a size of zero. What should I do?

The download did not complete successfully. Please perform the download again and make sure that the entire file was downloaded. The size of the file is shown on the download page.

About Getting the Java EE 5 Tutorial in Other Formats

How do I print The Java EE 5 Tutorial?

Open the PDF version in Adobe Acrobat and choose Print from the File menu. The entire tutorial is over 1100 pages long, so you should print only the pages you need.


How do I buy The Java EE 5 Tutorial?

This tutorial has been published by Addison-Wesley as part of the Java Series. The title is The Java EE 5 Tutorial, Third Edition.

About the Java EE 5 Tutorial Team

Who are the members of the tutorial team?

For information about the authors, read Appendix C, "About the Authors."


How do I contact the authors?

Click the Feedback link in the Tutorial banner.

Other Questions

Can you help me with my Java EE programming problem?

This question is actually a series of similar questions:

  • Here's my code. Can you help me debug it?
  • How do I set up my CLASSPATH?
  • When I try to run one of The Java EE 5 Tutorial examples on my machine it doesn't work at all. Help me.
  • I want to write a <insert description of some program here>. Where do I begin?
  • What's a compiler?

Unfortunately we are not staffed to provide answers to these types of questions at this address. Please consult the resources page to help you get an answer to your question.

By the way, we tested all of the examples in the book on Solaris and Windows. The examples work for us. If you are having problems with the examples, then you are probably having configuration problems. If you think you've found a bug in the examples, let us know by sending us a message that describes the bug in detail.

The JMS example in "An Application Example That Consumes Messages from a Remote Server" doesn't work. Why not?

An issue in the Application Server is preventing this example from working. There is a workaround for this issue. To make the example work, perform the following steps:

  1. Start the Admin Console (open your browser to the URL http://localhost:4848).
  2. Expand the Configuration node.
  3. Click Java Message Service.
  4. Select LOCAL from the Type drop-down list (the default setting is EMBEDDED).
  5. Click Save.

    A message appears stating that the new values have been successfully saved. A Restart Required warning also appears. (You may also see an error in the server log, but you can safely ignore it.)

  6. In the Admin Console, click the Application Server node.
  7. Click the Stop Instance button, and click OK in the dialog that appears.
  8. Start the Application Server by using the following command:
    asadmin start-domain
    

    You can now run the example successfully.