I have just done intial setup of the geomajas project and trying to config its data source with oracle database. I am following the given example for sqlserver and POSTGIS. My oracle layerroad xml file is like this:
<bean name="layerRoads" class="org.geomajas.layer.geotools.GeoToolsLayer">
<property name="layerInfo" ref="layerRoadsInfo"/>
<property name="parameters">
<list>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="namespace" />
<property name="value" value="Oracle" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="user" />
<property name="value" value="mdsys" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="passwd" />
<property name="value" value="mdsys" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="database" />
<property name="value" value="mdsys" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="host" />
<property name="value" value="localhost" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="port" />
<property name="value" value="1521" />
</bean>
<bean class="org.geomajas.configuration.Parameter">
<property name="name" value="dbtype" />
<property name="value" value="Oracle" />
</bean>
In web.xml file I have written this
WEB-INF/example/geotools/oracle/layerRoads.xml
In pom.xml
<dependency>
<groupId>org.geotools.jdbc</groupId>
<artifactId>gt-oracle-spatial</artifactId>
<version>2.5.5</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
When I am running it it gives me this error
[Console scanner] WARN o.g.layer.geotools.DataStoreFactory - Datastore factory PostGIS(PostGIS Database) is not available
[Console scanner] WARN o.g.layer.geotools.GeoToolsLayer - The layer could not be correctly initialized: layerRoads
ception: No datastore found. Possible causes are missing factory or missing library for your datastore (e.g. database driver).
Available() method of your DataStoreFactory class to find out which libraries are needed.
factories : PostGIS