I am relatively new to Servlet programming and am trying to get turbine
to run on Win98 using jswdk-1.0.1. I have been somewhat successful with
one small problem. I have the following problem when running turbine in
this environment:

I map the Turbine servlet to the "/examples" directory and access the
servlet with the following path:

http://localhost:8080/examples/servlet/Turbine

The servlet operates correctly until the servlet recognizes the need to
validate the session and create a dynamic uri. The dynamic uri created
for the login screen is:

http://localhost:8080/servlet/Turbine/screen/Login

Note that the servlet does *not* add the necessary /examples prefix to
the path. Thus, the servlet crashes because it is  called in a location
where the servlet does not exist.

I fixed the problem on my machine by making the following modification
on line 155 of RunDataFactory;

was:      data.setScriptName (data.getScriptName() +
data.getRequest().getServletPath() );
now:      data.setScriptName (data.getScriptName() +
data.getRequest().getRequestURI());

Note that the getRequestURI provides me with the necessary "/examples"
while the getServletPath() does not. It seems to me that this code is
written with the assumption that the servlet operates at the root
directory. Is this only an issue with windows or can the same thing
occur using Apache Jserve?

Any insight would be appreciated.

- MJW


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to