[Geoserver-devel] Oracle OCI support and geotools code base

Hi,

trying to unravel some mysteries in the Oracle OCI support:

geoserver contains a jar file gt2-oracle-oci.jar that has a OracleOCIDataStoreFactory class in in.

I cannot locate this class in the geotools codebase anywhere, and google couldnt locate a published reference.

When we tried dropping the geotools head of the oraclespatial plugin into geoserver it blew up with a "Method no found" exception.

As far as I can tell, the geoserver code is using an oracle OCI compatible update that hasnt been propagated to the geotools code base.

If anyon can shed any light on this matter I'd greatly appreciate it. The actual code would be even better. I'm happy to give it a test and check the code changes back into geotools if there is a consensus this is the right thing to do.

Cheers,

Rob Atkinson

Apologies, a bit of undocumented code switcheroos on my part. The code is
all on the 2.0.x branch of geotools. I've not yet gotten to rolling it
forward (did main and postgis though). The class is at:
http://svn.geotools.org/geotools/branches/2.0.x/gt/plugin/oraclespatial/src/org/geotools/data/oracle/OracleOCIDataStoreFactory.java
The extra jar is a bit confusing - it was a workaround to a bug in
geotools that did not read more than one line in a META-INF/services file.
So I just made a little jar that had the oci connector on its own, with a
services file. This has been fixed in geotools, so it should work now. I
believe it was already fixed on head, so if you roll forward it should be
fine. I will try to spend some time tomorrow rolling 2.0.x changes to
2.1.x

Chris

On Fri, 19 Nov 2004, Rob Atkinson wrote:

Hi,

trying to unravel some mysteries in the Oracle OCI support:

geoserver contains a jar file gt2-oracle-oci.jar that has a
OracleOCIDataStoreFactory class in in.

I cannot locate this class in the geotools codebase anywhere, and google
couldnt locate a published reference.

When we tried dropping the geotools head of the oraclespatial plugin
into geoserver it blew up with a "Method no found" exception.

As far as I can tell, the geoserver code is using an oracle OCI
compatible update that hasnt been propagated to the geotools code base.

If anyon can shed any light on this matter I'd greatly appreciate it.
The actual code would be even better. I'm happy to give it a test and
check the code changes back into geotools if there is a consensus this
is the right thing to do.

Cheers,

Rob Atkinson

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--

Ok, this is all in geotools head now. Spent a couple hours rolling stuff
forward. I dont have an oracle install at the moment, so I'd greatly
appreciate someone having a go at it. I had to do a few updates to the
OCI factory, so I may have botched something. Let me know if it doesn't
work, but it should be there. And if OCI is not in the drop down menu
then factory stuff from 2.0.x needs to be rolled forward, but I was under
the impression that it should work. You should not need an oci jar at
all, just the one oracle spatial, and it should contain two factories.

Chris

On Sat, 20 Nov 2004, Chris Holmes wrote:

Apologies, a bit of undocumented code switcheroos on my part. The code is
all on the 2.0.x branch of geotools. I've not yet gotten to rolling it
forward (did main and postgis though). The class is at:
http://svn.geotools.org/geotools/branches/2.0.x/gt/plugin/oraclespatial/src/org/geotools/data/oracle/OracleOCIDataStoreFactory.java
The extra jar is a bit confusing - it was a workaround to a bug in
geotools that did not read more than one line in a META-INF/services file.
So I just made a little jar that had the oci connector on its own, with a
services file. This has been fixed in geotools, so it should work now. I
believe it was already fixed on head, so if you roll forward it should be
fine. I will try to spend some time tomorrow rolling 2.0.x changes to
2.1.x

Chris

On Fri, 19 Nov 2004, Rob Atkinson wrote:

> Hi,
>
> trying to unravel some mysteries in the Oracle OCI support:
>
> geoserver contains a jar file gt2-oracle-oci.jar that has a
> OracleOCIDataStoreFactory class in in.
>
> I cannot locate this class in the geotools codebase anywhere, and google
> couldnt locate a published reference.
>
> When we tried dropping the geotools head of the oraclespatial plugin
> into geoserver it blew up with a "Method no found" exception.
>
> As far as I can tell, the geoserver code is using an oracle OCI
> compatible update that hasnt been propagated to the geotools code base.
>
> If anyon can shed any light on this matter I'd greatly appreciate it.
> The actual code would be even better. I'm happy to give it a test and
> check the code changes back into geotools if there is a consensus this
> is the right thing to do.
>
> Cheers,
>
> Rob Atkinson
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>

--