Thanks Andrea,
I'm just learning maven and spring so I've taken a little while to
understand what's going on. One of the biggest difficulties is
variations in documentation and advice available on the web. To activate
Oracle using ojdbc14 I have read
-Doracle.jdbc
-Doracle.JDBC
-Djdbc.oracle
-Doracle.jdbc=true
-Doracle
-Doracle=true
And now you've given me -Poracle and -Poracle-old.
William the third was right when he said the only true documentation is
the source code.
It also doesn't help that the version of ojdbc14 distributed in the
geoserver-1.7.1-oracle-plugin.zip is version 10.2.0.2.0 and the
dependency in the root pom says 10.2.0.3.0. This is made more
interesting by the fact that the project documentation says that this
version, the one in the plugin, is sealed and can't be used. That is
clearly wrong.
I am fighting a losing battle against a 140million/year IT dept to use
open source and none of this is helping.
Anyway, it's taken me about 6 hours to become productive with spring and
maven, so now I'll get on and fix some of the issues.
Regarding the KMLMapProducer, that's not really the issue. It is the KML
reflection. It is clearly not backwardly compatible between 1.7.1 and
1.7.0. KML reflection is no longer honouring my overrides of KMLScore
and KMLAttr that I was using in 1.7.0. Also, the format of the URI
returned to GE to enable it to get the data has changed - most notably
some of the URL is escaped and some of it isn't.
I haven't decided yet whether to call this a bug or just accept that my
needs are different. Either way, I'll have to override the KML
reflection for my client sites.
Thanks for your response.
Regards
Stuart
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Thursday, 11 December 2008 17:36
To: Stuart A. Mitchell
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] Using ojdbc14.jar in eclipse debug
environment
Stuart A. Mitchell ha scritto:
Hi all,
I am using GeoServer to provide real time features and attributes to
Google Pro from a terabyte corporate Oracle Spatial database.
I have set up side by side installations of gs1.7.0 and 1.7.1 and all
works fine except for some nasties with the updated KMLMapProducer
making decisions for me,
It would help to know what behaviour of map producer you'd like to
control better.
so now I'm going to trace through the code and
work out what's going on. I have searched the forum using
"ojdbc14 eclipse" bug only got one IRC log that didn't help. Maybe
there
are better keywords for me to use.
You add the driver but you did not add the datastore. If you're using
Maven to create your eclipse projects use
mvn eclipse:eclipse -Poracle-old
if you're using the classic oracle data store, and
mvn eclipse:eclipse -Poracle
if you are trying out the ng one (soon to become the only
choice, the classic one is going to be abandoned in a matter
of months).
That will rebuild your eclipse projects and add the proper
dependencies onto the Oracle data store.
And then yes, add the jdbc driver to the mix and run.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.