> would you share a copy of the servlet runner you have working in VADD

Below is a URL to an article that describes how to run Tomcat within
VisualAge for Java (VAJ).  It is written for the free version of VAJ, which
has a 750 class limit.  This is a good read, even if you implement your
installation differently.

http://sheldonwosnick.tripod.com/Tomcat/Tomcat31Release.html

There is no "one way" to configure VAJ for servlets, Tomcat, and your
app.  Next, I'll try to describe what I do (my notes may not be accurate
due to changes over time):

. Install Tomcat and have it running standalone with your app.  This is
important because we are going to use the same ./conf.

. In VAJ, create a project named Servlet.

. Import into the Servlet project the following jars (classes and resources):
   . servlet.jar
   . webserver.jar
   . jasper.jar

At this point, there should be no errors listed under the Problems tab.  If
something is missing, go to tomcat/lib to find it.

If necessary, add (for 3.2, 3.1 slightly different):
   . jaxp.jar
   . parser.jar

. org.apache.tomcat.startup.Tomcat
   . Include your app's project in the classpath
   . Go to the Program tab and add a property
     . tomcat.home=c:/Programs/Tomcat
   . On the Classpath tab
     . Add servlet.jar and jasper.jar to the classpath

Optional: edit ./conf/server.xml and remove the path from each
<logger.  Therefore, the logs will be managed in the VAJ console window,
very handy.

If you are running Struts:

. org.apache.tomcat.startup.Tomcat
     . Add to the classpath app/WEB-INF/classes for each app that uses Struts

Run org.apache.tomcat.startup.Tomcat and check the log(s) at the
console.  Optional, clear the console for future reference.  Now hit your
page(s) with the browser.

At this point, you have a sub-second incremental compile and test cycle,
plus an interactive debugger ;)

I don't debug JSP because I put very little Java in JSP pages ;)

If you have questions and/or additions/corrections, please send them
directly to me at [EMAIL PROTECTED], not to the list, and we'll post a summary.

Thanks.


Rick

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to