----------------------------------------------------------------
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!!!
----------------------------------------------------------------

i am in the middle of a very tight project at the moment. i am wondering if
somebody can help me with the following problem that i encountered:
- running jserv 1.1.2 with apache server 1.3. i created a new zervlet zone
with the required properties file. in the .properties file i added this
entry: servlets.startup=MyStartupServlet. in the MyStartupServlet's
constructor, i tried to allocate a new object before doing other things.
this is what i found: MyStartupServlet was successfully loaded everytime
httpd is restarted. the constructor got executed. however, a new object was
never allocated. a call to this 'new XXXXX()' never returns. all the code
AFTER the line that allocates this new object never got executed. the funny
thing was jserv seemed to proceed as normal. it didn't hang or freezed at
all. it's like that portion of code got ignored. the log files didn't say
if there was any error.
there is nothing special about this object. it is just a normal class (not
a servlet) that inherits from other class and has several methods in it.
when i tried getting rid of one of its methods, everything worked fine. how
strange (this method does not even get called in the constructor)!
initially i thought this was something to do with the platform (initially i
ran this under windows98). but even after i ran in linux (redhat 6.1), i
still got the same problem. i didn't find any problem if i tried to
allocate my other 'simple' classes (have very few methods with not many
lines in each method), or standard java class (like String). i also did not
find any problem when i tried to allocate this class in my standalone test
class. problems only occurred when it was allocated from startup servlet!

is this a bug, setting, or restriction that i don't know???

can somebody help me solving this problem, please?? i have been working on
this for 2 days. i also have spent hours looking at the jserv faq, mailing
list archive, etc. but couldn't find anything. please at least tell me
where i could find the solution to this problem if this issue has been
raised before.
i really appreciate if somebody can email me the solution to this problem
to [EMAIL PROTECTED] AND [EMAIL PROTECTED]

thanks in advance




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to