> > Hi,
> >
> > I am using the avalon-http block but am having some trouble setting
the
> > app.home context entry. I have tried the following but it is not
being
> > picked up by the component.
> >
> > <component name="avalon-jetty"
> >          class="org.apache.avalon.merlin.http.JettyWebServer"
> >            activation="startup">
> >   <context>
> >     <entry key="app.home">
> >       <constructor class="java.io.File">
> >        /applications/merlin/
> >      </constructor>
> >     </entry>
> >   </context>
> > </component>
> >
> > Any ideas?
> 
> The JettyWebServer component looks for both app.home and
> urn:avalon:home.  Did you get the following warning message in your
log
> when you started merlin-http?
> 
> 'app.home' key not found in context; trying 'urn:avalon:home'
> 
> Ah... looking at the code...

that's correct

> 
> @avalon.entry key="urn:avalon:home" type="java.io.File"
> 
> is defined as a meta-tag in JettyWebServer's contextualize method.
> Being still somewhat of a newbie, I'm guessing that I might need to
add
> 
> @avalon.entry key="app.home" type="java.io.File"
> 
> as a meta-tag also.  Is this correct?
> 
> I'm checking for app.home being defined in code like this:
> 
> try {
>     home = (File) context.get("app.home");
> } catch (ContextException ce) {
>     // log a warning message here...
>     try {
>        home = (File) context.get("urn:avalon:home");
>     } catch (ContextException cex) {
>        // log a warning message here...
>     }
> }
> 
> Jim... Steve... someone help me out a little.  Do I need to add a
> meta-tag for app.home?
> 

sorry can't help here.... will dig a bit further and get back to you.

Cheers
</jima>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to