Developers: Learn a New Programming Language or App Development with Deitel LiveLessons Videos!
s
menu
menu
Login  |  Register  |  Media Kit  |  Press  |  Contact Us  |   Twitter Become a Deitel Fan on Facebook  
Custom Search



 
AddThis Social Bookmark Button

FAQ: Advanced Java 2 Platform How to Program, 1/e
  1. Why can't I get the J2EE examples to deploy/work correctly?
  2. Why is the file cloudscape36.class missing from the book's CD-ROM?
  3. In the JSSE SSL example of Fig. 7.23 and Fig. 7.24, why do I get the
    exception "javax.net.ssl.SSLException: No available certificate
    corresponds to the SSL cipher suites which are enabled."?
  4. Why do I get the message "Exception in thread main java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij" when I try to create a database using createDatabase.bat?
  5. Why does Forte 3.0 generate a NullPointerException when I try to use the LogoAnimator JavaBean from Chapter 6?
  6. Why does the Deitel Drawing case study throw a FileNotFoundException for shapes.dtd when I try to load a saved drawing?
  7. When using the Cloudscape database, why do I get a NoClassDefFoundError when executing the startCS, stopCS or createDatabase batch file?
1. Why can't I get the J2EE examples to deploy/work properly?
The vast majority of the J2EE examples in Advanced Java 2 Platform How to Program were implemented with J2EE 1.2.1. There were SUBSTANTIAL changes to J2EE 1.3.1 that prevent many of our J2EE examples from working properly. Unless specified otherwise with the example, you must use J2EE 1.2.1 for the majority of our J2EE examples. You can download J2EE 1.2.1 from the following site:
2. Why is the file cloudscape36.class missing from the book's CD-ROM?
The installation instructions on the CD incorrectly refer to a file named cloudscape36.class. You can find the correct installation instructions for Cloudscape 3.6 at:
3. In the JSSE SSL example of Fig. 7.23 and Fig. 7.24, why do I get the
exception "javax.net.ssl.SSLException: No available certificate
corresponds to the SSL cipher suites which are enabled."?
The JSSE implementation does not support separate passwords for a
keystore and for the certificate in the keystore. When you execute the
command:
keytool -genkey -keystore SSLStore -alias SSLCertificate
to create the certificate, you are prompted to enter a password for the
keystore:
Enter keystore password:
Enter a password here. Then, after providing your name, organization and
location information:
What is your first and last name?
[Unknown]: Sean Santry
What is the name of your organizational unit?
[Unknown]: Software Development
What is the name of your organization?
[Unknown]: Deitel and Associates
What is the name of your City or Locality?
[Unknown]: Maynard
What is the name of your State or Province?
[Unknown]: Massachusetts
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=Sean Santry, OU=Software Development, O=Deitel and Associates,
L=Maynard,
ST=Massachusetts, C=US correct?
[no]: yes
you are prompted to enter a password for SSLCertificate:
Enter key password for <SSLCertificate>
(RETURN if same as keystore password):
At this prompt, press RETURN to use the same password as the keystore.
Then, continue to execute the example according to the instructions on
pages 428-429.
4. Why do I get the message "Exception in thread main java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij" when I try to create a database using createDatabase.bat?
The createDatabase.bat script relies on several JAR files from the Cloudscape installation. To ensure that these JAR files are in the CLASSPATH, change directories to Cloudscape_3.6\frameworks\RmiJdbc\bin and execute the setClientCloudscapeCP.bat script.
5. Why does Forte 3.0 generate a NullPointerException when I try to use the LogoAnimator JavaBean from Chapter 6?
A bug in Forte 3.0 prevents this JavaBean from working properly. As a workaround, either use Forte 2.0, which we include with the book, or download the latest version of NetBeans from http://www.netbeans.org/.
6. Why does the Deitel Drawing case study in Chapter 5 throw a FileNotFoundException for shapes.dtd when I try to load a saved drawing?
The Deitel Drawing application saves drawings as XML documents that conform to the SYSTEM DTD shapes.dtd. Since this is a SYSTEM DTD, the file shapes.dtd must be in the same directory as the saved XML document.
Otherwise, the application cannot locate the DTD and therefore cannot validate the XML document. There are two ways to fix this problem.
1. Download shapes.dtd from
and save it in the same folder as the saved drawings. OR
2. Replace lines 65-66 of Fig. 5.10 (DrawingFileReaderWriter) with the following:
transformer.setOutputProperty(
    OutputKeys.DOCTYPE_SYSTEM,
    "http://www.deitel.com/books/advjHTP1/advjHTP1_ch5_shapes.dtd" );
transformer.setOutputProperty(
    OutputKeys.DOCTYPE_PUBLIC,
    "-//Deitel and Associates, Inc.//DTD Shapes ADVJHTP1//EN" );
This adds a PUBLIC DTD declaration to the XML document and references the DTD on our Web server. This ensures that the application will always be able to locate the DTD, so long as there is an available Internet connection.
7. When using the Cloudscape database, why do I get a NoClassDefFoundError when executing the startCS, stopCS or createDatabase batch file?
You must execute the setCloudscapeCP.bat script before starting or stopping the server and before executing createDatabase.bat. If you use multiple command windows to run the scripts, you must run the setCloudscapeCP.bat in each window before running startCS, stopCS or createDatabase.
Also, the batch files provided use relative paths (i.e., ../..) to set the classpath. If you run the batch files in a directory other than cloudscape_3.6\rameworks\RmiJdbc\bin, the classpath will be incorrect. The best way to avoid this is to either replace the relative path (i.e., ../..) in the setClientCloudscapeCP.bat with the absolute path (i.e., C:\cloudscape_3.6\frameworks), or to simply execute the batch file from the correct directory.
c

 

Discounts on SafariBooksOnline.com subscriptions

 
Advanced Java 2 Platform How to Program, 1/e Cover


ISBN: 0130895601
© 2002

Order now at
Amazon.com
Informit.com

Download Code
Examples and
Other Premium
Content for
Registered Users

Login or Register to download this book's code examples and other premium content.

foot
Update :: September 20, 2017