We put a method in the GeoTools class allowing you to configure the Initial 
context. So if you grab the value from there; and if GeoServer can pass the 
initial context int) it should all work.

This was used to look up JDNI DataSource for working with Oracle.

-- 
Jody Garnett

On Thursday, 12 May 2011 at 12:46 PM, Justin Deoliveira wrote: 
> Yeah, I can't actually figure out how to suppress this error, but it is not 
> fatal. The extension should function without defining an initial context in 
> the servlet container.
> 
> On Wed, May 11, 2011 at 8:54 AM, web <[email protected]> wrote:
> > Hi Justin,
> > 
> > Thanks for the link. I unzipped these jar files into web-inf/lib and 
> > restarted Geoserver. I've seen that some files were created into the data 
> > dir: hibernate.properties and geoserver.db.properties. 
> > When I restart Geoserver I got the following error. It says I should define 
> > an env. property for a class name. Do you know what is this about?
> > 
> > 11 mai 16:49:55 INFO [config.GeoServerPropertyConfigurer] - Loading 
> > properties file from URL 
> > [file:/C:/geoserver-2.1.x-latest-bin/geoserver-2.1-SNAPSHOT/data_di
> > r/hibernate.properties]
> > 11 mai 16:49:57 WARN [impl.SessionFactoryObjectFactory] - Could not bind 
> > factory to JNDI
> > javax.naming.NoInitialContextException: Need to specify class name in 
> > environment or system property, or as an applet parameter, or in an 
> > application resource f
> > ile:  java.naming.factory.initial
> >  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
> >  at javax.naming.InitialContext.getDefaultInitCtx(Initi! alContext.java:288)
> >  at 
> > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
> >  at javax.naming.InitialContext.getNameParser(InitialContext.java:480)
> >  at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
> >  at 
> > org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
> >  at 
> > org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
> >  at org.hibernate.cfg.Configuration.buildSessionFactor! 
> > y(Configuration.java:1300)
> >  at 
> > org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
> >  
> 
> 
> -- 
> Justin Deoliveira
> OpenGeo - http://opengeo.org
> Enterprise support for open source geospatial.
> 
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
> 
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to