Dear JRun'ers,

 We finally have figured out one of the problems that has
been causing a lot of trouble since we migrated to JRun 3.0.
Turns out our one administrative servlet that we use to 
initialize lots of stuff is not being preloaded as we thought.
So therefore our initialization stuff which is all in the init
method of this admin servlet is not being performed until the
first time the admin servlet is actually invoked vs at JRun 
startup time as expected. Since the admin servlet doesnt normally
get invoked, we arent getting our initialization performed at
all a lot of times.
 Using the JMC I had setup the servlet to be preloaded when
the default server default application is started.
The lines from jrunroot/servers/default/local.properties
are shown below. My guess is the problem is that our servlet,
ATTAdminServlet.class, is stored in our own servlets directory
and not in any jrun or WEB-INF subdir. It is found fine by the 
users classpath since we can run it. But suspect at JRun startup
time only certain dirs are being searched? Tried dropping it into
WEB-INF/classes and jrun/servlet dirs 
to prove this, but still did not get preloaded
from what I can tell. Other possibility is that it is getting 
preloaded but init method is not getting invoked until the first
time it is run?
 Anyway would just like any tips on getting the init
method of a servlet executed each time JRun 3.0 starts up.
This is on Solaris 2.6 and we are using Apache as a web server.

 Am also very curious about the relation of the JMC and files like
the local.properties shown below. I used the JMC weeks ago to remove the
only init param for this servlet, but just realized the local.properties
file was never updated. Redid the exercise today, and the file 
still has this entry in it even after recycling JRun.
So are we expected to handedit these files under certain circumstances
or what is required to remove this init param via the JMC?
        Thanks,
        Roger Hanke

----- jrunroot/servers/default/local.properties ------
web-app.servlet.ATTAdminServlet.init-param.globalProperties=/sas/data/proper
ties/sas.properties
web-app.servlet.ATTAdminServlet.servlet-class=ATTAdminServlet
web-app.servlet.ATTAdminServlet.display-name=AdminServlet
web-app.servlet.ATTAdminServlet.description=SAS
Initialization/Admininstration
web-app.servlet.ATTAdminServlet.sIcon=
web-app.servlet.ATTAdminServlet.lIcon=
web-app.servlet.ATTAdminServlet.load-on-startup=1

-----------------------------------------------------------
 Roger A. Hanke         AT&T Hosting and Transaction Apps
 (732)576-5738          [EMAIL PROTECTED]
 FAX (732)576-6041      http://smithers.lz.att.com/~rhanke/
----------------------------------------------------------- 
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to