Hi Cristian
You don't need to use geoserver when deploying geonetwork war individually.
Changing a bit config-gui.xml you can use some public WMS server layers like
this:
<mapSearch>
<layers>
<layer server="http://www2.demis.nl/wms/wms.ashx?WMS=BlueMarble"
tocName="Map" params="{layers: 'Earth Image,Borders,Coastlines', format:
'image/jpeg'}" options="{isBaseLayer: true}" />
</layers>
...
</mapSearch>
<mapViewer>
<layers>
<layer server="http://www2.demis.nl/wms/wms.ashx?WMS=BlueMarble"
tocName="Borders" params="{layers: 'Borders,Coastlines', transparent:
'true', format: 'image/png'}" options="{}" />
<layer server="http://www2.demis.nl/wms/wms.ashx?WMS=BlueMarble"
tocName="Ortophoto" params="{layers: 'Earth Image', format: 'image/png'}"
options="{isBaseLayer: true}" />
</layers>
...
</mapViewer>
If you really need/want to use geoserver also, you need to deploy the
geoserver.war file (from GeoNetwork install) in tomcat, and also manage
about the data folder containing all geoserver configuration. If you use the
installer you see this folder structure:
INSTALL_FOLDER
bin
data
* geoserver_data <---- *Folder with geoserver layers, sld, etc.
...
web
* geoserver.war <---- *Geoserver war file
You need to copy also *geoserver_data* folder to some location (for example
can be inside geoserver deployed folder) and in geoserver deployed folder,
edit WEB-INF/web.xml file to config *GEOSERVER_DATA_DIR* with correct path:
* <context-param>
<param-name>GEOSERVER_DATA_DIR</param-name>
<param-value>PATH_TO_geoserver_data</param-value>
</context-param> *
I'll check to update the user manual on how deploy both geonetwork.war and
geoserver.war in tomcat to get working correctly.
If you dont need GeoServer, the first solution should be ok i think.
Regards,
Jose García
On Fri, Oct 15, 2010 at 6:05 PM, Cristian Codorean <
cristian.codorean@anonymised.com> wrote:
Has the issue been resolved ? I am having the same problem. I am
deploying Geonetwork under Tomcat and I cannot see the map. Also I am
quite confused ! You are talking about GeoServer settings in
'config-gui.xml', but, do I need GeoServer ? Is a map viewer not
embedded now in the web application ?
I quote from the front page of your website:
"""The software provides an easy to use web interface to search
geospatial data across multiple catalogs, combine distributed map
services in the embedded map viewer, publish geospatial data using the
online metadata editing tools and optionally the embedded GeoServer
map server."""
The text says that there is an embedded map viewer. Optionally, an
embedded GeoServer map server. What do you mean by embedded ?
I have also tried deploying the 'geoserver.war' you provide together
with Geonetwork. I have had some problems in the process (like missing
the file 'styles/default_point.sld', file which is present in my
previous Geonetwork 2.4 installation but seems to be missing in 2.6.0,
so I had to copy it around) but finally managed to have a GeoServer
running. I also changed 'config-gui.xml' to point to the GeoServer.
Yet, I've had no positive results. Still no map.
Map seems to be working if I'm not deploying Geonetwork, but running
locally with its default settings.
Are there some deployment instruction with regards to the map viewer /
GeoServer ?
How do I debug problems like not being able to see the map ?
Cheers,
Cristian
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
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