|
|
NOTE:
This page describes a Tomcat 5 webserver running on port 8080. This
is used by COSC students who have an account on triton.towson.edu.
To get started, all you need to do is execute this command script from the triton shell prompt (after logging in to triton with ssh): ~schmitt/bin/webappacl
If you have a web application on your triton files starting at ~/web-app there is a command that makes a war file for you. This war file will contain files from your triton web-app directory. ~schmitt/bin/makewar
The makewar command will create a war file stored in /tmp and the filename will be your userid (with suffix .war). This war file can be deployed after logging into the tomcat webapp manaager. New web applications should be developed and debugged using NetBeans. NetBeans will automatically create the war file. To deploy one of these NetBeans web applications, use secure FTP to upload the war file to triton (usually the /tmp directory since filestorage quota is not a problem there). Once the war file is on triton, it can be deployed by the tomcat webapp manager. To obtain the secure FTP client, visit OTS Downloads Download the SSH client which includes the secure FTP client. Do not use the FTP (File Transfer Protocol) Client "WS-FTP LE for Windows" |
Database access: Try your database settings in this page to confirm proper access.
<sql:setDataSource var="mysql"
url="jdbc:mysql://localhost:5030/web01s3"
driver="com.mysql.jdbc.Driver"
user="your_userid" password="your_password"
/>
Note that HSQL saves files:
This 100% java database runs on the same JVM as your servlet.
The database name db is located in the user's file system
in the folder given in the HSQL URL. This example gives
the user's home directory and the database name is db.
Use CREATE CACHED TABLE instead of CREATE TABLE so that the table
is kept on disk rather than in high-speed memory
Userid: "sa"
Passwd: ""
<sql:setDataSource var="mysql"
url="jdbc:oracle:thin:@orion.towson.edu:1521:cosc"
driver="oracle.jdbc.driver.OracleDriver"
user="your_userid" password="your_password"
/>