0 Replies Latest reply on Apr 24, 2003 7:55 AM by nihs

    ServletContext.getResource() problem

    nihs

      Hello,

      I'm porting the petstore 1.1.2 application on the Jboss-2.4.4_Tomcat-4.0.1 platform.
      During the Hypersonic database initialization phase, the PopulateServlet tries to read the SQL script in the following way :
      ServletContext.getResource("/WEB-INF/sql/Hypersonic.sql").
      The returned URL is jndi:/localhost/estore/WEB-INF/sql/Hypersonic.sql.
      After that, PopulateServlet is caught in a null pointer exception.
      The Hypersonic.sql is located where it should be.
      Does anyone have an idea ?

      Thanks