In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
I always have a hard time finding again this info, so I filed it in my own docs. Here it is : you can activate, or not, the XSL caching. By default, it is on.
You can set it in WEB-INF/classes/META-INF/services/javax.xml.transform.TransformerFactory
The 2 available options are :
In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
Thanks
Ameet
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Hi Jean,
If you have suggestions for improvements to the documentation, please provide those. You can contribute improvements by editing the Restructured text documentation and submit them through a pul request.
Cheers,
Jeroen
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer, MapServer, PostGIS and GeoNetwork. Visit http://geocat.net for details.
_________________________Jeroen Ticheler
GeoCat bv
Veenderweg 13
6721 WD Bennekom
Tel: +31 (0)6 81286572 http://geocat.net
In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
Thanks
Ameet
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Hi Jean,
If you have suggestions for improvements to the documentation, please provide those. You can contribute improvements by editing the Restructured text documentation and submit them through a pul request.
Cheers,
Jeroen
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer, MapServer, PostGIS and GeoNetwork. Visit http://geocat.net for details.
_________________________Jeroen Ticheler
GeoCat bv
Veenderweg 13
6721 WD Bennekom
Tel: +31 (0)6 81286572 http://geocat.net
I always have a hard time finding again this info, so I filed it in my own docs. Here it is : you can activate, or not, the XSL caching. By default, it is on.
You can set it in WEB-INF/classes/META-INF/services/javax.xml.transform.TransformerFactory
The 2 available options are :
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
Thanks
Ameet
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Hi,
also instead of running on tomcat, you could run the app from the source code and then simply do:
cd web
mvn -Penv-dev jetty:run
will start GeoNetwork with Jetty and the profile env-dev means no XSL cache
If you want the widget apps, add the widgets profile :
mvn -Penv-dev,widgets jetty:run
HTH.
Francois
Hi,
I always have a hard time finding again this info, so I filed it in my own docs. Here it is : you can activate, or not, the XSL caching. By default, it is on.
You can set it in WEB-INF/classes/META-INF/services/javax.xml.transform.TransformerFactory
The 2 available options are :
In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
Thanks
Ameet
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Hi,
also instead of running on tomcat, you could run the app from the source code and then simply do:
cd web
mvn -Penv-dev jetty:run
will start GeoNetwork with Jetty and the profile env-dev means no XSL cache
If you want the widget apps, add the widgets profile :
mvn -Penv-dev,widgets jetty:run
HTH.
Francois
Hi,
I always have a hard time finding again this info, so I filed it in my own docs. Here it is : you can activate, or not, the XSL caching. By default, it is on.
You can set it in WEB-INF/classes/META-INF/services/javax.xml.transform.TransformerFactory
The 2 available options are :
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
In a deployed war of GN 2.10.1, I found that every time I make changes to XSL templates, I need to restart Tomcat and this drastically slows down the dev process. Obviously they are cached, how can I remove the XSL caching so that I don’t need to restart the server for every small change?
Is it related to class CahingTransformerFactory? even so, I don’t know what changes are needed and Importantly, can I do it in a deployed war so that I don’t need to rebuild the whole project.
Thanks
Ameet
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk