[GeoNetwork-users] "Contribute" pages not displaying in GeoNetwork 3.0.2

I recently installed GeoNetwork 3.2.1 on Tomcat 8.0.36, on a Windows Server 2012 on AWS. Basically I just put the war file on the C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps directory.

After login in as an administrator, I was able to successfully harvest metadata exported from an old Geonetwork 2.x server.

However, when I try to go to any of the "Contribute" functions, I get a blank page, and 3 errors on http://localhost:8080/geonetwork/srv/eng/catalog.edit

The errors are similar for all the Contribute functions (Add new record, Import new records, Manage directory and BatchEditing):
Uncaught SyntaxError: Unexpected token < [on gn_editor.js:1]
Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.5.2/$injector/nomod?p0=gn_editor [on lib.js:44]
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.2/$injector/modulerr?p0=gn_editor&p1=Error%\.\.\.20\(http%3A%2F%2Flocalhost%3A8080%2Fgeonetwork%2Fstatic%2Flib\.js%3A40%3A274\) [on lib.js:58]

Any idea on how to solve this would be greatly appreciated.

Thanks,

--------------------------
Francisco Delgado
francisco.delgadoolivares@anonymised.com<mailto:francisco.delgadoolivares@anonymised.com08…>
Geospatial Information Technology, SERVIR
USRA Science and Technology Institute
Tel. (256) 961-7742 / (256) 658-8382
Skype: franciscodelgado503
--------------------------

I'm having the same issue on 3.0.5 and 3.2.1. This is what I get in developer
tools console:

gn_editor.js:1 Uncaught SyntaxError: Unexpected token <
lib.js:358 Uncaught Error: [$injector:nomod]
http://errors.angularjs.org/1.3.4/$injector/nomod?p0=gn_editor
    at lib.js:343
    at lib.js:358
    at a (lib.js:358)
    at Object.module (lib.js:358)
    at catalog.edit:23
lib.js:372 Uncaught Error: [$injector:modulerr]
http://errors.angularjs.org/1.3.4/$injector/modulerr?p0=gn_editor&p1=Error%…%20\(https%3A%2F%2Fdev\.li\-st\.net%2Fgeonetwork%2Fstatic%2Flib\.js%3A355%3A179\)
    at lib.js:343
    at lib.js:372
    at r (lib.js:344)
    at g (lib.js:371)
    at Kb (lib.js:375)
    at d (lib.js:354)
    at rc (lib.js:355)
    at Gd (lib.js:354)
    at HTMLDocument.
<http://errors.angularjs.org/1.3.4/$injector/modulerr?p0=gn_editor&p1=Error%…%20\(https%3A%2F%2Fdev.li-st.net%2Fgeonetwork%2Fstatic%2Flib.js%3A355%3A179>
<anonymous> (lib.js:586)
    at q (lib.js:78)

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-3-0-2-tp5324713p5327270.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

So i have Tomcat 8.0.45 on Ubuntu Server, runing on JAVA 1.8. I'm running
geonetwork behind NGINX:

        location /geonetwork {
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_intercept_errors on;
            proxy_pass http://127.0.0.1:8080/geonetwork;
            proxy_http_version 1.1;
            proxy_read_timeout 240s;
            proxy_send_timeout 240s;
            proxy_next_upstream_timeout 300s;
        }

I have tried to connect directly to port 8080, the same error ocurrs. Does
anyone have any ide why could this happen?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-3-0-2-tp5324713p5327392.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

This is what I get in geonetwork log when I click on "Add new record":

2017-07-11 18:49:42,558 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully completed
request
2017-07-11 18:49:52,788 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - DispatcherServlet with
name 'spring' processing GET request for [/geonetwork/srv/eng/catalog.edit]
2017-07-11 18:49:52,802 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Last-Modified value for
[/geonetwork/srv/eng/catalog.edit] is: -1
2017-07-11 18:49:52,803 INFO [jeeves.request] -

2017-07-11 18:49:52,803 INFO [jeeves.request] - HTML Request (from
212.92.107.65) : /geonetwork/srv/eng/catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Method : GET
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Content type : null
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Session id is
C5BF703BD075AF4AEAB02A49DC1FDA4F
2017-07-11 18:49:52,803 INFO [jeeves.service] - Dispatching : catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.service] - -> no input parameters
2017-07-11 18:49:52,804 INFO [jeeves.service] - -> dispatching to output
for : catalog.edit
2017-07-11 18:49:52,842 INFO [jeeves.service] - -> transforming with
stylesheet :
/opt/tomcat/geonetwork/webapps/geonetwork/xsl/../xslt/ui-metadata/editor.xsl
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> end transformation
for : catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> output ended for :
catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> dispatch ended for :
catalog.edit
2017-07-11 18:49:52,885 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Null ModelAndView
returned to DispatcherServlet with name 'spring': assuming HandlerAdapter
completed request handling
2017-07-11 18:49:52,886 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully completed
request
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/bootstrap-table.min.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/srv_custom_style.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/lib.js
2017-07-11 18:49:52,975 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/gn_editor_default.css
2017-07-11 18:49:52,976 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/ng-skos.css
2017-07-11 18:49:53,039 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/gn_editor.js
2017-07-11 18:49:53,182 WARN [geonetwork.resources] - Resource not found
images/logos/favicon.png, default resource returned:
/images/logos/favicon.png

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-3-0-2-tp5324713p5327462.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

It seems some issue with wro4j cache, but not sure what can be causing it.
At least in 3.2.1, there's an option in the administration menu to clean up
the wro4j cache:

http://SERVER/geonetwork/srv/eng/admin.console#/tools

Select Clear JS & CSS Cache and try after.

If you can't reach the admin console, try in debug mode:

http://SERVER/geonetwork/srv/eng/admin.console?debug#/tools

Also check if the contribute in debug mode reports additional errors in the
console:

http://SERVER/geonetwork/srv/eng/catalog.edit?debug

Regards,
Jose García

On Tue, Jul 11, 2017 at 6:52 PM, dracic <davor.racic@anonymised.com> wrote:

This is what I get in geonetwork log when I click on "Add new record":

2017-07-11 18:49:42,558 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully
completed
request
2017-07-11 18:49:52,788 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - DispatcherServlet
with
name 'spring' processing GET request for [/geonetwork/srv/eng/catalog.
edit]
2017-07-11 18:49:52,802 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Last-Modified value
for
[/geonetwork/srv/eng/catalog.edit] is: -1
2017-07-11 18:49:52,803 INFO [jeeves.request] -

2017-07-11 18:49:52,803 INFO [jeeves.request] - HTML Request (from
212.92.107.65) : /geonetwork/srv/eng/catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Method : GET
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Content type : null
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,
image/webp,image/apng,*/*;q=0.8
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Session id is
C5BF703BD075AF4AEAB02A49DC1FDA4F
2017-07-11 18:49:52,803 INFO [jeeves.service] - Dispatching : catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.service] - -> no input parameters
2017-07-11 18:49:52,804 INFO [jeeves.service] - -> dispatching to
output
for : catalog.edit
2017-07-11 18:49:52,842 INFO [jeeves.service] - -> transforming with
stylesheet :
/opt/tomcat/geonetwork/webapps/geonetwork/xsl/../
xslt/ui-metadata/editor.xsl
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> end transformation
for : catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> output ended for :
catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> dispatch ended for :
catalog.edit
2017-07-11 18:49:52,885 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Null ModelAndView
returned to DispatcherServlet with name 'spring': assuming HandlerAdapter
completed request handling
2017-07-11 18:49:52,886 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully
completed
request
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/bootstrap-table.min.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/srv_custom_style.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/lib.js
2017-07-11 18:49:52,975 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/gn_editor_default.css
2017-07-11 18:49:52,976 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/ng-skos.css
2017-07-11 18:49:53,039 DEBUG [ro.isdc.wro.http.WroFilter] - processing wro
request: /geonetwork/static/gn_editor.js
2017-07-11 18:49:53,182 WARN [geonetwork.resources] - Resource not found
images/logos/favicon.png, default resource returned:
/images/logos/favicon.png

--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-
3-0-2-tp5324713p5327462.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi Hose,

thank you for your answer. I will try as you suggested. In the meantime,
docker setup behind NGINX (same settings) works perfectly.

Best regards
Davor

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-3-0-2-tp5324713p5327702.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hey, Jose, muchas gracias! It worked great. I was able to use the contribute pages after clearing the CSS & JS cache. I was experiencing the problem on a fresh installation in our public-facing geonetwork server, which has other applications running under Tomcat. But just as Davor mentioned, a fresh installation in a local virtual machine or a docker container worked just right from the beginning.

Thanks a lot for your help!

--------------------------
Francisco Delgado
francisco.delgadoolivares@...1608...
Geospatial Information Technology, SERVIR
USRA Science and Technology Institute
Tel. (256) 961-7742 / (256) 658-8382
Skype: franciscodelgado503
--------------------------

-----Original Message-----
From: Jose Garcia [mailto:jose.garcia@…444…]
Sent: Wednesday, July 12, 2017 10:05 AM
To: dracic
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] "Contribute" pages not displaying in GeoNetwork 3.0.2

Hi

It seems some issue with wro4j cache, but not sure what can be causing it.
At least in 3.2.1, there's an option in the administration menu to clean up the wro4j cache:

http://SERVER/geonetwork/srv/eng/admin.console#/tools

Select Clear JS & CSS Cache and try after.

If you can't reach the admin console, try in debug mode:

http://SERVER/geonetwork/srv/eng/admin.console?debug#/tools

Also check if the contribute in debug mode reports additional errors in the
console:

http://SERVER/geonetwork/srv/eng/catalog.edit?debug

Regards,
Jose García

On Tue, Jul 11, 2017 at 6:52 PM, dracic <davor.racic@...54...> wrote:

This is what I get in geonetwork log when I click on "Add new record":

2017-07-11 18:49:42,558 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully
completed request
2017-07-11 18:49:52,788 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - DispatcherServlet
with name 'spring' processing GET request for
[/geonetwork/srv/eng/catalog.
edit]
2017-07-11 18:49:52,802 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Last-Modified
value for [/geonetwork/srv/eng/catalog.edit] is: -1
2017-07-11 18:49:52,803 INFO [jeeves.request] -

2017-07-11 18:49:52,803 INFO [jeeves.request] - HTML Request (from
212.92.107.65) : /geonetwork/srv/eng/catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Method : GET
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Content type : null
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,
image/webp,image/apng,*/*;q=0.8
2017-07-11 18:49:52,803 DEBUG [jeeves.request] - Session id is
C5BF703BD075AF4AEAB02A49DC1FDA4F
2017-07-11 18:49:52,803 INFO [jeeves.service] - Dispatching :
catalog.edit
2017-07-11 18:49:52,803 DEBUG [jeeves.service] - -> no input parameters
2017-07-11 18:49:52,804 INFO [jeeves.service] - -> dispatching to
output
for : catalog.edit
2017-07-11 18:49:52,842 INFO [jeeves.service] - -> transforming with
stylesheet :
/opt/tomcat/geonetwork/webapps/geonetwork/xsl/../
xslt/ui-metadata/editor.xsl
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> end transformation
for : catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> output ended for :
catalog.edit
2017-07-11 18:49:52,885 INFO [jeeves.service] - -> dispatch ended for :
catalog.edit
2017-07-11 18:49:52,885 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Null ModelAndView
returned to DispatcherServlet with name 'spring': assuming
HandlerAdapter completed request handling
2017-07-11 18:49:52,886 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully
completed request
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/bootstrap-table.min.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/srv_custom_style.css
2017-07-11 18:49:52,972 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/lib.js
2017-07-11 18:49:52,975 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/gn_editor_default.css
2017-07-11 18:49:52,976 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/ng-skos.css
2017-07-11 18:49:53,039 DEBUG [ro.isdc.wro.http.WroFilter] -
processing wro
request: /geonetwork/static/gn_editor.js
2017-07-11 18:49:53,182 WARN [geonetwork.resources] - Resource not
found images/logos/favicon.png, default resource returned:
/images/logos/favicon.png

--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/Contribute-pages-not-displaying-in-GeoNetwork-
3-0-2-tp5324713p5327462.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García <http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the environment before printing this email.*