I have a workaround - which may be better.

I'm using ant loadfile and replace to stick insert the stuff into web.xml.

Marc - I have something that seems to work for a number of JSPs 
(unfortunately only 3 out of 10 on the initial page, so far). Are you 
interested  in my pursuing this ?


Jules


Jules Gosnell wrote:
> 
> I checked out the website module to see if I could fix the build.xml to 
> precompile all the JSP pages.....
> 
> I'm nearly there, but my XML skills are letting me down...
> 
> I can get Jasper to compile all the JSPs into Java
> I can compile these into classes.
> 
> The problem then is that Jasper helpfully generates me an xml snippet 
> containing some <servlet/> and <servlet-mapping/> directives. This needs 
> to be inserted into the web.xml at the correct place. Jasper is then 
> effectively removed from the equation as all mappings are directed 
> straight to precompiled java servlets, instead of through Jasper.
> 
> I am trying something like:
> 
> <!DOCTYPE name [<!ENTITY jsp_mappings SYSTEM "jsp_mappings.xml">]>
> 
> at the top of the web.xml amd then :
> 
> &jsp_mappings;
> 
> where I want the snippet inserted... (jsp_mappings.xml is in WEB-INF 
> with web.xml)
> 
> No dice :
> 
> 14:28:44,992 ERROR [XmlFileLoader] Relative URI "jsp_mappings.xml"; can 
> not be resolved without a document URI.:-1:2
> org.xml.sax.SAXParseException: Relative URI "jsp_mappings.xml"; can not 
> be resolved without a document URI.
>     at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108)
>     at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3102)
>     at........
> 
> Does this mean that I need to have some sort of custom resolver 
> registered ?
> 
> All I want to do is #include a piece of xml into an xml file - is there 
> a better way....
> 
> Thanks all,
> 
> 
> Jules
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to