New ODA plugin - cannot find dataSet element [message #17859] |
Tue, 27 June 2006 05:11  |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
--nextPart2237758.QqaCUCP17y
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit
Hi,
I'm trying to develop an ODA plugin for queries against a
Mondrian OLAP database. But when starting up the plugin
from inside eclipse development environment, the console
logs this:
2006-06-27 09:50:28
org.eclipse.datatools.connectivity.oda.util.manifest.Manifes tExplorer
getDataSetElements
INFO: The ODA driver plugin.xml has no valid <dataSet> element defined in
the data source extension (org.eclipse.birt.data.oda.adapter.dtp).
The thing is, that I *do* have a dataSet element in plugin.xml. I've
tried comparing with flatfile plugin, and it should be correct.
I'm attaching my plugin.xml and manifest for my plugin. Can anyone
see what is wrong with this?
Kind regards, Per
--nextPart2237758.QqaCUCP17y
Content-Type: text/plain; name="MANIFEST.MF"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="MANIFEST.MF"
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Modrian ODA Plug-in
Bundle-SymbolicName: org.eclipse.datatools.connectivity.oda.mondrian; singleton:=true
Bundle-Version: 1.0.1
Bundle-Activator: org.eclipse.datatools.connectivity.oda.mondrian.plugin.Mondr ianPlugin
Bundle-Vendor: Forsikring og Pension
Bundle-Localization: plugin
Export-Package: org.eclipse.datatools.connectivity.oda.mondrian,
org.eclipse.datatools.connectivity.oda.mondrian.plugin
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.datatools.connectivity.oda,
org.junit;resolution:=optional
Eclipse-LazyStart: true
--nextPart2237758.QqaCUCP17y
Content-Type: text/plain; name="plugin.xml"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="plugin.xml"
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
id="org.eclipse.datatools.connectivity.oda.mondrian.extension "
name="Mondrian Extension"
point="org.eclipse.datatools.connectivity.oda.dataSource">
<dataSource
defaultDisplayName="Mondrian Data Source"
driverClass=" org.eclipse.datatools.connectivity.oda.mondrian.MondrianDriv er "
id="org.eclipse.datatools.connectivity.oda.mondrian"
odaVersion="3.0"
setThreadContextClassLoader="false">
<properties>
<propertyGroup
defaultDisplayName="Connection Properties"
name="connectionProperties">
<property
canInherit="true"
defaultDisplayName="datasource.property.jdbc.driver"
name="JDBC_DRIVER"
type="string"/>
<property
canInherit="true"
defaultDisplayName="datasource.property.jdbc.url"
name="JDBC_URL"
type="string"/>
<property
canInherit="true"
defaultDisplayName="datasource.property.jdbc.user"
name="JDBC_USER"
type="string"/>
<property
canInherit="true"
defaultDisplayName="datasource.property.jdbc.password"
name="JDBC_PASSWORD"
type="string"/>
<property
canInherit="true"
defaultDisplayName="datasource.property.mondrian.catalog"
name="MONDRIAN_CATALOG_FILE"
type="string"/>
</propertyGroup>
</properties>
</dataSource>
<dataSet
defaultDisplayName="dataset.name"
id="org.eclipse.datatools.connectivity.oda.mondrian.dataSet ">
<dataTypeMapping
nativeDataType="INT"
nativeDataTypeCode="4"
odaScalarDataType="Integer"/>
<dataTypeMapping
nativeDataType="DOUBLE"
nativeDataTypeCode="8"
odaScalarDataType="Double"/>
<dataTypeMapping
nativeDataType="STRING"
nativeDataTypeCode="12"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="DATE"
nativeDataTypeCode="91"
odaScalarDataType="Date"/>
<dataTypeMapping
nativeDataType="TIME"
nativeDataTypeCode="92"
odaScalarDataType="Time"/>
<dataTypeMapping
nativeDataType="TIMESTAMP"
nativeDataTypeCode="93"
odaScalarDataType="Timestamp"/>
<dataTypeMapping
nativeDataType="BLOB"
nativeDataTypeCode="2004"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="CLOB"
nativeDataTypeCode="2005"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="BIGDECIMAL"
nativeDataTypeCode="2"
odaScalarDataType="Decimal"/>
</dataSet>
</extension>
</plugin>
--nextPart2237758.QqaCUCP17y--
|
|
|
|
|
|
Re: New ODA plugin - cannot find dataSet element [message #17972 is a reply to message #17909] |
Wed, 28 June 2006 10:11  |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
Linda Chan wrote:
> The identifier of the plugin, a.k.a. data source extension, which is
> missing dataSet elements, is indeed listed in parenthesis in the log
> message:
>
> INFO: The ODA driver plugin.xml has no valid <dataSet> element defined
> in
> the data source extension (org.eclipse.birt.data.oda.adapter.dtp)
Man, now I feel stupid. Yes it is indeed. Sorry!
|
|
|
Re: New ODA plugin - cannot find dataSet element [message #579993 is a reply to message #17859] |
Tue, 27 June 2006 07:36  |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
I can provide some more debugging now.
In my plugin activator class in the "start(BundleContext)"
I've tried doing:
IExtensionPoint extPoint =
Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.datatools.connectivity.oda.dataSource ");
IExtension[] extensions = extPoint.getExtensions();
....debug log a lot of this
And the debug log which extensions that are registered.
I'm able to find my plugin, and I can dig out the
IConfigurationElement instances, that contain the "dataSet"
elements.
So why is "getDataSetElements" in
org.eclipse.datatools.connectivity.oda.util.manifest.Manifes tExplorer
complaining about me not having dataSet in my plugin descriptor?
/Per
|
|
|
Re: New ODA plugin - cannot find dataSet element [message #580015 is a reply to message #17872] |
Tue, 27 June 2006 07:56  |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
Ooh, found the "problem".
Actually, there was no problem. The message was about other ODA
plugins extending the same extension point but not defining
dataSet elements. Would've been helpfull with an identifier of
the plugin in the INFO log about missing dataSet elements :-)
|
|
|
Re: New ODA plugin - cannot find dataSet element [message #580046 is a reply to message #17884] |
Tue, 27 June 2006 16:27  |
Eclipse User |
|
|
|
>> Would've been helpfull with an identifier of the plugin in the INFO
log about missing dataSet elements
The identifier of the plugin, a.k.a. data source extension, which is
missing dataSet elements, is indeed listed in parenthesis in the log
message:
INFO: The ODA driver plugin.xml has no valid <dataSet> element defined
in
the data source extension (org.eclipse.birt.data.oda.adapter.dtp)
Linda
Per Olesen wrote:
> Ooh, found the "problem".
>
> Actually, there was no problem. The message was about other ODA
> plugins extending the same extension point but not defining
> dataSet elements. Would've been helpfull with an identifier of
> the plugin in the INFO log about missing dataSet elements :-)
|
|
|
Re: New ODA plugin - cannot find dataSet element [message #580146 is a reply to message #17909] |
Wed, 28 June 2006 10:11  |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
Linda Chan wrote:
> The identifier of the plugin, a.k.a. data source extension, which is
> missing dataSet elements, is indeed listed in parenthesis in the log
> message:
>
> INFO: The ODA driver plugin.xml has no valid <dataSet> element defined
> in
> the data source extension (org.eclipse.birt.data.oda.adapter.dtp)
Man, now I feel stupid. Yes it is indeed. Sorry!
|
|
|
Powered by
FUDForum. Page generated in 0.25594 seconds