Now that I know how to use the reload.m command everything's working fine. I
tried using the template-caching idea when I was looking
for a solution originally. The result was the following (similar under both
Tomcat and Resin):
java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.infohazard.maverick.transform.XSLTransformFactory.init(XSLTransformFacto
ry.java:142)
at
org.infohazard.maverick.flow.MasterFactory.defineTransformFactories(MasterFa
ctory.java:269)
at org.infohazard.maverick.flow.Loader.loadModules(Loader.java:195)
at org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:155)
at org.infohazard.maverick.flow.Loader.<init>(Loader.java:88)
at org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:220)
at org.infohazard.maverick.Dispatcher$1.go(Dispatcher.java:231)
at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:179)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.ja
va:105)
at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:173)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:1
49)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:256)
at com.caucho.server.port.WorkerThread.run(WorkerThread.java:126)
at java.lang.Thread.run(Thread.java:536)
Given that Maverick was working albeit that I had to restart Resin (in the
absence of my knowledge of the reload.m command) I decided that I wouldn't
bother looking into this issue ;-). However now that it's been brought up
perhaps someone might be able to shed some light on this.Cheers,Marcel-----
Original Message -----
From: "jim moore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 4:40 AM
Subject: Re: [Mav-user] Reload command in web.xml
> the reload command only tells maverick to reload maverick.xml. basically
to
> refresh its mappings. you use the feature so that if you change
maverick.xml
> you don't need to restart the webapp. it should also reload all
stylesheets
> referenced in maverick.xml (this was working the last time I tried it).
>
> for working on stylesheets, though, i generally found it more useful to
set
> template-caching to disabled on the XSLTransformFactory:
>
> <transform-factory type="xslt"
> provider="org.infohazard.maverick.transform.XSLTransformFactory">
> <default-output-type value="text/html"/>
> <template-caching value="disabled"/>
> <uri-resolver value=""/>
> </transform-factory>
>
> This will cause maverick to not cache stylesheets at all so as soon as you
> edit them you will see the changes--note this will destroy performance, so
> its great on a dev server, horrible on a live server.
>
> --jim
>
>
> ----- Original Message -----
> From: "Thompson, Kris" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 02, 2003 12:19 PM
> Subject: RE: [Mav-user] Reload command in web.xml
>
>
> Sorry I don't have an answer for this but I would like to ask why would
one
> want to use this feature anyway? What is the true benefit?
>
> Kris
>
> > -----Original Message-----
> > From: Marcel Kung [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 7:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Mav-user] Reload command in web.xml
> >
> >
> > In previous mav-user list archives there is mention of using the
> > reloadCommand to cause Maverick to reload all the maverick.xml and XSL
> > changes automatically. In particular email
> > http://sourceforge.net/mailarchive/message.php?msg_id=110721
> > references the
> > following settings in web.xml:
> >
> > <servlet>
> > <servlet-name>dispatcher</servlet-name>
> > <display-name>Maverick Dispatcher</display-name>
> >
> > <servlet-class>org.infohazard.maverick.Dispatcher</servlet-class>
> > <init-param>
> > <param-name>reloadCommand</param-name>
> > <param-value>reload</param-value>
> > </init-param>
> > <load-on-startup>2</load-on-startup>
> > </servlet>
> >
> > This appears in the Friendbooks examples and I have tried the
> > examples under
> > both Tomcat and Resin and in neither does this reload appear
> > to work. You
> > can change the xsl stylesheets and maverick.xml and refresh
> > the browser but
> > until you restart the server nothing changes. How is this
> > reload supposed to
> > work?
> >
> > Cheers,
> > Marcel
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06
> 1203_01/01
> [INVALID FOOTER]
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> [INVALID FOOTER]
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> [INVALID FOOTER]
>
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
[INVALID FOOTER]