tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/tester/web/WEB-INF web.xml
Date Thu, 05 Apr 2001 00:06:32 GMT
remm        01/04/04 17:06:32

  Modified:    tester/src/tester/org/apache/tester Jndi01.java
               tester/web/WEB-INF web.xml
  Log:
  - Add test for bug 1202.
  
  Revision  Changes    Path
  1.2       +12 -1     jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/Jndi01.java
  
  Index: Jndi01.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/Jndi01.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Jndi01.java	2001/02/22 01:07:26	1.1
  +++ Jndi01.java	2001/04/05 00:06:31	1.2
  @@ -74,10 +74,21 @@
    * should succeed.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 2001/02/22 01:07:26 $
  + * @version $Revision: 1.2 $ $Date: 2001/04/05 00:06:31 $
    */
   
   public class Jndi01 extends HttpServlet {
  +
  +    public void init() throws ServletException {
  +        Context ctx = null;
  +        try {
  +            ctx = new InitialContext();
  +            log("initialized successfully");
  +        } catch (NamingException e) {
  +            log("Cannot create context", e);
  +            throw new ServletException(e);
  +        }
  +    }
   
       public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
  
  
  
  1.18      +1 -0      jakarta-tomcat-4.0/tester/web/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/tester/web/WEB-INF/web.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- web.xml	2001/03/30 21:20:04	1.17
  +++ web.xml	2001/04/05 00:06:32	1.18
  @@ -300,6 +300,7 @@
       <servlet>
           <servlet-name>Jndi01</servlet-name>
           <servlet-class>org.apache.tester.Jndi01</servlet-class>
  +        <load-on-startup>1</load-on-startup>
       </servlet>
   
       <servlet>
  
  
  

Mime
View raw message