1 Reply Latest reply on Nov 11, 2002 5:56 PM by Julian Gosnell

    getInitParameter() returning NULL

    Harjeet Singh Newbie

      Hi all,

      Maybe its something which I'm missing out or something. I'm getting certain parameters from the web.xml using getInitParameter() call, which then in store in global variables in servlet, in a servlet init() method. I have configured to start the servlet at loadup. Now these parameters defined are availble at loadup of JBOSS server. But on subsequent calls I get a NULL value for these variables.

      Actually previously I was making the getInitParameter() call within get(), and was facing this problem because of which I moved to the code to init) and store inlocal variable.

      I did not have this problem in the JBoss3.0 or JBoss 3.0.1RC1. But the problem started with JBoss3.0.1 version and continues in JBoss 3.0.3.

      I would be grateful is someone could point out whther this is a bug or am I doing something wrong.