[GeoNetwork-devel] Remove xsl cache

Hi,

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

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 :

Jean

···

2013/10/12 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

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

···

2013/10/12 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Thanks a lot Jean.

···

On Sun, Oct 13, 2013 at 1:15 PM, Jeroen Ticheler <jeroen.ticheler@anonymised.com> wrote:

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

Op 13 okt. 2013 om 00:10 heeft “Jean Pommier (IGE)” <jean.pommier@anonymised.com> het volgende geschreven:

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 :

Jean


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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Systems Programmer
kCube Consultancy Services

2013/10/12 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

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 :

Jean

···

2013/10/12 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Thanks Francois for the nice tip. this will be useful to me,

Regards

Ameet

···

On Mon, Oct 14, 2013 at 11:07 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

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 :

Jean


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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Systems Programmer
kCube Consultancy Services

2013/10/12 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

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


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork