From: arl <ar...@da...> - 2007-09-26 12:55:12
|
Hi, I'm in the same trouble yet working on jsdk1.5, Geoserver 1.5.3, Windows an= d 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 =09at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) =09at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) =09at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source) =09at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknow= n Source) =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumen= tBuilder(XmlBeanDefinitionReader.java:218) =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefin= itions(XmlBeanDefinitionReader.java:155) =09at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.load= BeanDefinitions(AbstractBeanDefinitionReader.java:125) =09at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.load= BeanDefinitions(AbstractBeanDefinitionReader.java:141) =09at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDe= finitions(XmlWebApplicationContext.java:126) =09at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDe= finitions(XmlWebApplicationContext.java:94) =09at org.springframework.context.support.AbstractRefreshableApplicationContext.r= efreshBeanFactory(AbstractRefreshableApplicationContext.java:89) =09at org.springframework.context.support.AbstractApplicationContext.refresh(Abst= ractApplicationContext.java:268) =09at org.springframework.web.context.support.AbstractRefreshableWebApplicationCo= ntext.refresh(AbstractRefreshableWebApplicationContext.java:134) =09at org.springframework.web.context.ContextLoader.createWebApplicationContext(C= ontextLoader.java:230) =09at org.springframework.web.context.ContextLoader.initWebApplicationContext(Con= textLoader.java:156) =09at org.springframework.web.context.ContextLoaderListener.contextInitialized(Co= ntextLoaderListener.java:48) =09at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:4= 50) =09at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129= ) =09at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420) =09at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457= ) =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:= 38) =09at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119) =09at org.mortbay.jetty.Server.doStart(Server.java:210) =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:= 38) =09at org.vfny.geoserver.jetty.Start.main(Start.java:50) 2007-09-26 14:51:03.671::WARN: failed ContextHandler@504ec1{/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@69a4cb 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 =09at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) Any help please? Thks Justin Deoliveira-4 wrote: >=20 > 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. >=20 > When running form the Start test do you get the exact same exception? Or > is it a different one? >=20 > 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. >=20 >=20 > =E8=A2=81=E6=AD=A6 wrote: >> Justin: >> =20 >> =20 >> I have done according to your instructions, but the problem is still >> there. >> What can I do furthermore? >> =20 >> Hopes for more instructions! >> Thanks. >> =20 >> 2007-08-17 >> ------------------------------------------------------------------------ >> =E8=A2=81=E6=AD=A6 >> ------------------------------------------------------------------------ >> *=E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A* Justin Deoliveira >> *=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=EF=BC=9A* 2007-08-17 14:51:52 >> *=E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A* =E8=A2=81=E6=AD=A6 >> *=E6=8A=84=E9=80=81=EF=BC=9A* geoserver-devel >> *=E4=B8=BB=E9=A2=98=EF=BC=9A* Re: [Geoserver-devel] help: Context initia= lization failed >> Hi, >> =20 >> I have run across this same problem and it occurs when running GeoServer >> with Jetty with java 1.4. So you have two options: >> =20 >> 1. Instead of running GeoServer from eclipse with Maven, use the Start >> class located in the web module. This is explained here: >> =20 >> http://docs.codehaus.org/display/GEOSDOC/3+Eclipse+Quickstart >> =20 >> Under the section "Debugging starting Jetty as a java application". >> =20 >> 2. Upgrade to java 5 or 6. >> =20 >> let us know if that helps. >> =20 >> -Justin >> =20 >> =E8=A2=81=E6=AD=A6 wrote: >>> Hi, Exports: >>> =20 >>> When I debugged GEOSERVER with Eclipse starting Jetty, I found some >>> error information listed as the follows: >>> =20 >>> 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(Un= known >>> Source) >>> at >>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDoc= umentBuilder(XmlBeanDefinitionReader.java:218) >>> at >>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanD= efinitions(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.loadBe= anDefinitions(XmlWebApplicationContext.java:126) >>> at >>> org.springframework.web.context.support.XmlWebApplicationContext.loadBe= anDefinitions(XmlWebApplicationContext.java:94) >>> at >>> org.springframework.context.support.AbstractRefreshableApplicationConte= xt.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) >>> at >>> org.springframework.context.support.AbstractApplicationContext.refresh(= AbstractApplicationContext.java:268) >>> at >>> org.springframework.web.context.support.AbstractRefreshableWebApplicati= onContext.refresh(AbstractRefreshableWebApplicationContext.java:134) >>> at >>> org.springframework.web.context.ContextLoader.createWebApplicationConte= xt(ContextLoader.java:230) >>> at >>> org.springframework.web.context.ContextLoader.initWebApplicationContext= (ContextLoader.java:156) >>> at >>> org.springframework.web.context.ContextLoaderListener.contextInitialize= d(ContextLoaderListener.java:48) >>> at >>> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.ja= va: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:42= 1) >>> 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:11= 9) >>> 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@3f4ebd{/geoserver,file:/D:/works= pace/Java/GISGrid/geos-1.5.3/geoserver/web/src/main/webapp/ >>>=20 >> <mailto:org.mortbay.jetty.webapp.WebAppContext@3f4ebd{/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(Un= known >>> Source) >>> at >>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDoc= umentBuilder(XmlBeanDefinitionReader.java:218) >>> at >>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanD= efinitions(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.loadBe= anDefinitions(XmlWebApplicationContext.java:126) >>> at >>> org.springframework.web.context.support.XmlWebApplicationContext.loadBe= anDefinitions(XmlWebApplicationContext.java:94) >>> at >>> org.springframework.context.support.AbstractRefreshableApplicationConte= xt.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) >>> at >>> org.springframework.context.support.AbstractApplicationContext.refresh(= AbstractApplicationContext.java:268) >>> at >>> org.springframework.web.context.support.AbstractRefreshableWebApplicati= onContext.refresh(AbstractRefreshableWebApplicationContext.java:134) >>> at >>> org.springframework.web.context.ContextLoader.createWebApplicationConte= xt(ContextLoader.java:230) >>> at >>> org.springframework.web.context.ContextLoader.initWebApplicationContext= (ContextLoader.java:156) >>> at >>> org.springframework.web.context.ContextLoaderListener.contextInitialize= d(ContextLoaderListener.java:48) >>> at >>> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.ja= va: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:42= 1) >>> 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:11= 9) >>> 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)=20 >>> =20 >>> As a result, I failed to debug GEOSERVER. >>> =20 >>> Can someone help me out of this trouble? >>> =20 >>> Thanks in advance >>> =20 >>> 2007-08-17 >>> -----------------------------------------------------------------------= - >>> Yuan Wu=20 >>>=20 >>>=20 >>>=20 >>> -----------------------------------------------------------------------= - >>>=20 >>> -----------------------------------------------------------------------= -- >>> 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/ >>>=20 >>> !DSPAM:4007,46c52423220748992556831! >>>=20 >>>=20 >>> -----------------------------------------------------------------------= - >>>=20 >>> _______________________________________________ >>> Geoserver-devel mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel >>>=20 >>>=20 >>> !DSPAM:4007,46c52423220748992556831! >> =20 >> =20 >> --=20 >> Justin Deoliveira >> The Open Planning Project >> http://topp.openplans.org >> !DSPAM:4007,46c54be4237398362916074! >=20 >=20 > --=20 > Justin Deoliveira > The Open Planning Project > http://topp.openplans.org >=20 > ------------------------------------------------------------------------- > 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-devel >=20 >=20 --=20 View this message in context: http://www.nabble.com/help%3A-Context-initial= ization-failed-tf4283643.html#a12900388 Sent from the GeoServer - Dev mailing list archive at Nabble.com. |