This may be offtopic for struts-dev.  But I'm stuck,
so I'll have to chance it.
The reason I'm posting here, is that extensive
searches on the net haven't brought up anyone else
with the same problem, and the responses I've gotten
from struts-user, and debian-java have been of the 
type "have you remembered JkMount?" (and yes I have :-) ),
and I'm thinking this may be a version-of-stuff
compatiblity problem, which requires gurus.

In short my problem is:
 - I've dropped struts-example.war from the 1.0
   struts binary into /usr/share/java/webapps/
   (which is the webapp dir of debian)
 - I've restarted tomcat
 - I've added a JkMount for /struts-example/*.do
   to httpd.conf (just after including tomcat-auto)
 - I've restarted apache

The webapp works fine directly against the HTTP server
of tomcat.  But it doesn't work, or only sort of work,
when going through apache.

What happens is that I get 404 Not Found responses on
*.do URLs, unless they have a ;jsessionid= in them.

The top level page (ie. index.jsp) somtimes add
;jsessionid=something to all links, in which case
tour.do, and editRegistration.do works.  But after
a reload, the ;jessionid= links may go away.

My platform info is as follows:
        debian woody, apache 1.3.19, tomcat 3.2.3,
        struts 1.0, Java2 SDK 1.3 (from blackdown.org)

I have been wondering if there could be incompatibilities
with the java VM or classes of JDK 1.3 and what Struts
has been compiled with (JDK 1.2.something...?), so
I have tried recompiling Struts.  However, the 
behaviour of both the recompiled .war file, and
the use of a recompiled struts.jar, in a directory
where I've put an unpacked version of struts-example.jar,
is the same as the struts-example.war from the binary
distribution.

I'm using the ajp12 connector, because that's what
my tomcat uses by default, and because ajp13 gets
500 Server Internal Error.

All hints, tips, etc. appreciated!

I would especially appreciate tips about settings
for improved logging from apache or tomcat?  Since
session tracking seems to be the problem I would
have liked to track cookies sent to/from the clients.

Thanx!


- Steinar
















This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.

Reply via email to