----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Apache JServ 1.0
Apache 1.3.9
Linux/Redhat 6.0
I've got an applet that makes a URLConnection to a servlet that sits on an
apache web server using jserv. I then writeObjects() into an
ObjectOutputStream from my applet. The problem is that the servlet
(which is almost an exact copy of other servlets that do work) never get's
executed (never even initialized). I always restart the server after placing
the servlet in it's proper place and URL's are correct.
All my writes from the applet execute w/o errors, exceptions, etc... and
looks like it's working just fine and the web server never reports that the
servlet is missing or not found, so one would think, so far so good. But the
doGet & doPost, nor init() methods of ServletA never gets called and by
looking at the log files in apache and jserv, servletA doesn't even get
initialized when requested by the applet (like servletB does). jserv.log
usually reports as follows:
[28/02/2000 09:40:33:399 CST] DBQuery: init
... more of same for init and destroy
Although I do see the following in the java console of IE or Netscape when
exec'ing the applet:
Opening http://MyServer/servlets/ServletA
I have applets sitting on machineB that I access from machineA's browser,
then exec my serlvets on machineB that access a server through RMI on
machineC (which does more cool accessing stuff after that). If I run netstat
on my linux box, I can see connections being established so I know THAT part
of my applet is correct. If I call the servlet from an html file using a
post action method, the servlet works fine. But I don't understand why the
servlet won't init when I use them together. I can step through my code line
by line, and everything from my URL to openConnection and writeObjects throw
nothing. I'm 99.9% certain my code is correct (after 22 hours of staring at
it).
This is very frustrating as I can't possibly think of what I'm doing wrong
(probably something stupid, but I've been over and over the code) and can't
figure out a proper way to debug this thing to see what's going on from the
eyes of apache.
Any help much appreciated, else if anyone needs a job, mine will be vacant
by the end of the week if I can't figure this out.
Gary
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]