Dear GeoServer users,
I have GeoServer 1.6.2 running on JBoss 4.2.2. I started from
geoserver.war file and removed some jars (namely postgresql*.jar,
postgis*.jar, concurrent*.jar, hsqldb*.jar) to avoid conflict, and the
data directory because it is located elsewhere.
1) About logging
I tried to remove the log4.jar from the War but GeoServer kills all
JBoss settings
what a pity! What's the best way to handle logging
in GeoServer/JBoss?
Then I selected the production profile and checked the "suppress
stdout logging" option. But I still have numerous "select
"id","name",encode(asBinary(force_2d("geom"),"XDR"),"base64")" lines
in my console. So I tried to had "log4j.appender.stdout.Threshold=OFF"
to the PRODUCTION_LOGGING.properties, but I still have those logs in
my console.
What can I do to remove those logs from the console?
2) About security: is it possible to bind GeoServer authentication to
a JBoss security domain?
3) About database: is it possible to bind GeoServer to PostGIS
datasource defined in JBoss and accessible in its JNDI registry?
Thanks for you help,
Gérald
Hi Gérald,
Answers inline.
Gérald Quintana wrote:
Dear GeoServer users,
I have GeoServer 1.6.2 running on JBoss 4.2.2. I started from
geoserver.war file and removed some jars (namely postgresql*.jar,
postgis*.jar, concurrent*.jar, hsqldb*.jar) to avoid conflict, and the
data directory because it is located elsewhere.
1) About logging
I tried to remove the log4.jar from the War but GeoServer kills all
JBoss settings
what a pity! What's the best way to handle logging
in GeoServer/JBoss?
Unfortunately logging is not something GeoServer does very well, due mostly to the fact that GeoTools (the underlying GIS library) forces us to do some very convoluted things.. I actually dont fully understand it myself, someone else should be better able to explain exactly how it works.
Then I selected the production profile and checked the "suppress
stdout logging" option. But I still have numerous "select
"id","name",encode(asBinary(force_2d("geom"),"XDR"),"base64")" lines
in my console. So I tried to had "log4j.appender.stdout.Threshold=OFF"
to the PRODUCTION_LOGGING.properties, but I still have those logs in
my console.
What can I do to remove those logs from the console?
2) About security: is it possible to bind GeoServer authentication to
a JBoss security domain?
Not yet. With the security library we use (Acegi) it is possible, but it is not something we have made configurable by users. If someone knowledge of Spring and Acegi, they could probably do it.
3) About database: is it possible to bind GeoServer to PostGIS
datasource defined in JBoss and accessible in its JNDI registry?
With GeoServer 1.6.x this is now possible, although again its not something configurable though the user interface. Although one is able to configure it.
Andrea (the developer who implemented this support) should better be able to answer.
Thanks for you help,
Gérald
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,47ebd8c195958362916074!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
On Mar 27, 2008, at 10:26 AM, Gérald Quintana wrote:
1) About logging
I tried to remove the log4.jar from the War but GeoServer kills all
JBoss settings
what a pity! What's the best way to handle logging
in GeoServer/JBoss?
I think the best way is to turn off GeoServer specific logging altogether, but there isn't a way to configure this yet. See:
http://jira.codehaus.org/browse/GEOS-1671
Take a look at:
http://svn.codehaus.org/geoserver/tags/1.6.2/geoserver/main/src/main/java/org/vfny/geoserver/global/GeoServer.java
In an experiment, I set org.vfny.geoserver.global.GeoServer.suppressLoggingConfiguration to true and recompiled and that has worked well for a log4j config managed by JBoss. However, I haven't decided what mechanism to use to configure this setting, so I haven't supplied a patch yet.
Cheers,
Ryan
2008/3/28, Ryan Hofschneider <ryan.hofschneider@anonymised.com>:
Take a look at:
http://svn.codehaus.org/geoserver/tags/1.6.2/geoserver/main/src/main/java/org/vfny/geoserver/global/GeoServer.java
In an experiment, I set
org.vfny.geoserver.global.GeoServer.suppressLoggingConfiguration to
true and recompiled and that has worked well for a log4j config
managed by JBoss. However, I haven't decided what mechanism to use to
configure this setting, so I haven't supplied a patch yet.
Your trick is very interesting, I'll test it as soon as I can.
Thanks for it.
Gérald