Professional Documents
Culture Documents
These are notes to capture a set of steps that will allow you to configure your VAJ3.5 environment to debug
web applications written for the Struts 1.0 framework. This may not be the optimal steps, so any
improvements that people discover should be added to this. These may also change slightly as each of the
components goes through different versions.
These steps are modifications to the general steps layed out in a “Mini-HowTo” document submitted on the
web by Nikolaus Rumm. Read http://kephera.dhs.org/services/vaj_jonas_struts_howto.htm for a more
complete description.
Assumed environment:
• Windows NT 4 SP4
• VAJ 3.5 patch 2
• Tomcat Test Environment v?? (IBM hasn’t versioned this, but it seems to be Tomcat 3.1)
• Struts 1.0
[Note: Struts is not officially at a 1.0 release as of this writing, but the APIs are finalized and they are
ready to release very soon now.]
• JAXP 1.0 -compliant XML parser
1. Unzip the files jaxp.jar from a JAXP-compliant parser distribution and put it in the Tomcat lib
directory (<VAJ>\ide\program_resources\Apache_Tomcat_Test_Environment\lib). This is a set of
interface classes that define the JAXP specification. You can remove the file xml.jar, which is an
earlier version of Sun’s parser.
2. Place the appropriate parser JAR file in the same lib directory. This will be something like xerces.jar,
xml4j.jar or parser.jar.
3. Import the jaxp.jar and parser JAR files into a new project in VAJ, called JAXP (or XML or whatever
you like.)Configure the JAXP interfaces to point to the parser implementation classes. This involves
defining two system properties. See the JAXP 1.0 Specification (Chapter 3, Pluggability Layer) for
more detail (http://java.sun.com/xml/jaxp-1_1-pfd-spec.pdf).
javax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFacto
ryImpl
javax.xml.parsers.DOMParserFactory=com.sun.xml.parser.DocumentBuilde
rFactoryImpl
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserF
actoryImpl
javax.xml.parsers.DOMParserFactory=org.apache.xerces.jaxp.DocumentBu
ilderFactoryImpl
If you’re lucky, you should now be able to run the TomcatRunner application, set breakpoints in the Struts
code and step through code. If not, try restarting VAJ and running again. If it still won’t work and you’re
not sure the problem, consult me until there’s a better knowledge base of experience with this.
Overview:
This alternate installation process was derived by the desire to isolate the VAJ projects and additional jar
files. The goal was to only have the classes appear once within VAJ. This was accomplished by importing
the Struts source and not the class files. This caused several issues because the source distribution was not
intended to be run as a webapp. Therefore several configuration files are missing from the source