[GeoNetwork-devel] Debugging Geonetwork with Eclipse+ Tomcat

Hi all,

We’re starting to work with GeoNetwork and We’ve some doubts about how configure it for debugging.

We work with Java 1.5 and Tomcat 5.5.28. After bilding a SVN a project with the last version of GeoNetwork, we include the path
geonetwork/src
geonetwork/cachingxslt/src
geonetwork/jeevessrc/src
and all the libraries to the project.
Then, we create a debug config with geonetwork for tomcat including geonetwork, intermap and geoserver as web modules.
The problem comes after try to run the serve. We have this error:

14-abr-2010 13:06:06 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdevstudio10133\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Archivos de programa/Java/jre6/bin/client;C:/Archivos de programa/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\GTK\2.0\bin;C:\Archivos de programa\TortoiseSVN\bin;C:\Archivos de programa\Samsung\Samsung PC Studio 3;C:\Archivos de programa\QuickTime\QTSystem;C:\jdevstudio10133\jdk\jre\bin\client;C:\Archivos de programa\MySQL\MySQL Server 5.1\bin;C:\jdevstudio10133\jdk;C:\jdevstudio10133\jdk\bin;Y:\ORACLEDS10G\bin;U:\ora817\bin;C:\WINNT\system32;C:\Archivos de programa\Oracle\jre\1.1.7\bin;U:\orant\bin;
14-abr-2010 13:06:06 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
14-abr-2010 13:06:06 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1156 ms
14-abr-2010 13:06:06 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
14-abr-2010 13:06:06 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
14-abr-2010 13:06:06 org.apache.catalina.core.StandardHost start
INFO: Desactivada la validación XML
14-abr-2010 13:06:07 org.apache.catalina.core.ApplicationContext log
INFO: Marcando el servlet intermap como no disponible
14-abr-2010 13:06:07 org.apache.catalina.core.ApplicationContext log
GRAVE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@anonymised.com
jeeves.server.sources.http.JeevesServlet
java.lang.ClassNotFoundException: jeeves.server.sources.http.JeevesServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
14-abr-2010 13:06:07 org.apache.catalina.core.StandardContext loadOnStartup
GRAVE: El Servlet /intermap lanzó excepción de load()
java.lang.ClassNotFoundException: jeeves.server.sources.http.JeevesServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
log4j:WARN File option not set for appender [logfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
14 abr 13:06:08 INFO [[localhost].[/geoserver]] - Initializing Spring root WebApplicationContext
log4j:ERROR No output stream or file set for the appender named [logfile].
14 abr 13:06:08 INFO [context.ContextLoader] - Root WebApplicationContext: initialization started
14 abr 13:06:09 INFO [support.XmlWebApplicationContext] - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@anonymised.com: display name [Root WebApplicationContext]; startup date [Wed Apr 14 13:06:09 CEST 2010]; root of context hierarchy
14 abr 13:06:09 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/classes/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/gwc-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/main-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/rest-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/validation-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/wcs-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/wcs1_1-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/wfs-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/wfs11-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/wms-1.7.3.jar!/applicationContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/classes/applicationSecurityContext.xml]
14 abr 13:06:10 INFO [xml.XmlBeanDefinitionReader] - Loading XML bean definitions from URL [jar:file:/C:/GIS/IDEs/Geonetwork/geoNetworkSVN/geonetwork/web/geoserver/WEB-INF/lib/main-1.7.3.jar!/applicationSecurityContext.xml]
14 abr 13:06:10 INFO [support.XmlWebApplicationContext] - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@anonymised.com]: org.springframework.beans.factory.support.DefaultListableBeanFactory@anonymised.com
14 abr 13:06:11 INFO [support.XmlWebApplicationContext] - Bean ‘resourceLoader’ is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
14 abr 13:06:11 ERROR [geoserver.global] -

  • GEOSERVER_DATA_DIR: C:\GIS\IDEs\Geonetwork\geoNetworkSVN\geonetwork\web\geoserver\data

14 abr 13:06:11 INFO [support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@anonymised.com: defining beans [applicationState,applicationStateRegisterar,dispatcherMapping,gwcAppCtx,gwcXmlConfig,
gwcGSConfig,gwcTLDispatcher,gwcDefaultStorageFinder,gwcMetaStore,gwcBlobStore,gwcStorageBroker,geowebcacheDispatcher,gwcServiceWMS,gwcServiceGMaps,gwcServiceMGMaps,gwcServiceVE,gwcServiceKML,gwcServiceWFS,gwcSeederThreadPoolExec,gwcSeedRestlet,gwcSeedFormRestlet,gwcReloadRestlet,
gwcTileLayerRestlet,gwcRestDispatcher,gwcProxyDispatcher,gwcUrlMapping,resourceLoader,extensions,rawCatalog,secureCatalog,geoServer2,geoServerLoader,config,geoServer,globalConfig,data,rawData,dataConfig,dataRegisterar,dataConfigRegisterar,globalConfigRegisterar,geoServerRegisterar,
serviceStrategyFactory,speedServiceStrategy,fileServiceStrategy,bufferServiceStrategy,partialBufferServiceStrategy2,customEditorConfigurer,dispatcher,filePublisher,jaiInitializer,defaultDataSe

Neither of the projects are visible on the server context.

Any advice? Thanks

hi,
I have the same probleme when i try to run geonetwork, can you help me ?

Merci
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Debugging-Geonetwork-with-Eclipse-Tomcat-tp4901491p4985293.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Did you have a look at that thread?
http://osgeo-org.1803224.n2.nabble.com/Windows-GeoNetwork-Eclipse-Setup-Guide-First-Version-td4470162.html#a4470162

HTH,
Mathieu

On Fri, Apr 30, 2010 at 2:13 PM, Cissine <mohcine.chibane@anonymised.com> wrote:

hi,
I have the same probleme when i try to run geonetwork, can you help me ?

Merci

View this message in context: http://osgeo-org.1803224.n2.nabble.com/Debugging-Geonetwork-with-Eclipse-Tomcat-tp4901491p4985293.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

hi
yes I have already watched
And I managed to launch geonetwork and everything work fine on my local
machine.
But, I took the code and put it on my svn server and started from the
beginning, but it makes me this error, and I do not understand why.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Debugging-Geonetwork-with-Eclipse-Tomcat-tp4901491p4985451.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

hi

It's good I was able to launch correctly geonetwork, now i have no probleme
:slight_smile:

thx
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Debugging-Geonetwork-with-Eclipse-Tomcat-tp4901491p4985501.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

How did you solved the problem?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Debugging-Geonetwork-with-Eclipse-Tomcat-tp4901491p5369006.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.