From: Lionel O. <lio...@gm...> - 2010-03-09 05:32:45
|
Hi, I'm only getting started with geonetwork and it took me a couple of days to set everything up in Eclipse. I think others have had problems with this as well. I had to make a small change to Geonetwork.java line 168 to ignore svn folders when loading the schemas: public Object start(Element config, ServiceContext context) throws Exception { ... for(int i=0; i<saSchemas.length; i++) if (!saSchemas[i].equals("CVS") && !saSchemas[i].startsWith(".") && !saSchemas[i].startsWith("_")) { ... I added the last condition to the if statement. This is to ignore the _svn directory inside web\geonetwork\xml\schemas. I can now run geonetwork from eclipse and log in successfully. However I still get an annoying exception when starting up: 56146 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer2' defined in URL [jar:file:/D:/workspace/geonetwork/web/geoserver/WEB-INF/lib/main-1.7.3.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchFieldError: TRACE I'm not sure what actual problems this causes but it bugs me. Anyone knows why I'm getting this? In a more user-related question I am trying to add a new metadata to another installed instance of geonetwork (I mean I created this instance using the Windows Installer). After creating the new metadata form the vector template I get an error when trying to save it straight away: IllegalStateException : Element not found at ref = Obviously I haven't entered all the necessary information to create the metadata but it is hard to know which bit of info this particular error is complaining about. All I want to do is upload a shapefile and have a look at some maps. What is the easiest way to do this? Thanks for any help Lionel. |