Here's a little info if you want to debug your turbine apps, Im using a debugger called Jswat that Sean suggested. You need a minimum of JDK 1.2.2 see http://java.sun.com/products/jpda/faq.html#IG0 for details.. Setup: 1. Download jswat from http://www.bluemarsh.com/java/jswat/ and add the jar to your classpath: 2. Copy the 2 .bat files (sorry windows only right now) from www.kav.dk/turbine/ into the '\bin' dir of your turbine installation. Don't worry about overwriting catalina.bat nothing has changed i've only added a method. Debugging: 1. Start the debugging process with .\bin\debug.bat all This will start both Jswat and Catalina the 'all' parameter referes to which of your webapplications you want to debug, all means that you want to include the source code for all of the applications located in \webapps If you have a problem with multiple web applications that have the same class/package names, you can start it up with .\bin\debug.bat appname, where 'appname' is the name of your web application (located in \webapps), this will only include one web application. 2. Hit your webapplication in your favorite browser. Switch to Jswat and execute 'attach 8027' in the console window. Switch to 'Classes' tab in Jswat, you can now do whatever you normally do with a debugger set breakpoints/step through the code.... Other stuff: 1. An easy way to learn the inner workings of turbine (or if you are having trouble figuring out how the page/layout/action/navigation/screen stuff works) is to try and step through a couple of request. What you need is to download the sourcecode for Turbine (Make sure you have the exact same version as the turbine.jar in your webapp folder) and just put it into the webapps\yourapp\src folder. place a breakpoint in Turbine.java at the line public final void doGet (HttpServletRequest req, HttpServletResponse res) and then just hit your webapp. 2. Since it isn't possible to place breakpoints in classes that haven't been loaded there is no way of stepping through all the Turbine Init stuff (It gets loaded to quickly) what you can do then, is to download the source for Catalina and put it in the webapps\yourapp\src folder, and then place a breakpoint just before the Turbine servlet is initiated. 3. If you have source code (velocity source, turbine source) that is included in multiple webapps, you can just place it in \share\debug\src (create debug\src first) and it will be included automatically. - Kasper ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
