Apologies in advance (for asking a question in my heart of hearts I know
to be stupid) but I am trying to run geoserver on Resin 3.0.3 and getting
the following error. The class libraries all appear to be in the correct
place and the classloader for Resin should load these, by default, but I
continue to get this error.
Clearly I have misconfigured something. Can anyone suggest what?
Thanks.
Sean McLinden
Allegheny County Health Department
500 Servlet Exception
java.lang.NullPointerException
at
org.vfny.geoserver.config.Log4JFormatter.init(Log4JFormatter.java:199)
at
org.vfny.geoserver.config.WfsConfig.setLogLevel(WfsConfig.java:341)
at
org.vfny.geoserver.config.WfsConfig.getInstance(WfsConfig.java:146)
at
org.vfny.geoserver.config.WfsConfig.getInstance(WfsConfig.java:95)
at
org.vfny.geoserver.config.ConfigInfo.readWfsTags(ConfigInfo.java:174)
at
org.vfny.geoserver.config.ConfigInfo.<init>(ConfigInfo.java:86)
at
org.vfny.geoserver.config.ConfigInfo.getInstance(ConfigInfo.java:133)
at
org.vfny.geoserver.servlets.FreefsLog.init(FreefsLog.java:48)
at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:478)
at
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153)
at
com.caucho.server.webapp.Application.start(Application.java:1284)
at
com.caucho.server.webapp.ApplicationEntry.createApplicationInt(ApplicationEntry.java:664)
at
com.caucho.server.webapp.ApplicationEntry.createApplication(ApplicationEntry.java:424)
at
com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:714)
at
com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:597)
at
com.caucho.server.host.Host.buildInvocation(Host.java:446)
at
com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:263)
at
com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:462)
at
com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:181)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:248)
at
com.caucho.server.port.WorkerThread.run(WorkerThread.java:129)
at java.lang.Thread.run(Thread.java:536)
Hmmm... That's an interesting error. Have you tried it on other servlet
containers, or just resin3.0.3? I've tested on resin 2.1.8, and things
work fine. Actually, it might have to do with your
JAVA_HOME/jre/lib/logging.properties file. We try to make it so users
don't have to deal with it, but the error seems to be related to the
handlers in that file. My guess is that you don't have a line (or at
least an uncommented one) like:
handlers=java.util.logging.ConsoleHandler. If there is not then add one.
Could you send me your logging.properties file if that doesn't fix the
problem? I was sort of able to reproduce the error, but on 2.1.8 it
doesn't die, it just does not log. So yes, my suggestions are add a
handler to logging.properties if it's not there, or try a different
servlet container. Or you could just comment out lines 341 and 342 of
WfsConfig, and that might fix things, though you wouldn't have logging
then. Hope this helps. I'll try out 3.0.3 next week sometime.
Chris
On Thu, 30 Oct 2003 mclinden@anonymised.com wrote:
Apologies in advance (for asking a question in my heart of hearts I know
to be stupid) but I am trying to run geoserver on Resin 3.0.3 and getting
the following error. The class libraries all appear to be in the correct
place and the classloader for Resin should load these, by default, but I
continue to get this error.
Clearly I have misconfigured something. Can anyone suggest what?
Thanks.
Sean McLinden
Allegheny County Health Department
500 Servlet Exception
java.lang.NullPointerException
at
org.vfny.geoserver.config.Log4JFormatter.init(Log4JFormatter.java:199)
at
org.vfny.geoserver.config.WfsConfig.setLogLevel(WfsConfig.java:341)
at
org.vfny.geoserver.config.WfsConfig.getInstance(WfsConfig.java:146)
at
org.vfny.geoserver.config.WfsConfig.getInstance(WfsConfig.java:95)
at
org.vfny.geoserver.config.ConfigInfo.readWfsTags(ConfigInfo.java:174)
at
org.vfny.geoserver.config.ConfigInfo.<init>(ConfigInfo.java:86)
at
org.vfny.geoserver.config.ConfigInfo.getInstance(ConfigInfo.java:133)
at
org.vfny.geoserver.servlets.FreefsLog.init(FreefsLog.java:48)
at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:478)
at
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153)
at
com.caucho.server.webapp.Application.start(Application.java:1284)
at
com.caucho.server.webapp.ApplicationEntry.createApplicationInt(ApplicationEntry.java:664)
at
com.caucho.server.webapp.ApplicationEntry.createApplication(ApplicationEntry.java:424)
at
com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:714)
at
com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:597)
at
com.caucho.server.host.Host.buildInvocation(Host.java:446)
at
com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:263)
at
com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:462)
at
com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:181)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:248)
at
com.caucho.server.port.WorkerThread.run(WorkerThread.java:129)
at java.lang.Thread.run(Thread.java:536)
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--