Quantcast

Adding new user interface tutorial problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Adding new user interface tutorial problem

Federico Montinaro
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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Adding new user interface tutorial problem

Francois Prunayre
Hi Federico, 

2016-12-02 15:28 GMT+01:00 Federico Montinaro <[hidden email]>:
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Adding new user interface tutorial problem

Federico Montinaro
Hi Francois,

it works! 

Thanks!

2016-12-04 9:38 GMT+02:00 Francois Prunayre <[hidden email]>:
Hi Federico, 

2016-12-02 15:28 GMT+01:00 Federico Montinaro <[hidden email]>:
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork




--
Federico Montinaro
+39 329 432 4062 | [hidden email]

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Loading...