A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1301.html
Document ID: 1301 Branch: main Language: default Name: Debugging Cocoon in Eclipse (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 1/18/07 10:33:11 AM Updated by: Mark Lundquist A new version has been created, state: draft Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 7129 bytes (previous version: 6477 bytes) Content diff: (17 equal lines skipped) <h1>Using the Jetty Launcher</h1> --- <ul> --- <li>The <a href="http://jettylauncher.sourceforge.net/">Jetty Launcher</a> is an --- Eclipse plugin that has to be installed. The best option is the +++ <ol> +++ <li> +++ <a href="http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-34.htm">Install</a> +++ the <a href="http://jettylauncher.sourceforge.net/">Jetty Launcher</a> Eclipse +++ plugin using the plugin <a href="http://jettylauncher.sourceforge.net/updates">update link</a>.</li> <li>After that, you have to <a href="http://sourceforge.net/project/showfiles.php?group_id=7322&package_id=132252">download Jetty 5.1.x</a> and extract it to a directory of your choice.</li> <li>Then follow the excellent <a href="http://jettylauncher.sourceforge.net/docs/quickstart.html">Quick Start guide</a> that comes with the Eclipse plugin.</li> --- <ul> --- <li>Note: Update <tt>./etc/webdefaults.xml</tt> and comment in the JSR154 --- section as Cocoon makes use of it.</li> --- </ul> +++ </ol> --- </ul> +++ <p class="note">Jetty 5.1 does not support all of the Servlet 2.4 API, in +++ particular the RequestAttributeListener which is used by Cocoon. In order to +++ run with the Jetty Launcher using Jetty 5.1, you must do the following +++ additional steps:</p> +++ <ol> +++ <li>Copy etc/webdefault.xml from your Jetty 5.1 distribution to somewhere (e.g., +++ the root directory of your webapp Maven module)</li> +++ <li>Edit webdefault.xml, un-comment the JSR154 section at the end; this will +++ enable Jetty's grudging support of RequestAttributeListener :-)</li> +++ <li>In the Eclipse Jetty Launcher setup dialog, check the "Use a custom +++ webdefaults config file" and enter the path to your webdefaults.xml</li> +++ </ol> +++ +++ <ol> +++ </ol> +++ <p>If you want to be able to debug code that is in one of your libraries, you either have to add the source code to the dependency (if you use Maven 2 try <tt>mvn eclipse:eclipse -DdownloadSources</tt>) or if it is available as Eclipse (103 equal lines skipped)