1 Reply Latest reply on Feb 24, 2004 2:11 PM by Bill Winspur

    <init-param> does not appear in servlet context

    Bill Winspur Newbie

      Hi, When I deploy my very simple test case servlet,
      it is not able to retrieve the single <init-param> value from
      its web.xml deployment descriptor, below.

      <web-app>
       <servlet>
       <servlet-name>loopback</servlet-name>
       <servlet-class>com.wynnon.servletClass</servlet-class>
       <init-param>
       <param-name>com.wynnon.protocol.server.key</param-name>
       <param-value>com.wynnon.LoopbackAdaptor</param-value>
       </init-param>
       </servlet>
       <servlet-mapping>
       <servlet-name>loopback</servlet-name>
       <url-pattern>/loop</url-pattern>
       </servlet-mapping>
      </web-app>

      Debug code
      scxt.getInitParameterNames(),
      

      where scxt is the servlet context, returns an empty Enumeration,
      which implies that the association between the deployment
      descriptor and the deployed servlet is broken.

      How does one deploy a servlet in jboss, so that its <init-param>
      elements propogate to the servlet context ?

      Bill