[Geoserver-devel] help: Context initialization failed

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context initialization failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/}
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17


Yuan Wu

Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

1. Instead of running GeoServer from eclipse with Maven, use the Start
class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section "Debugging starting Jetty as a java application".

2. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/
<mailto:org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/>}
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17
------------------------------------------------------------------------
Yuan Wu
!DSPAM:4007,46c52423220748992556831!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4007,46c52423220748992556831!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin:

I have done according to your instructions, but the problem is still there.
What can I do furthermore?

Hopes for more instructions!
Thanks.

2007-08-17


袁武


发件人: Justin Deoliveira
发送时间: 2007-08-17 14:51:52
收件人: 袁武
抄送: geoserver-devel
主题: Re: [Geoserver-devel] help: Context initialization failed

Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

  1. Instead of running GeoServer from eclipse with Maven, use the Start
    class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section “Debugging starting Jetty as a java application”.

  1. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. (Unknown Source)
at org.apache.xerces.parsers.DOMParser. (Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. (Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@…1323…{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/
<mailto:org.mortbay.jetty.webapp.WebAppContext@…1323…{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/ >}
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. (Unknown Source)
at org.apache.xerces.parsers.DOMParser. (Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. (Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17

Yuan Wu
!DSPAM:4007,46c52423220748992556831!



This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/

!DSPAM:4007,46c52423220748992556831!



Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!


Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

So you tried both options and neither worked? When you switched your
java version how did you do it? Did you do it from the eclipse
preferences. You may have to restart eclipse for it to be picked up by
each individual project.

When running form the Start test do you get the exact same exception? Or
is it a different one?

Can you also tell me if you are working from subversion or from a source
release? Also which branch are working on, 1.5.x or trunk? If you are
working from version control can you tell me how recent your checkout is.

袁武 wrote:

Justin:

I have done according to your instructions, but the problem is still there.
What can I do furthermore?

Hopes for more instructions!
Thanks.

2007-08-17
------------------------------------------------------------------------
袁武
------------------------------------------------------------------------
*发件人:* Justin Deoliveira
*发送时间:* 2007-08-17 14:51:52
*收件人:* 袁武
*抄送:* geoserver-devel
*主题:* Re: [Geoserver-devel] help: Context initialization failed
Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

1. Instead of running GeoServer from eclipse with Maven, use the Start
class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section "Debugging starting Jetty as a java application".

2. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

<mailto:org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

}
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17
------------------------------------------------------------------------
Yuan Wu

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/

!DSPAM:4007,46c52423220748992556831!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
!DSPAM:4007,46c54be4237398362916074!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hi, YuanWu.
Have you resolved the problem? I've got the same trouble just as yours, so
if you have got the key, please do me a favor to tell me how to do. I'll
appreciate that very much.

Cui Fudong

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some error
information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context initialization
failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/}
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17

Yuan Wu

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/help%3A-Context-initialization-failed-tf4283643.html#a12570425
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi,

I'm in the same trouble yet working on jsdk1.5, Geoserver 1.5.3, Windows and
Eclipse.

I'm tried both options but i have same exception as follows:

2007-09-26 14:51:03.515:/geoserver:INFO: Loading Spring root
WebApplicationContext
26 sep 14:51:03 ERROR [context.ContextLoader] - Context initialization
failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
  at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
  at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
  at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
  at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
  at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
  at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
  at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
  at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
  at org.mortbay.jetty.Server.doStart(Server.java:210)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-09-26 14:51:03.671::WARN: failed
ContextHandler@anonymised.com{/geoserver,file:/C:/workspaces/GeoServer1.5.3/web/src/main/webapp/}
2007-09-26 14:51:03.671::INFO: Started SocketConnector @ 0.0.0.0:8080
2007-09-26 14:51:03.671::WARN: failed Server@anonymised.com
26-sep-2007 14:51:03 org.vfny.geoserver.jetty.Start main
GRAVE: Could not start the Jetty server:
org.apache.xerces.parsers.XML11Configuration
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)

Any help please?

Thks

Justin Deoliveira-4 wrote:

So you tried both options and neither worked? When you switched your
java version how did you do it? Did you do it from the eclipse
preferences. You may have to restart eclipse for it to be picked up by
each individual project.

When running form the Start test do you get the exact same exception? Or
is it a different one?

Can you also tell me if you are working from subversion or from a source
release? Also which branch are working on, 1.5.x or trunk? If you are
working from version control can you tell me how recent your checkout is.

袁武 wrote:

Justin:

I have done according to your instructions, but the problem is still
there.
What can I do furthermore?

Hopes for more instructions!
Thanks.

2007-08-17
------------------------------------------------------------------------
袁武
------------------------------------------------------------------------
*发件人:* Justin Deoliveira
*发送时间:* 2007-08-17 14:51:52
*收件人:* 袁武
*抄送:* geoserver-devel
*主题:* Re: [Geoserver-devel] help: Context initialization failed
Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

1. Instead of running GeoServer from eclipse with Maven, use the Start
class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section "Debugging starting Jetty as a java application".

2. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

<mailto:org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

}
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17
------------------------------------------------------------------------
Yuan Wu

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/

!DSPAM:4007,46c52423220748992556831!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
!DSPAM:4007,46c54be4237398362916074!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/help%3A-Context-initialization-failed-tf4283643.html#a12900388
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi Everybody
                   I am also getting the same problem. IOm using Java 1.5
GeoServer 1.5.3 I have downloaded the source and built it with Eclipse-Maven
plugin. Now ehen I start Jetty from within eclipse I get the following
exception

2007-10-28 15:17:05.390:/geoserver:INFO: Loading Spring root
WebApplicationContext
28 Oct 15:17:05 ERROR [context.ContextLoader] - Context initialization
failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
  at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
  at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
  at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
  at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
  at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
  at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
  at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
  at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
  at org.mortbay.jetty.Server.doStart(Server.java:210)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-10-28 15:17:05.500::WARN: failed
ContextHandler@anonymised.com{/geoserver,file:/C:/eclipse/workspace/web/src/main/webapp/}
2007-10-28 15:17:05.531::INFO: Started SocketConnector @ 0.0.0.0:8080
2007-10-28 15:17:05.531::WARN: failed Server@anonymised.com
Oct 28, 2007 3:17:05 PM org.vfny.geoserver.jetty.Start main
SEVERE: Could not start the Jetty server:
org.apache.xerces.parsers.XML11Configuration
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
  at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
  at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
  at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
  at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
  at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
  at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
  at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
  at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
  at org.mortbay.jetty.Server.doStart(Server.java:210)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at org.vfny.geoserver.jetty.Start.main(Start.java:50)

Please help me out with this..

Bye
ganesh

Continuum-3 wrote:

So you tried both options and neither worked? When you switched your
java version how did you do it? Did you do it from the eclipse
preferences. You may have to restart eclipse for it to be picked up by
each individual project.

When running form the Start test do you get the exact same exception? Or
is it a different one?

Can you also tell me if you are working from subversion or from a source
release? Also which branch are working on, 1.5.x or trunk? If you are
working from version control can you tell me how recent your checkout is.

袁武 wrote:

Justin:

I have done according to your instructions, but the problem is still
there.
What can I do furthermore?

Hopes for more instructions!
Thanks.

2007-08-17
------------------------------------------------------------------------
袁武
------------------------------------------------------------------------
*发件人:* Justin Deoliveira
*发送时间:* 2007-08-17 14:51:52
*收件人:* 袁武
*抄送:* geoserver-devel
*主题:* Re: [Geoserver-devel] help: Context initialization failed
Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

1. Instead of running GeoServer from eclipse with Maven, use the Start
class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section "Debugging starting Jetty as a java application".

2. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

<mailto:org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

}
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17
------------------------------------------------------------------------
Yuan Wu

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/

!DSPAM:4007,46c52423220748992556831!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
!DSPAM:4007,46c54be4237398362916074!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/help%3A-Context-initialization-failed-tf4283643.html#a13451812
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Strange... I am only able to replicate this error in java 4 with jetty.
I think the best way to help you through this is if you jump on to the
geoserver IRC channel. "freenode" server, "geoserver" channel.

-Justin

ganeshjothikumar wrote:

Hi Everybody
                   I am also getting the same problem. IOm using Java 1.5
GeoServer 1.5.3 I have downloaded the source and built it with Eclipse-Maven
plugin. Now ehen I start Jetty from within eclipse I get the following
exception

2007-10-28 15:17:05.390:/geoserver:INFO: Loading Spring root
WebApplicationContext
28 Oct 15:17:05 ERROR [context.ContextLoader] - Context initialization
failed
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
  at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
  at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
  at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
  at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
  at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
  at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
  at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
  at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
  at org.mortbay.jetty.Server.doStart(Server.java:210)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-10-28 15:17:05.500::WARN: failed
ContextHandler@anonymised.com{/geoserver,file:/C:/eclipse/workspace/web/src/main/webapp/}
2007-10-28 15:17:05.531::INFO: Started SocketConnector @ 0.0.0.0:8080
2007-10-28 15:17:05.531::WARN: failed Server@anonymised.com
Oct 28, 2007 3:17:05 PM org.vfny.geoserver.jetty.Start main
SEVERE: Could not start the Jetty server:
org.apache.xerces.parsers.XML11Configuration
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
  at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
  at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
  at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
  at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
  at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
  at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
  at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
  at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
  at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
  at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
  at org.mortbay.jetty.Server.doStart(Server.java:210)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
  at org.vfny.geoserver.jetty.Start.main(Start.java:50)

Please help me out with this..

Bye
ganesh

Continuum-3 wrote:

So you tried both options and neither worked? When you switched your
java version how did you do it? Did you do it from the eclipse
preferences. You may have to restart eclipse for it to be picked up by
each individual project.

When running form the Start test do you get the exact same exception? Or
is it a different one?

Can you also tell me if you are working from subversion or from a source
release? Also which branch are working on, 1.5.x or trunk? If you are
working from version control can you tell me how recent your checkout is.

袁武 wrote:

Justin:

I have done according to your instructions, but the problem is still
there.
What can I do furthermore?

Hopes for more instructions!
Thanks.

2007-08-17
------------------------------------------------------------------------
袁武
------------------------------------------------------------------------
*发件人:* Justin Deoliveira
*发送时间:* 2007-08-17 14:51:52
*收件人:* 袁武
*抄送:* geoserver-devel
*主题:* Re: [Geoserver-devel] help: Context initialization failed
Hi,

I have run across this same problem and it occurs when running GeoServer
with Jetty with java 1.4. So you have two options:

1. Instead of running GeoServer from eclipse with Maven, use the Start
class located in the web module. This is explained here:

http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart

Under the section "Debugging starting Jetty as a java application".

2. Upgrade to java 5 or 6.

let us know if that helps.

-Justin

袁武 wrote:

Hi, Exports:

When I debugged GEOSERVER with Eclipse starting Jetty, I found some
error information listed as the follows:

2007-08-17 11:31:20.437:/geoserver:INFO: Loading Spring root
WebApplicationContext
17 August 11:32:40 ERROR [context.ContextLoader] - Context
initialization failed
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)
2007-08-17 11:33:26.515::WARN: Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

<mailto:org.mortbay.jetty.webapp.WebAppContext@anonymised.com{/geoserver,file:/D:/workspace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/

}
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.parsers.DOMParser. <init >(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl. <init >(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
at org.vfny.geoserver.jetty.Start.main(Start.java:50)

As a result, I failed to debug GEOSERVER.

Can someone help me out of this trouble?

Thanks in advance

2007-08-17
------------------------------------------------------------------------
Yuan Wu

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46c52423220748992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
!DSPAM:4007,46c54be4237398362916074!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org