From: Jacopo B. <jac...@sy...> - 2007-09-25 15:22:46
|
Hi Jody, In this moment I can't try your suggestion because I'm very very busy with = my work. I'm using 5.xTomcat, now I0m trying to use epsg-postgres. Thx. Jacopo -----Messaggio originale----- Da: Jody Garnett [mailto:jga...@re...]=20 Inviato: luned=EC 24 settembre 2007 17.55 A: Jacopo Boari Cc: 'geo...@li...' Oggetto: Registering a JNDI context does not always work (not always right) The naming used by your JNDI context is being constructed wrong; perhaps yo= ur application container expects names of the form "jdbc:EPSG"? The Initia= lContext.combineName method should be used by GeoTools but that currently i= s not the case. You can "fix" this problem by defining the datasource name used for CRS_AUT= HORITIES in the system wide GeoTools.init( Hints ) method. But you are goin= g to be only the second person to try this so *please* report back success/= failure. Everyone is going to be crazy / busy this week at FOSS4G2007 conference; bu= t I am really interested in making sure this issue is resolved and the only= way for me to do it is to have people such as your self try GeoTools in a = range of application containers. Out of curiosity what application container are you using? Jody PS. Sometimes application contains do not take kindly to libraries register= ing new data sources on their own; it that case you will need to register y= our EPSG database in you application server configuration and then stuff th= e value into geotools using the init( Hint ) thing described above. GeoTool= s only goes and makes its own HSQL database if it cannot find an existing o= ne. PPS. You may try using one of epsg-orace, epsg-postgres, epsg-access if you= have a formal database of that sort around already. Jacopo Boari wrote: > Hi list, > I'm trying to use the Geotools' hsql plugin bet when my WebApp start=20 > there are two problems. > =20 > 1 - The application don't publish the requested map. > 2 - A NameNotFoundException > =20 > Anybody know why? > =20 > Thanks in advance. > Jacopo > =20 > The exception's test is: > > =20 > > 24-set-2007 11.01.50 null createBackingStore > > AVVERTENZA: Failed to bind a "jdbc/EPSG" entry. > > __ > > _javax.naming.NameNotFoundException_: Name jdbc is not bound in this=20 > Context > > at org.apache.naming.NamingContext.bind(_NamingContext.java:842_) > > at org.apache.naming.NamingContext.bind(_NamingContext.java:170_) > > at org.apache.naming.NamingContext.bind(_NamingContext.java:186_) > > at org.apache.naming.SelectorContext.bind(_SelectorContext.java:170_) > > at javax.naming.InitialContext.bind(_InitialContext.java:359_) > > at > org.geotools.referencing.factory.epsg.DefaultFactory.createFactory(_De > faultFactory.java:310_) > > at > org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStor > e(_DefaultFactory.java:341_) > > at > org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingSt > ore(_DeferredAuthorityFactory.java:188_) > > at > org.geotools.referencing.factory.BufferedAuthorityFactory.isReady(_Buf > feredAuthorityFactory.java:206_) > > at > org.geotools.referencing.factory.DeferredAuthorityFactory.isReady(_Def > erredAuthorityFactory.java:176_) > > at > org.geotools.factory.FactoryRegistry$1.filter(_FactoryRegistry.java:86 > _) > > at=20 > javax.imageio.spi.FilterIterator.advance(_ServiceRegistry.java:793_) > > at javax.imageio.spi.FilterIterator.<init>(_ServiceRegistry.java:787_) > > at > javax.imageio.spi.ServiceRegistry.getServiceProviders(_ServiceRegistry > .java:491_) > > at > org.geotools.factory.FactoryRegistry.getServiceProviders(_FactoryRegis > try.java:126_) > > at > org.geotools.factory.FactoryRegistry.getServiceProvider(_FactoryRegist > ry.java:223_) > > at > org.geotools.factory.FactoryRegistry.getServiceProvider(_FactoryRegist > ry.java:202_) > > at > org.geotools.factory.FactoryCreator.getServiceProvider(_FactoryCreator > .java:95_) > > at > org.geotools.referencing.FactoryFinder.getCoordinateOperationAuthority > Factory(_FactoryFinder.java:405_) > > at > org.geotools.referencing.operation.AuthorityBackedFactory.getAuthority > Factory(_AuthorityBackedFactory.java:124_) > > at > org.geotools.referencing.operation.AuthorityBackedFactory.isReady(_Aut > horityBackedFactory.java:240_) > > at > org.geotools.factory.FactoryRegistry$1.filter(_FactoryRegistry.java:86 > _) > > at=20 > javax.imageio.spi.FilterIterator.advance(_ServiceRegistry.java:793_) > > at javax.imageio.spi.FilterIterator.<init>(_ServiceRegistry.java:787_) > > at > javax.imageio.spi.ServiceRegistry.getServiceProviders(_ServiceRegistry > .java:491_) > > at > org.geotools.factory.FactoryRegistry.getServiceProviders(_FactoryRegis > try.java:126_) > > at > org.geotools.factory.FactoryRegistry.getServiceProvider(_FactoryRegist > ry.java:223_) > > at > org.geotools.factory.FactoryRegistry.getServiceProvider(_FactoryRegist > ry.java:202_) > > at > org.geotools.factory.FactoryCreator.getServiceProvider(_FactoryCreator > .java:95_) > > at > org.geotools.referencing.FactoryFinder.getCoordinateOperationFactory(_ > FactoryFinder.java:280_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.initWmsData(_Sess > ionInitializer.java:537_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.init(_SessionInit > ializer.java:398_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.setHttpSession(_S > essionInitializer.java:92_) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. > java:39_) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces > sorImpl.java:25_) > > at java.lang.reflect.Method.invoke(_Method.java:585_) > > at > org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(_JspRunt > imeLibrary.java:663_) > > at org.apache.jsp.index_jsp._jspService(_index_jsp.java:136_) > > at=20 > org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:97_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_) > > at > org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper > .java:332_) > > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:3 > 14_) > > at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:264_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl > icationFilterChain.java:252_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF > ilterChain.java:173_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:264_) > > at > org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(_Filt > erSecurityInterceptor.java:107_) > > at > org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(_Fi > lterSecurityInterceptor.java:72_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(_ExceptionTra > nslationFilter.java:110_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFi > lter(_SecurityContextHolderAwareRequestFilter.java:81_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.AbstractProcessingFilter.doFilter(_AbstractProces > singFilter.java:217_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.logout.LogoutFilter.doFilter(_LogoutFilter.java:1 > 06_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter > (_HttpSessionContextIntegrationFilter.java:229_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.util.FilterChainProxy.doFilter(_FilterChainProxy.jav > a:148_) > > at > org.acegisecurity.util.FilterToBeanProxy.doFilter(_FilterToBeanProxy.j > ava:98_) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl > icationFilterChain.java:202_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF > ilterChain.java:173_) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperV > alve.java:213_) > > at > org.apache.catalina.core.StandardContextValve.invoke(_StandardContextV > alve.java:178_) > > at > org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.j > ava:126_) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.j > ava:105_) > > at > org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineVal > ve.java:107_) > > at > org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.jav > a:148_) > > at > org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java > :869_) > > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr > ocessConnection(_Http11BaseProtocol.java:664_) > > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(_PoolTcpEndpo > int.java:527_) > > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(_LeaderFol > lowerWorkerThread.java:80_) > > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(_ThreadP > ool.java:684_) > > at java.lang.Thread.run(_Thread.java:595_) > > 24-set-2007 11.01.51 null createBackingStore > > AVVERTENZA: Failed to bind a "jdbc/EPSG" entry. > > __ > > _javax.naming.NameNotFoundException_: Name jdbc is not bound in this=20 > Context > > at org.apache.naming.NamingContext.bind(_NamingContext.java:842_) > > at org.apache.naming.NamingContext.bind(_NamingContext.java:170_) > > at org.apache.naming.NamingContext.bind(_NamingContext.java:186_) > > at org.apache.naming.SelectorContext.bind(_SelectorContext.java:170_) > > at javax.naming.InitialContext.bind(_InitialContext.java:359_) > > at > org.geotools.referencing.factory.epsg.DefaultFactory.createFactory(_De > faultFactory.java:310_) > > at > org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStor > e(_DefaultFactory.java:341_) > > at > org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingSt > ore(_DeferredAuthorityFactory.java:188_) > > at > org.geotools.referencing.factory.BufferedAuthorityFactory.createFromCo > ordinateReferenceSystemCodes(_BufferedAuthorityFactory.java:917_) > > at > org.geotools.referencing.operation.AuthorityBackedFactory.createFromCo > ordinateReferenceSystemCodes(_AuthorityBackedFactory.java:226_) > > at > org.geotools.referencing.operation.AuthorityBackedFactory.createOperat > ion(_AuthorityBackedFactory.java:163_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.initWmsData(_Sess > ionInitializer.java:540_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.init(_SessionInit > ializer.java:398_) > > at > it.sysgroup.geoplatform.data.util.SessionInitializer.setHttpSession(_S > essionInitializer.java:92_) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. > java:39_) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces > sorImpl.java:25_) > > at java.lang.reflect.Method.invoke(_Method.java:585_) > > at > org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(_JspRunt > imeLibrary.java:663_) > > at org.apache.jsp.index_jsp._jspService(_index_jsp.java:136_) > > at=20 > org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:97_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_) > > at > org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper > .java:332_) > > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:3 > 14_) > > at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:264_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl > icationFilterChain.java:252_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF > ilterChain.java:173_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:264_) > > at > org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(_Filt > erSecurityInterceptor.java:107_) > > at > org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(_Fi > lterSecurityInterceptor.java:72_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(_ExceptionTra > nslationFilter.java:110_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFi > lter(_SecurityContextHolderAwareRequestFilter.java:81_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.AbstractProcessingFilter.doFilter(_AbstractProces > singFilter.java:217_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.ui.logout.LogoutFilter.doFilter(_LogoutFilter.java:1 > 06_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter > (_HttpSessionContextIntegrationFilter.java:229_) > > at > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(_F > ilterChainProxy.java:274_) > > at > org.acegisecurity.util.FilterChainProxy.doFilter(_FilterChainProxy.jav > a:148_) > > at > org.acegisecurity.util.FilterToBeanProxy.doFilter(_FilterToBeanProxy.j > ava:98_) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl > icationFilterChain.java:202_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF > ilterChain.java:173_) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperV > alve.java:213_) > > at > org.apache.catalina.core.StandardContextValve.invoke(_StandardContextV > alve.java:178_) > > at > org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.j > ava:126_) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.j > ava:105_) > > at > org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineVal > ve.java:107_) > > at > org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.jav > a:148_) > > at > org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java > :869_) > > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr > ocessConnection(_Http11BaseProtocol.java:664_) > > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(_PoolTcpEndpo > int.java:527_) > > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(_LeaderFol > lowerWorkerThread.java:80_) > > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(_ThreadP > ool.java:684_) > > at java.lang.Thread.run(_Thread.java:595_) > > ---------------------------------------------------------------------- > -- > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Microsoft Defy all challenges.=20 > Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > =20 |