v-leaflet-draw

Caused by: java.lang.ClassNotFoundException: org.vaadin.addon.leaflet.client.LeafletControlState
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
… 50 more

is thrown for the following code

draw = new LDraw();

can anyone help?

I stumbled upon that just a couple of hours ago too. Seems the v-leaflet-draw addon is incompatible to v-leaflet version 0.6.3. Try using 0.6.1 instead and at least it compiles, although I couldn’t get it to do any actual drawing yet…

Hi,

Created a note about this to github project https://github.com/mstahv/v-leaflet-draw/issues/2 I’ll try to fix that soon.

BTW. Have you considered using v-leaflet-editable? It probably has the exact same issue with the latest v-leaflet version, but I find it more complete editing addon for Leaflet that the Draw. E.g. it supports polygons with holes.

cheers,
matti

hello:
try to add v-leaflet-draw to my project without succes.
when build crash…

i have a custom widgetset and i can not find information about with connector a need to add to my optimizedconnector. (i guest is over here the problem).

part of my problem
Tracing compile failure path for type ‘org.vaadin.addon.leaflet.draw.client.LeafletDrawEditingConnector’
[INFO]
[ERROR]
Errors in ‘jar:file:/home/dev/.m2/repository/org/vaadin/addon/v-leaflet-draw/0.6.6/v-leaflet-draw-0.6.6.jar!/org/vaadin/addon/leaflet/draw/client/LeafletDrawEditingConnector.java’
[INFO]
[ERROR]
Line 72: The method disable() is undefined for the type EditableFeature
[INFO]
[ERROR]
Line 64: The method enable() is undefined for the type EditableFeature

i add this connectors without succes
eagerConnectors.add(LDraw.class.getName());
eagerConnectors.add(LeafletDrawConnector.class.getName());
eagerConnectors.add(LeafletDrawPolylineConnector.class.getName());
eagerConnectors.add(LeafletDrawCircleConnector.class.getName());
eagerConnectors.add(LeafletDrawCircleMarkerConnector.class.getName());
eagerConnectors.add(LeafletDrawPolygonConnector.class.getName());
eagerConnectors.add(LeafletDrawMarkerConnector.class.getName());
eagerConnectors.add(LeafletDrawEditingConnector.class.getName());
eagerConnectors.add(AbstractLeafletVectorConnector.class.getName());

thanks,…

forgot to say my versions:
<vaadin.version>7.7.6</vaadin.version>

	<dependency>
        <groupId>org.vaadin.addon</groupId>
        <artifactId>v-leaflet-editable</artifactId>
        <version>2.0.2</version>
        <type>jar</type>
    </dependency>
    <dependency>
        <groupId>org.vaadin.addon</groupId>
        <artifactId>v-leaflet</artifactId>
        <version>1.0.6</version>
        <type>jar</type>
    </dependency>
    
    <dependency>
	   <groupId>org.peimari</groupId>
	   <artifactId>g-leaflet</artifactId>
	   <version>1.0.12</version>
	</dependency>
    <dependency>
   <groupId>org.vaadin.addon</groupId>
	   <artifactId>v-leaflet-draw</artifactId>
	   <version>0.6.6</version>
	</dependency>
	<dependency>
   <groupId>org.peimari</groupId>
	   <artifactId>g-leaflet-draw</artifactId>
	   <version>0.4.14</version>
	</dependency>

Hi Enzo!

Maybe you have some version conflicts? You seem to define the GWT dependencies directly as well. You should get those as transitive dependencies as well. And then make sure you have latest v7 compatible versions of all add-ons.

Let me know if you still have issue afterwards!

cheers,
matti