Debugging Tomcat 4.1.7 Servlet and JSPs

"Lenny Sorey" <[email protected]>
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
NATHAN,

First of all, thank you for developing such a robust java debugger. I can get the JWSAT 2.6 debugger to run using your tutorial'java example.
Unfortunately , this is where my expertise drops off.

I am trying to debug a Tomcat 4.1.7 servlet with all the imports classes (see below)

Platform:
Windows 2000 Professional
J2SDK 141
Tomcat 4.1.7
MySql 4.0.1

My source files are as follows:

Directory: 

D:\Twincity
D:\Twincity\jsp
D:\Twincity\props\com\tcb\tcbfp
D:\Twincity\src\com\tcb\tcbfp
D:\Twincity\src\com\tcb\demo
D:\Twincity\src\com\tcb\services
D:\Twincity\src\com\tcb\tcbfp\exceptions

I am currntly using ant 1.4.1 to deploy my project to Tomcat's webapp subdirectory. 

I am using ANT to jar all my class files.

My question is how can I debug my servlets as well as my jsp files with Jswat 2.6?

I can start Tomcat 4.1.7 with catalina jpda start with no problem and attach remotely via jdbconn shared name.

I'm not sure where to set sourcename and classpath's for my project with Jswat 2.6.

Any help would be appreciated.

Thanks,

Lenny Sorey



FPage.java
*********************************************************************************************************************************************************************

package com.tcb.tcbfp;

import org.apache.turbine.services.db.TurbineDB;
import org.apache.turbine.util.db.pool.DBConnection;
import org.apache.turbine.util.TurbineConfig;
import com.tcb.exceptions.FrontpageActivityException;
import java.sql.*;
import java.util.ResourceBundle;
import org.apache.log4j.Category;

public class FPage {

    static Category cat = Category.getInstance(FPage.class);

    private static ResourceBundle sql_bundle =
	ResourceBundle.getBundle("com.tcb.tcbfp.SQLQueries");
	
     		 
	public void setDescription(String Description){
	Description = Description;
    }
	
	
		
	public static FPage findFPage(String ACTIVEBOX)
	    throws FrontpageActivityException {
		DBConnection dbConn = null;
		FPage fpage = null;
	    try
		{
		    dbConn = TurbineDB.getConnection();
		    if (dbConn == null) {
			cat.error("Can't get database connection");
			throw new FrontpageActivityException();
		    }
		    PreparedStatement pstmt =
			dbConn.prepareStatement(sql_bundle.getString("findQuery"));
		    pstmt.setString(1, ACTIVEBOX);
		    ResultSet rs = pstmt.executeQuery();
		    if (rs.next()) {
			fpage = new FPage();
			fpage.setDescription(rs.getString("DESCRIPTION"));
			}
		    
		    rs.close();
		    pstmt.close();
		}
	    catch (Exception e)
		{
		    cat.error("Error during findFPage", e);
		    throw new FrontpageActivityException();
		}
	    finally
		{
		    try
			{
			    TurbineDB.releaseConnection(dbConn);
			}
		    catch (Exception e)
			{
			    cat.error("Error during releaseConnection", e);
			}
		}
	    return fpage;
	}

/**
* This is where find FPage ends
**/

}
***************************************************************************************************************************************************************************************************************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.