Re: Accessing templates in jars

Keats Kirsch <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
This is odd.  It could be a Jetty issue.  I took a quick look at the 
Jetty source 
(http://cvs.sourceforge.net/viewcvs.py/jetty/Jetty/src/org/mortbay/jetty/servlet/ServletHandler.java?rev=1.121&view=markup) 
and it looks like it requires the URI string to start with a slash.  Are 
you doing this?

More diagnostics would be helpful as well.

Keats

Tim Pizey wrote:

> Hi Keats and Lane, 
>
>Thanks, I have changed 
>http://melati.org/cgi-bin/cvsweb.cgi/melati/src/org/melati/template/Template
>Engine.java
>http://melati.org/cgibin/cvsweb.cgi/melati/src/org/melati/template/webmacro/
>WebmacroTemplateEngine.java 
>and 
>http://melati.org/cgi-bin/cvsweb.cgi/melati/src/org/melati/servlet/TemplateS
>ervlet.java 
>
>And have checked that I am using WM(HttpServlet) 
>
>Jetty log:
>
>     [java] Initialising with
>     [java] 13:32:53.474 EVENT  WebMacro:LogFile        NOTICE  --- Log
>Started
>---
>     [java] 13:32:53.474 EVENT  WebMacro:broker NOTICE  Loaded settings from
>Web
>Macro.defaults, WebMacro.properties, (WAR file), (System Properties)
>     [java] 13:32:53.583 EVENT  WebMacro:wm     NOTICE  new
>WebMacro(org.mortbay
>.jetty.servlet.ServletHandler$Context@2bc3f5) v2.0b1
>
>but it still doesn't find templates in a jar file in the war. 
>
>any clues?
>
>thanks
>
>tim
>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now. 
>http://productguide.itmanagersjournal.com/
>_______________________________________________
>Webmacro-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/webmacro-user
>
>  
>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.