Brian,
 Afraid I have not seen this error (Solaris 2.6/JRun 3.0).
Have been preloading just a single servlet successfully, 
so wonder if preloading order which comes into play for you
could be factor?
 Also was curious if you have confirmed that your servlet 
init routine is being invoked when JRun starts up??
I found out that even though my servlet appeared to be 
preloaded successfully (meaning no complaints), its init
method is not being called until its first invocation.
So I am NOT getting my servlet preloaded by my 
definition, though I thought I was.
        Roger Hanke 

-----Original Message-----
From: Brian Zimmer [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 25, 2000 1:53 PM
To: '[EMAIL PROTECTED]'
Subject: problems pre-loading a servlet


Does anyone know what causes this?  It happens when I try to pre-load a
servlet.  I've seen it before with another servlet and it went away, but I
can't remember what I changed.  Am I missing something in my web.xml?  This
is what I have for this servlet:

<servlet>
        <servlet-name>WebFileUpload</servlet-name>
        
<servlet-class>com.ignitemedia.webfileupload.WebFileUploadServer</servlet-cl
ass>
        <init-param>
                <param-name>ism.datasrc.name</param-name>
                <param-value>java:comp/env/jdbc/testdb</param-value>
        </init-param>
        <init-param>
                <param-name>maxuploadsize</param-name>
                <param-value>15242880</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
</servlet>

thanks,

brian

----------

08/25 12:37:44 info (WebFileUpload) Starting WebFileUpload: WebFileUpload -
Web file upload
08/25 12:37:44 error (JRun) Could not pre-load servlet: WebFileUpload
[javax.servlet.ServletException]
javax.servlet.ServletException: null
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at
allaire.jrun.util.OrderedProperties.putProperty(OrderedProperties.java:95)
        at
allaire.jrun.util.OrderedProperties.setProperty(OrderedProperties.java:88)
        at allaire.jrun.servlet.JRunSE.loadConfig(JRunSE.java:332)
        at allaire.jrun.servlet.JRunSE.init(JRunSE.java:151)
        at allaire.jrun.ServletService.init(ServletService.java:66)
        at allaire.jrun.ServletService.init(ServletService.java:31)
        at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:236)
        at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:190)
        at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17
7)
        at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
        at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:968)
        at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196)
        at allaire.jrun.ServletService.init(ServletService.java:66)
        at allaire.jrun.ServletService.init(ServletService.java:31)
        at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:236)
        at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:620)
        at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
        at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
        at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
        at allaire.jrun.ServletService.init(ServletService.java:66)
        at allaire.jrun.ServletService.init(ServletService.java:31)
        at JRun.main(JRun.java:130)

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