Dashboard > BI Server Documentation - Latest > ... > Building and Debugging Pentaho with Eclipse > Debugging with Tomcat in Eclipse IDE
Debugging with Tomcat in Eclipse IDE
Added by Ramaiz Mansoor, last edited by Jem Matzan on Jun 12, 2008  (view change)
Labels: 
(None)




If you have followed the previous setup steps, you are now ready to debug the platform. We are assuming that you have the necessary projects and a configured JBoss server to run as we outline here. Here's the steps we are going to perform:





  1. We will configure a tomcat server in the Eclipse IDE. We will use this to run the Tomcat application server with the platform deployed as a web application.
  2. Last, we will place a breakpoint in the platform Java code, run the 'Hello World' sample solution, and step through the code from that breakpoint.
    If you intend to follow the "Debugging with Tomcat in the Eclipse IDE" exercise, you will want to make sure you do NOT have another application using port 8080 on your computer. This is the default port for the tomcat application server. While you can change the port that the server looks to use, you do not want to unnecessarily complicate your life at this point. If port 8080 is in use, we recommend temporarily shutting down the application that is using port 8080 while you are running the application server.

Configuring the Tomcat Server

Now that you have the pentaho web application copied into the pentaho-tomcatpreconfiguredinstallproject, it's time to start up the Tomcat application server and make sure everything works. The Eclipse IDE is a pretty sweet tool. It's easy to configure, and once that's done, all you have to do is start the server through the IDE and you can debug Java code.

Configuring a Tomcat Server in Eclipse IDE

These instructions work for anyone running the recommended environment as described in Setting Up Your Environment doc.

To configure a new server in the Eclispe IDE:

  1. In the Eclispse IDE in the Server view, right click and select "New->Server".
  2. In the "New Server" dialog, open the tree to "Apache" and select "Tomcat v5.5 Server".
  3. Click the "Installed Runtimes..." button.
  4. Click "Add".
  5. Open the "Apache" node in the tree control.
  6. Select "Apache Tomcat v5.5"
  7. Click "Next".
  8. Give it a name.
  9. In the Tomcat installation Directory text box, enter the path to your target-tomcatpreconfiguredinstall. (i.e.  C:\projects\pentaho1.6\target-tomcatpreconfiguredinstall)
  10. Click the "Installed JREs" button, and select an appropriate JDK.
  11. Click Ok
  12. Click Finish
  13. Click Ok
  14. Click Next, click Finish.
  15. In the Server view, double click on your new server.
  16. In the resulting "Overview" dialog, in the "Server Locations" section, click the "Use Tomcat installation" radio button.
  17. In the "General Information" section, set the "Configuration path" to /target-tomcatpreconfiguredinstall/conf.
  18. Save All.
  19. Select your new server in the Servers view.
  20. Click the "debug" button, and your server should come up.

how to debug pentaho-cubedesigner project in eclipse?

Posted by Rao at Apr 07, 2008 04:11
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.2 Build:#807 May 20, 2007) - Bug/feature request - Contact Administrators