Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Oracle plugin fail

I'm trying to make Oracle Connection by code using next snnipet:

URL connectionURL = new
URL("jdbc:oracle:thin:***/***@[address]:1521:[SID]");
IService service = new
OracleServiceExtension().createService(connectionURL, null);
List<? extends IGeoResource> resources = service.resources(new
NullProgressMonitor());

Inspecting wiki I think that this is the way, but I'm not sure.

My MANIFEST.MF looks like:

Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 net.refractions.udig.project;bundle-version="1.2.0",
 net.refractions.udig.catalog.oracle;bundle-version="1.2.0",
 net.refractions.udig.project.ui;bundle-version="1.2.0"

but Eclipse can't solves the import for 'OracleServiceExtension'.

Putting import line by hand:

import net.refractions.udig.catalog.internal.oracle.OracleServiceExtension;

Shows next error message:

"The type OracleServiceExtension is not accessible due to restriction on
required library
D:\uDig\1.2RC3_testing\target\udig_sdk\plugins\net.refractions.udig.catalog.oracle_1.2.0.201005181202.jar"

If try quick fix and test the plugin, I'm getting the error:

java.lang.NoClassDefFoundError:
net/refractions/udig/catalog/internal/oracle/OracleServiceImpl

Anybody has some idea on where I'm missing?

Very thanks in advance.

-- 
Javier Cámara Pérez
Área de Ejecución de Proyectos SIG
Subdirección de Sistemas de Información
E.P. Desarrollo Agrario y Pesquero 
Oficina Provincial de Córdoba
Avda. Menéndez Pidal s/n
14004 - Córdoba
Telf: 50.59.12 / 957.00.59.12 | Skype: jcamaradap



Back to the top