![]() |
SmartClient™ SDK Server Installation Version 5.2 evaluation (04/10/2005) Java server edition |
SmartClient .zip and .tar.gz packages include an embedded Tomcat server for rapid stand-alone development, but SmartClient is tested and supported on many leading application servers. SmartClient .war and .ear packages without Tomcat are also provided for deployment in existing server environments.
The SmartClient SDK includes an embedded HSQL database for rapid prototyping and evaluation using the SmartClient object-relational connector. This connector is also tested against many leading relational database systems.
To get started immediately with the SmartClient SDK, we recommend using the embedded server and database.
These notes describe server-specific configuration to deploy the SmartClient SDK in a different application server and/or to run the examples against a different database.
| Apache Tomcat 4.0.x | ||
| Apache Tomcat 4.1.x | ||
| Apache Tomcat 5.0.x | ||
| Apache Tomcat 5.5.x | ||
| BEA WebLogic 6.1 | ||
| BEA WebLogic 7.0 | ||
| BEA WebLogic 8.1 | ||
| Caucho Resin 2.1.x | ||
| Caucho Resin 3.0.x | ||
| IBM WebSphere 5.x | ||
| IBM WebSphere 6.x | ||
| JBoss 3.2.x | ||
| JBoss 4.0.x | ||
| Mortbay Jetty 4.x | ||
| Mortbay Jetty 5.x | ||
| Oracle Containers for J2EE (OC4J) 9.0.2 | ||
| Oracle Application Server 10g (9.0.4) | ||
| Sun AS 8.x |
If your specific application server or version is not listed above, please contact
support@isomorphic.com for assistance.
| HSQLDB 1.7.x | ||
| IBM DB2 v8.1 | ||
| MS SQL Server 2000 | ||
| MySQL 3.2.x | ||
| MySQL 4.0.x | ||
| MySQL 4.1.x | ||
| Oracle 8.0.5 | ||
| Oracle 8i | ||
| Oracle 9i | ||
| Oracle 10g | ||
| PostgreSQL 7.x |
You will need a JDBC driver for your specific database. The MM.MySQL driver for MySQL and the JDBC driver for PostgresSQL are included in the evaluation SDK for your convenience. Licensing restrictions prevent us from including DB2, SQL Server, Oracle, and more recent MySQL JDBC drivers (MySQL Connector/J) with this distribution. However, you can download these drivers for free from the vendors' websites.
If your specific database server or version is not listed above, please contact
support@isomorphic.com for assistance.
The instructions below have been fully tested on Windows servers. Installation and use of SmartClient on Unix, Linux, or Solaris server platforms is also supported, but is not specifically documented in these notes. These notes use Windows-format paths (with backslash rather than forward-slash delimiters) for installation files and directories.
The latest SDK is available at http://www.isomorphic.com/devcenter/download/index.jsp.
Unzip or unzip/untar the downloaded file if your web browser does not do so automatically. Locate the directory named isomorphicSDK. This is the SmartClient SDK "home directory".
Note: If you are installing on an IBM WebSphere application server, download isomorphicSDK.war instead of the .zip or .tar.gz files.
The WebLogic server must be running in developer mode for the SmartClient SDK administrative tools to function. These tools edit configuration files inside the isomorphicSDK directory. Developer mode is not required for production deployment of SmartClient-enabled applications.
To enable developer mode, edit the startup script for your WebLogic server, set the STARTMODE variable to FALSE, and restart the WebLogic server. Note that developer mode is the default for the examples and the default 'mydomain' domain in Weblogic 7.0 and 8.1. For more information on the developer mode, see the README file in the applications directory of your Weblogic server.
Same as WebLogic 7.0, except:
The SmartClient object-relational connector supports rapid end-to-end application prototyping and SDK evaluation. To configure this connector for use against a database other than the embedded HSQLDB instance:
To install a JDBC driver, copy the downloaded .jar file, or unzip the downloaded .zip file, into your isomorphicSDK\WEB-INF\classes directory.
By default, the example applications provided in the SmartClient SDK look for their data in a database named isomorphic. You must create this database and import the sample data in order to use the example applications. Follow your database vendor's instructions for creating new databases and tablespaces.
Alternatively, you may edit the parameters in isomorphicSDK\WEB-INF\classes\server.properties to use an existing database. If you choose to do this, you must edit and save server.properties and restart your servlet container before attempting to import the sample data.
The instructions in this section explain how to manually edit your configuration settings. Alternatively, you may use the graphical SmartClient Admin Console to edit these settings. If you are viewing this page from your application server, click here to open the Admin Console. Otherwise, open the console from: http://<your server>:<your port>/isomorphicSDK/tools/adminConsole.jsp.
To manually edit your configuration, open isomorphicSDK\WEB-INF\classes\server.properties in a text editor. This file contains configuration blocks for HSQLDB, MySQL, Oracle, PostgreSQL, and DB2. The sql.defaultDatabase variable controls which block is actually used by the system. To use a database other than the embedded HSQLDB, comment out the line that reads sql.defaultDatabase: HSQLDB and uncomment the line that reads sql.defaultDatabase: <your database type>.
After you have selected the database type, ensure that other configuration parameters in this file are set appropriately for your system. For a custom installation, you may need to change the values of the following variables:
| sql.<DBtype>.driver.serverName | Name or IP address of the system on which the database is running |
| sql.<DBtype>.driver.portNumber | TCP port on which the database is listening for connections |
| sql.<DBtype>.driver.databaseName | Name of the database as known by the database server |
| sql.<DBtype>.driver.user | Database username for SmartClient requests. Ensure that this user has the following privileges: create/alter/drop tables; create/drop sequences (Oracle); insert/update/replace/delete rows. |
| sql.<DBtype>.driver.password | Password for the given database username. |
Refer to the comments in server.properties for more information.
Note: You must restart your servlet engine whenever changes have been made to server.properties.
To import the sample data:
Open the SmartClient Admin Console.
Click Import DataSources in the options tree at top left.
Click/shift-click or right-click to select all datasources in the list at top right.
Click on the Import button.
Importing all sample data may take more than 10 seconds. A dialog will appear when the import operation has completed.
If you get an out of memory error when importing a very large data set (e.g. the productRevenue sample data), you will need to increase the maximum heap size of your JVM (e.g. java.exe -Xmx128M).
Launch SmartClient Demo Application to test your complete SDK installation.
This section covers some common problems with possible solutions. You may also need to refer to the documentation for your specific application server or database. If you experience any problems installing and configuring SmartClient in your environment, please contact support@isomorphic.com for assistance.
| Problem | Possible Causes | Solution |
| Browser displays a generic "page cannot be displayed" or "unable to locate the server" message. | Servlet engine not started. | Start your application server. |
| Missing/incorrect port for servlet engine in URL. | Check the startup messages, logs, or documentation for the servlet engine to determine what port it is using. | |
| Host name is incorrect. | Check whether other pages on the host can be accessed. Try the base URL http://[host name]:[port number] to see whether the servlet engine or webserver is functioning. | |
| Browser displays a 404 or other page/file not found error. | Incorrect URL. | Check for errors in the URL, including capitalization. |
| SmartClient SDK is in the wrong location. | Ensure that the isomorphicSDK directory appears in correct web applications deployment location for your application server. | |
| Servlet engine generates errors trying to access the Admin Console. | Servlet engine not restarted after installing SmartClient. | Restart the servlet engine by running shutdown.bat, then startup.bat. |
| Out of memory error during DataSource import. | Importing a very large data set. | Increase the maximum heap size of your JVM (e.g.java.exe -Xmx128M). |