is there anyone share to vaadin 7 with openlayer maven project???

hi friends,

i want to use openlayers map in vaadin 7, ı also research… find lots of suggestion… but i didn’t run project successfully.

thanks a lot.
my MainApp is here;

   [code]

VerticalLayout layout = new VerticalLayout();
setContent(layout);
final OpenLayersMap map = new OpenLayersMap();
OpenStreetMapLayer osm = new OpenStreetMapLayer();
GoogleStreetMapLayer googleStreets = new GoogleStreetMapLayer();
map.addLayer(osm);
map.addLayer(googleStreets);
map.setCenter(22.30083, 60.452541);
layout.addComponent(map);
[/code]

my web.xml;

<servlet>
        <servlet-name>vaadinServlet</servlet-name>
        <servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
        <init-param>
            <description>vaadin class to start</description>
            <param-name>application</param-name>
            <param-value>com.openlayerMap.ui.MainApp</param-value>
        </init-param>
        
        <init-param>
            <description>Widget Set to Use</description>
            <param-name>widgetset</param-name>
            <param-value>com.openlayerMap.AppWidgetSet</param-value>
        </init-param>

    </servlet>
    <servlet-mapping>
        <servlet-name>vaadinServlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

my AppWidgetSet;

<module>
    <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
    <inherits name="org.vaadin.vol.VolWidgetsetWithHostedScript" />
</module>

error is here;

Error instantiating servlet class com.vaadin.terminal.gwt.server.ApplicationServlet

thanks a lot…

Hi,

It looks like your servlet class is from V6 era. New class should be: com.vaadin.server.VaadinServlet

cheers,
matti

hi Matti,

i tried it but the same.

Error instantiating servlet class com.vaadin.server.VaadinServlet

i think there is a difference problem that i could not understand. thanks a lot.