CIMDE Configuration Notes
CimdeConfig.java
Configuring CIMDE to work with your servlet engine and database server requires changing some symbolic constant values in CimdeConfig.java file.
- replace <server> with servlet engine server name (ex: servername.edu)
- replace <port> with servlet engine port
- replace <db_ip_address> with the database address
- replace <db_port> with the database server port
- replace <db_username> database username
- replace <db_password> with database password
- may need to change JDBC driver and database URL prefix to fit your jdbc drivers
- replace <tomcat_path> with the path to the tomcat directory
Files from the Provided Folders
cimdeAppletFiles
- Class files created from these java files should be put in <tomcat_path>/webapps/ROOT/applets directory of the servlet engine.
cimdeServletFiles
- Class files from java files in the classes directory should be put in the <tomcat_path>/webapps/CIMDETool/WEB-INF/classes directory of the servlet engine.
- The files from the images and servlets directories should go in <tomcat_path>/webapps/CIMDETool/images and <tomcat_path>/webapps/CIMDETool/servlets respectively.
- A <tomcat_path>/webapps/CIMDETool/uploadedFiles directory must be created to contain uploaded score files
Other Required Files
Files required in the <tomcat_path>/lib directory:
- The cos.jar file (the classes for part of the file upload function of CIMDE) must be downloaded from the O'REILLY website.
- The .jar file containing the necessary JDBC classes for your database.
Object Serialization
The Data59.class file must be the same for the applet and servlet. This class defines the data-containing object that is serialized and passed back and forth between the applet and servlet. The Data59.java file should be compiled in one place (e.g. with the applet classes). The resulting Data59.class file should then be copied to the other place (e.g. the directory with the servlet classes) to insure that the same class file exists in both places. If this is not done, java will complain about the incompatible object and not allow deserialization of the object.