velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chih Ming Hsueh <cmhs...@gmail.com>
Subject Re: Got blank page occasionally!!
Date Tue, 16 Nov 2004 11:51:55 GMT
Hi Shinobu

"some pc" means some web clients.  But I can not figure out how it
happened because these web client with the same os version,  IE
version and IE settings as my pc.

I would try to turn on the stacktrace to keep monitoring.

On Tue, 16 Nov 2004 20:43:23 +0900, Shinobu Kawai
<shinobu.kawai@gmail.com> wrote:
> Hi Chih,
> 
> > I am using VelocityServlet to control the view style according to
> > velocity servlet_example1.
> > I would got a blank page without any error message in velocity.log at
> > some pc, but
> > it is always normal in my pc.
> When you say "some pc", are you talking about the web client, or the
> server?  If the server, are you sure that the directory layouts are
> exactly the same?  Just asking because your example below sets the
> path to an absolute path.
> 
> > Is there debug tool to diagnose this problem ?
> You can set the properties to dump more logs.  See the
> runtime.log.*.stacktrace properties.
>  http://jakarta.apache.org/velocity/developer-guide.html#Velocity%20Configuration%20Keys%20and%20Values
> 
> > -- I use the following code to configure velocity
> >  protected Properties loadConfiguration(ServletConfig config ) throws
> > IOException, FileNotFoundException
> >  {
> >      Properties p = new Properties();
> >      path = "/opt/bea/user_projects/domains/xxx/template/eGovScreen";
> >
> >      System.out.println("VelocityPath=" + path);
> >      p.setProperty( Velocity.FILE_RESOURCE_LOADER_PATH,  path );
> >
> >      p.setProperty( "runtime.log", path + "/velocity.log" );
> >      return p;
> >  }
> 
> Best regards,
> -- Shinobu Kawai
> 
> --
> Shinobu Kawai <shinobu.kawai@gmail.com>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message