[GeoNetwork-devel] Adding new user interface tutorial problem

Hi,

I’m following tutorial from geonetwork manual. I want to add new custom user interface (http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/hookcustomizations/ui/index.html).

After deploying custom war, i try to open new view using http://localhost:8080/geonetwork/srv/eng/catalog.search?view=custom url and I have this error:

java.lang.IllegalArgumentException: Parameter ‘directory’ is not a directory
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:460)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:546)
at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:565)
at org.fao.geonet.wro4j.GeonetWroModelFactory$ResourceDesc$1.iterator(GeonetWroModelFactory.java:707)
at org.fao.geonet.wro4j.GeonetWroModelFactory.addCssGroupsByRequireDependencies(GeonetWroModelFactory.java:464)
at org.fao.geonet.wro4j.GeonetWroModelFactory.loadGroupsUsingRequireDependencyManagement(GeonetWroModelFactory.java:395)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:191)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:163)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:108)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:65)

Thanks all
Federico

Hi Federico,

···

2016-12-02 15:28 GMT+01:00 Federico Montinaro <federico.montinaro@anonymised.com>:

Hi,

I’m following tutorial from geonetwork manual. I want to add new custom user interface (http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/hookcustomizations/ui/index.html).

After deploying custom war, i try to open new view using http://localhost:8080/geonetwork/srv/eng/catalog.search?view=custom url and I have this error:

java.lang.IllegalArgumentException: Parameter ‘directory’ is not a directory

You’re probably running from source code and you’re missing submodules (eg. bootstrap).

Run
git submodule update --init
to download submodule and restart the app.

Not 100% sure this is the issue, but have a try.

Francois

at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:460)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:546)
at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:565)
at org.fao.geonet.wro4j.GeonetWroModelFactory$ResourceDesc$1.iterator(GeonetWroModelFactory.java:707)
at org.fao.geonet.wro4j.GeonetWroModelFactory.addCssGroupsByRequireDependencies(GeonetWroModelFactory.java:464)
at org.fao.geonet.wro4j.GeonetWroModelFactory.loadGroupsUsingRequireDependencyManagement(GeonetWroModelFactory.java:395)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:191)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:163)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:108)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:65)

Thanks all

Federico


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


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

Hi Francois,

it works!

Thanks!

···

2016-12-04 9:38 GMT+02:00 Francois Prunayre <fx.prunayre@anonymised.com>:

Hi Federico,

2016-12-02 15:28 GMT+01:00 Federico Montinaro <federico.montinaro@anonymised.com>:

Hi,

I’m following tutorial from geonetwork manual. I want to add new custom user interface (http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/hookcustomizations/ui/index.html).

After deploying custom war, i try to open new view using http://localhost:8080/geonetwork/srv/eng/catalog.search?view=custom url and I have this error:

java.lang.IllegalArgumentException: Parameter ‘directory’ is not a directory

You’re probably running from source code and you’re missing submodules (eg. bootstrap).

Run
git submodule update --init
to download submodule and restart the app.

Not 100% sure this is the issue, but have a try.

Francois

at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:460)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:546)
at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:565)
at org.fao.geonet.wro4j.GeonetWroModelFactory$ResourceDesc$1.iterator(GeonetWroModelFactory.java:707)
at org.fao.geonet.wro4j.GeonetWroModelFactory.addCssGroupsByRequireDependencies(GeonetWroModelFactory.java:464)
at org.fao.geonet.wro4j.GeonetWroModelFactory.loadGroupsUsingRequireDependencyManagement(GeonetWroModelFactory.java:395)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:191)
at org.fao.geonet.wro4j.GeonetWroModelFactory.createModel(GeonetWroModelFactory.java:163)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:108)
at org.fao.geonet.wro4j.GeonetWroModelFactory.create(GeonetWroModelFactory.java:65)

Thanks all

Federico


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


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

Federico Montinaro
+39 329 432 4062 | federico.montinaro@anonymised.com