Instead of an index.html file which would prevent you from browsing the
Unix directory, I have this file which doesn't interfere with directory
service.
This is Robert Maas, in Sukhjit Singh's distributed-Java class at De Anza
college in Cupertiono, California.
Below are the parts of my design document (for Lab#3 = taxicab messages)
which I've written so-far, and my working notes as I try to overcome the
major roadblocks that have so-far been preventing me from deploying any
J2EE application for this lab assignment.
Lab notebooks showing my roadblocks, progress, questions, etc.:
- May.12..14 (summary of major roadblocks,
planned strategy for overcoming them, hour by hour notes)
- May.15..16 (semi-new idea: runtime
checking of class against interface, as solution to making fake HttpServlet*
objects acceptable; deploytool trashes my application yet again, Error
allocating a servlet instance; hack whereby JSP explicitly calls doGet to
bypass roadblocks; tokenizer for parsing s-expressions representing
list of name-value pairs as test data for what I'll write next)
- May.17..18
(finished s-expression
parser, including XML generator for debugging, trick to save stdout to
file when calling Runtime.exec("anyShellCommnd"), trick for achieving
the effect of depricated-and-expunged System.getenv, looking at what
capabilities in request/response/session objects are actually used
in typical HttpServlet code hence needing emulation, testing those
capabilities in live session to fully understand how they work)
- May.19..20
(found bug in
JTabbedPane, seriously pinning down design of adapters for request and
response objects, writing interfaces for Minimal and My
resource/response objects and making sure all code is compatible with
these interfaces, linear dataflow JSP rig for debugging adapters,
*all* my deployed applications suddenly deleted by cleanup process
causing multi-hour delay, deploytool failed to paint modal dialog so
whole program wedged, utility to check all interfaces, MACHINE FROZE
FORCING NECESSITY OF EMERGENCY POWER-DOWN, completed overall framework
of adapters and have wrapRequest adapter basically working)
- May.21..23
(prepared sample
of HTML file containing login form, finished writing wrapRequest,
wrote wrapResponse, stumped by method called from JSP failing because
it can't find class already loaded by JSP itself so reverting trace
output back to cruddy system utility, finished overall design of
multi-UI adapter for servlets, developed effective
development/testing/debugging stategy involving linear inline code in
JSP (running under HTTP/J2EE container supplying
request/session/response objects) exactly matching linear inline code
in standalone test rig (having no access to J2EE
request/session/response objects), experimented with
System.currentTimeMillis() and TreeMap, wrote FakeHttpSession,
implemented queueing of all output within wrappedResponse object,
using a new class ClientWriter, investigated how J2EE servlet engine
handles sessions in regard to rewriting URLs and/or setting cookies,
tested all the common calls that servet innerds make to request &
response objects etc., put in stub for unwrapResponse and started
coding for it)
Milestones accomplished:
- Wrote sections of design documents (see earlier menu):
- May.08 use cases
- May.09 persistent storage (DB/properties)
- May.10 low-level utilties for dealing with persistent storage
- May.10 Finished writing enough low-level utilities and business logic
to support use case #1 (login), and wrote toplevel standalone demo
application.
- May.14 Wrote utility to scan entire disk looking for jar files, whereby
I discovered the location of the jar file I need in the classpath for
compiling servlets and other J2EE software.
- May.16 Wrote utility to show API for any class I can name, which has
come in handy many many times during subsequent work. (Previously whenever
I needed to look up the methods or constructors for a class I had to
go online and look at the API specification on Sun's java website. Now I
have most of the same info directly available on my laptop whenever I
need it.)
- May.23 Finished overcoming the roadblocks for deploying J2EE servlets
on Linux laptop, by means of multi-UI adapter and inline linear debug rig.
Details about major problems I'm having
(See new file also)
- How to call HttpServlet either directly from URL or indirectly via JSP?
.
.
.
.
.
.