Search
Thursday, November 20, 2008 ..:: Wiki ::.. Register  Login
Running your Java application on Tomcat 5.5

Downloads:

Configuring your Application

This document shows how to install and run a servlet-based sample on Tomcat that uses Windward Reports. The JSP example above can also be used and it's installation is basically identical.

  1. Install Tomcat. This step is not shown as we assume you already have Tomcat installed.
    1. The root for Tomcat (CATALINA_HOME) in this example is C:\Tomcat 5.5. I do this because the directories in Tomcat get deep enough without having C:\Program Files\Apache Software\Tomcat 5.5 on the front of them.


  2. Under the directory C:\Tomcat 5.5\webapps create the folder WindwardReports 

  3. Copy sample 5 and it’s subdirectories:

    to the newly created WindwardReports directory: 

  4. Create an images subdirectory (needed for html reports with images): 

  5. Copy WindwardReports.properties to the WEB-INF folder. This is necessary so that Windward Reports will find a license key. 

  6. Create a lib folder under WEB-INF and copy WindwardReports.jar and all of the jars in the lib directory to it: 

  7. Build the java files. Go to the directory C:\Tomcat 5.5\webapps\WindwardReports\WEB-INF\classes\com\windwardreports and run the file build.bat. This creates a class file for each java file.

    Please note the addition of servlet-api.jar. This is a Tomcat file and is its java servlet API implementation. This must be in the classpath.

  8. If Tomcat is stopped, start it. If it is started, you may need to stop and start it: 

  9. You should now see: 

  10. Click on the “Click here to go to the first screen” (do not click the link as it assumes the servlet was placed in WindwardReportsServlet and we named the servlet just Windward Reports) and you will get: 

  11. Congratulations, your servlet is now running. Select one of the formats (I selected html with css) and click “Generate Report”: 

  12. If for any reason the report generation failed, look in the tomcat log localhost.date.log where “date” is today’s date. The problem should be listed there.




 |   |  View Topic History  |
Membership Membership:
Latest New User Latest: Chris Gartsen
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 66

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now:
All contents copyright (c) 2002 - 2008 by Windward Studios, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement