BEA Home | Events | Solutions | Partners | Products | Services | Download | Developer Center | WebSUPPORT
| WebLogic Server Doc Home | FAQ | Previous Topic | Next Topic | Contents | View as PDF

FAQs: Code Examples

- Where are the examples located?

- Why won't the examples work?

- How do I use the Cloudscape evaluation version with WebLogic?

- Are the build.cmd and the build.sh scripts still being used?

- How do I use ANT?

Where are the examples located?

Examples, if installed, are located in the /samples/examples directory of your WebLogic Server installation and are available from the Start menu.

Why won't the examples work?

Each example comes with detailed instructions for building the example class files, configuring the server, and running the example. Make sure that you have completed each of the example instructions.

Usually problems with examples are related to your environment. Here are some troubleshooting hints:

1. If you are using a database, make sure you have run the utility utils.dbping to verify that your JDBC driver is correctly installed and configured.

2. Run the setEnv script to make sure your CLASSPATH is correctly set in the shell or DOS window in which you are running the examples. For more information, see Setting your development environment.

3. Check the instructions for the examples to make sure you have changed any user-specific variables in the code before compiling.

4. Verify that you are compiling with the -d option to direct the class files into the proper directory, as defined in the example instructions.

If the example is an applet, check the CODE and CODEBASE, and make sure WebLogic Server is running.

For more information, see the WebLogic Server Examples Guide located at samples/examples/examples.html in your WebLogic server distribution.

How do I use the Cloudscape evaluation version with WebLogic?

An evaluation version of the Cloudscape database management system is included in your WebLogic distribution, but must be set up properly for it to work with the code examples. All examples that use the Cloudscape database include instructions for configuring the connection pool. For additional information, see Using the Cloudscape Database With WebLogic Server located at samples/eval/cloudscape/cloudscape.html in your WebLogic Server distribution.

Are the build.cmd and the build.sh scripts still being used?

No. They have been replaced by ANT.

How do I use ANT?

Set up the Examples domain environment by running setExamplesEnv.cmd in Windows or setExamplesEnv.sh in UNIX. Go into your examples directory and type ANT to build the build.xml file. If you want to build your own build script, you can pass in the name of the build script by typing ANT -f myBuild.xml where myBuild is the name of your build script. For more information, see the Apache website.

Copyright © 2001 BEA Systems, Inc. All rights reserved. Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher.