[GeoNetwork-users] GN2.1, tomcat Javascript errors

Hi there,

I am a newbie to GeoNetwork, and I am trying to install GeoNetwork 2.1 under
Tomcat 6 using PostGres on solaris 10.

I have installed GN 2.1 with the embedded jetty engine and it works fine. I
then installed tomcat and added the 2 context elements just before the end of
the host element.

          <Context path="/geonetwork"
                  docBase="/home/compass/local/apps/geonetwork/web/geonetwork"
                   crossContext="false"
                   debug="0"
                   reloadable="false" />
          <Context path="/geonetwork/intermap"
                   docBase="/home/compass/local/apps/geonetwork/web/intermap"
                   crossContext="false"
                   debug="0"
                   reloadable="false" />

I am using tomcat as a standalone server, but will be migrating to having
httpd receiving requests and passing them on to tomcat if I can get GN
working with tomcat as a standalone server.

I point my browser at the correct url and GN loads, the errors appear to be
JavaScript:

  closeIntermap is not defined
  im_mm_init is not defined

The map in the top left corner doesn't appear either and when I click on one
of the categories, I get further JavaScript errors stating:

  clearNode is not defined

I looked at the main-page. xsl file and found <script> elements referencing a
number of JavaScript files, some had a question at the end of the src (I have
never come across this before, any ideas anyone???).

Also, from what little I know about JavaScript any function referenced by
another should come before the definition of the function. Therefore the
order that some of the JavaScript is defined appears to be incorrect, that
said it seems to work when I use the embedded jetty engine.

My gut feeling is that I have some setup problem with interMap but I don't
know enough about the whole GN InterMap package to know for certain.

Any help that can be give is much appreciated, cheers.

MARK

CIAO
--
**********************************************************************
Mark Small

EDINA National Data Centre

The University of Edinburgh
Causewayside House
160 Causewayside
Edinburgh
   EH9 1PR
   Scotland

Tel : +44 (0)131 650 2910
   Fax : +44 (0)131 650 3308
Email : m.small@anonymised.com
URL : http://edina.ac.uk/
**********************************************************************

I am not specialist but i think i have the same problem before.

Check that your Geoserver work well !

http://localhost:8180/geoserver/

On the main page Geonetwork display the world map and boundaries coming from
Geoserver.
Using the intermap embedded

Maybe your problem is the one i have before.

If it's work well have also a look at the intermap embedded to ckeck there
is no error

And have also a look at the.
/Geonetwork/web/intermap/WEB-INF/mapServers.xml
The parameters must point to your Geoserver for the default map

  <mapContexts>
    <default name="World + Africa national boundaries -- DUMMY NAME:not used">
      <server url="http://localhost:8180/geoserver/wms&quot; type="2" >
        <layer name="gn:world"></layer>
      </server>
      <server url="http://localhost:8180/geoserver/wms&quot; type="2" >
        <layer name="gn:gboundaries"></layer>
      </server>
    </default>

To start the Geoserver part i have to add it on my context list the
geonetwork part
for you certainly :
          <Context path="/geoserver"
                 
docBase="/home/compass/local/apps/geonetwork/web/geoserver"
                   crossContext="false"
                   debug="0"
                   reloadable="false" />

Be aware that Geonetwork is tested with java 1.5.0 and tomcat 5.5 not the 6.
I think that there is issues with Geonetwork on tomcat 6 and also with java
1.6.

Best Regards,
Fabien Bachraty

Mark Small-3 wrote:

Hi there,

I am a newbie to GeoNetwork, and I am trying to install GeoNetwork 2.1
under
Tomcat 6 using PostGres on solaris 10.

I have installed GN 2.1 with the embedded jetty engine and it works fine.
I
then installed tomcat and added the 2 context elements just before the end
of
the host element.

          <Context path="/geonetwork"
                 
docBase="/home/compass/local/apps/geonetwork/web/geonetwork"
                   crossContext="false"
                   debug="0"
                   reloadable="false" />
          <Context path="/geonetwork/intermap"
                  
docBase="/home/compass/local/apps/geonetwork/web/intermap"
                   crossContext="false"
                   debug="0"
                   reloadable="false" />

I am using tomcat as a standalone server, but will be migrating to having
httpd receiving requests and passing them on to tomcat if I can get GN
working with tomcat as a standalone server.

I point my browser at the correct url and GN loads, the errors appear to
be
JavaScript:

  closeIntermap is not defined
  im_mm_init is not defined

The map in the top left corner doesn't appear either and when I click on
one
of the categories, I get further JavaScript errors stating:

  clearNode is not defined

I looked at the main-page. xsl file and found <script> elements
referencing a
number of JavaScript files, some had a question at the end of the src (I
have
never come across this before, any ideas anyone???).

Also, from what little I know about JavaScript any function referenced by
another should come before the definition of the function. Therefore the
order that some of the JavaScript is defined appears to be incorrect, that
said it seems to work when I use the embedded jetty engine.

My gut feeling is that I have some setup problem with interMap but I don't
know enough about the whole GN InterMap package to know for certain.

Any help that can be give is much appreciated, cheers.

MARK

CIAO
--
**********************************************************************
   Mark Small
   
   EDINA National Data Centre

   The University of Edinburgh
   Causewayside House
   160 Causewayside
   Edinburgh
   EH9 1PR
   Scotland

   Tel : +44 (0)131 650 2910
   Fax : +44 (0)131 650 3308
   Email : m.small@anonymised.com
   URL : http://edina.ac.uk/
**********************************************************************

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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

--
View this message in context: http://www.nabble.com/GN2.1%2C-tomcat-Javascript-errors-tf4955945s18419.html#a14192373
Sent from the geonetwork-users mailing list archive at Nabble.com.