Package org.apache.tomcat.core

Examples of org.apache.tomcat.core.Context.log()


       
        Context context=(Context)ctx.currentObject();
        // replace ${foo} in value
        value=xm.replaceProperties( value );
        if( context.getDebug() > 0 )
      context.log("Setting " + name + "=" + value);
        context.setProperty( name, value );
    }
      });
    }
View Full Code Here


        Enumeration alE=aliases.elements();
        while( alE.hasMoreElements() ) {
            String alias=(String)alE.nextElement();
            tcCtx.addHostAlias( alias );
            if( tcCtx.getDebug() > 0 )
          tcCtx.log( "Alias " + host  + " " + alias );
        }
          }
        }
    }
      });
View Full Code Here

  if( debug > 0 )
      log( " user/pass= " + username + " " + password );
     
  ServerSession session=(ServerSession)req.getSession( false );
  if( session == null ) {
      ctx.log("From login without a session ");
      req.setAttribute("javax.servlet.error.message",
           errorPage );
      contextM.handleStatus( req, res, 302 ); // redirect
      return;
  }
View Full Code Here

      res.setStatus( defaultRedirectStatus );
  }
 
  location = makeAbsolute(req, location);

  if( debug>0) ctx.log("Redirect " + location + " " + req );

  String charset = LocaleToCharsetMap.getCharset(Locale.getDefault());
  if (charset == null) {
      res.setContentType("text/html");
  } else {
View Full Code Here

    }

    public void sendError(int sc, String msg) throws IOException {
  if (isCommitted()) {
      Context ctx=response.getRequest().getContext();
      ctx.log( "Servlet API error: sendError with commited buffer ", new Throwable("Trace"));
      throw new IllegalStateException(sm.
              getString("hsrf.error.ise"));
  }

  //   if (sc != HttpServletResponse.SC_UNAUTHORIZED)  // CRM: FIXME
View Full Code Here

    if( ! dep.isExpired() )
        return 0;
      }

      //      if( debug > 3)
      ctx.log( "Compiling: " + jspFile + " to " +
         mangler.getServletClassName());
     
      //XXX old servlet -  destroy();
     
      // jump version number - the file needs to be recompiled
View Full Code Here

            } catch ( java.io.FileNotFoundException fnfex ){
    containerCCL( savedContextCL );
    return 404;
      } catch( Exception ex ) {
    if( ctx!=null )
        ctx.log("compile error: req="+req, ex);
    else
        log.log("compile error: req="+req, ex);
    handler.setErrorException(ex);
    handler.setState(Handler.STATE_DISABLED);
    // until the jsp cahnges, when it'll be enabled again
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.