Ok, upgrading the compiler compliance level wont be enough.
Unfortunately you have to physically upgrade your jdk to use a java 1.5 jdk.
Also... I am still not sure exactly how you are trying to run GeoServer.
Is the main class you are running called:
"org.vfny.geoserver.jetty.Start"
Or is it called:
"org.codehaus.classworlds.Launcher"
袁武 wrote:
It was using Jetty as a java application that I found these error
information all the time.
According to your instructions, I update Java Compiler compliance Level
from 1.4 to 5.0 in eclipse, then build clean , and finially build
install but it didn't work.I work with a source-released geoserver 1.5.3
2007-08-17
------------------------------------------------------------------------
袁武
------------------------------------------------------------------------
*发件人:* Justin Deoliveira
*发送时间:* 2007-08-17 15:24:42
*收件人:* 袁武
*抄送:* geoserver-devel
*主题:* Re: [Geoserver-devel] help: Context initialization failed
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 failedjava.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)
> atorg.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> Source)
> atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
> atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
> atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
> atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
> atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
> atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
> atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
> atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
> atorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
> atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
> atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
> atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
> atorg.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
> atorg.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
> atorg.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)
> atorg.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 contextorg.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)
> atorg.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> Source)
> atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:218)
> atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
> atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
> atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
> atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
> atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
> atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
> atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
> atorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
> atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
> atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
> atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
> atorg.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
> atorg.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
> atorg.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)
> atorg.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
!DSPAM:4007,46c552d0240926491211187!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org