Alejandro Reyero wrote:
> 
> > First, can you turn of what I assume is JIT to get a better stack trace?
> >
> I use JDK 1.2.2 as Java "compiler" for my IWS, so i assume there is no JIT.

Hm.  do you have an environment variable JAVA_COMPILER set?  I am going
to offer a solution, but I am still worried about the ugly stack trace
you are seeing.

> > Second, where are you doing the init(file)?  There is an init() in the
> > VelocityServlet base class, so any follwing inits don't do anything....
> >
> I'm doing it at my servlet (just SampleServlet with few modifications).
> 
> > Have you overridden the servlets init()?
> >
> Nope...

Ok - that's related to the issue - the VelocityServlet init(
ServletConfig ) (base class of SampleServlet) will call Velocity's
init(), so your call to Velocity's init() does nothing.

Add the following method :

    protected Properties loadConfiguration(ServletConfig config )
        throws IOException, FileNotFoundException
    {
        Properties p = new Properties();
        
        p.setProperty( "file.resource.loader.path",
"/export/home/ifema/velocity.properties");
        p.setProperty( "runtime.log", "/export/home/ifema/velocity.log");

        return p;
    }

And see what happens.  You should get a log file in the same place as
your properties file.  We need to know what that says if the problem
persists.

> In resume, what i need to know is how to configure Velocity to work with
> NES/IWS or how to say "My templates are HERE", where HERE is the directory,
> from my servlets...
> 

I know nothing about how to properly configure the Nintendo ;)  but lets
see if we can get the thing working this way - after that, there will be
a better way than this hardcoding...

geir

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Developing for the web?  See http://jakarta.apache.org/velocity/

Reply via email to