java - Error when deploying vaadin application -


i beginer in vaadin application development. application vaadin application integrated maven.

i'm trying create own custom page :

    @suppresswarnings("serial") public class mainpage extends ui {  public void markasdirty() { // todo auto-generated method stub  }  filesystemcontainer docs = new filesystemcontainer(new file(   "d:/users/etantaou/desktop/alfresco-developer-series-master/actions/tutorial"));  table doclist = new table("documents", docs);  doceditor docview = new doceditor();  @override protected void init(vaadinrequest request) {    horizontalsplitpanel split = new horizontalsplitpanel(); setcontent(split); split.addcomponent(doclist); split.addcomponent(docview); doclist.setsizefull();  doclist.addlistener(new valuechangelistener() {    public void valuechange(valuechangeevent event) {     // todo auto-generated method stub     docview.setpropertydatasource(new textfileproperty((file) event.getproperty().getvalue()));   } });  doclist.setimmediate(true); doclist.setselectable(true);  } } 

this web.xml :

    <?xml version="1.0" encoding="utf-8"?>     <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5">         <display-name>display-name>vaadin web application</display-name>         <context-param>             <description>vaadin production mode</description>             <param-name>productionmode</param-name>             <param-value>false</param-value>         </context-param>         <servlet>             <servlet-name>vaadin application servlet</servlet-name>             <servlet-class>com.vaadin.server.vaadinservlet</servlet-class>             <init-param>                 <description>                 vaadin application class start</description>                 <param-name>ui</param-name>                 <param-value>com.delta.ui.mainpage</param-value>             </init-param>         </servlet>         <servlet-mapping>             <servlet-name>vaadin application servlet</servlet-name>             <url-pattern>/*</url-pattern>         </servlet-mapping>          <welcome-file-list>             <welcome-file>index.html</welcome-file>             <welcome-file>index.htm</welcome-file>             <welcome-file>index.jsp</welcome-file>             <welcome-file>default.html</welcome-file>             <welcome-file>default.htm</welcome-file>             <welcome-file>default.jsp</welcome-file>         </welcome-file-list>     </web-app> 

this error i'm getting after running tomcat:run :

mars 10, 2014 2:47:22 pm org.atmosphere.cpr.atmosphereframework interceptor info: installed atmosphereinterceptor  track message size interceptor using |.  mars 10, 2014 2:47:22 pm org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet vaadin application servlet threw exception java.lang.nosuchmethoderror: com.vaadin.event.eventrouter.fireevent(ljava/util    /eventobject;lcom/vaadin/server/errorhandler;)v @ com.vaadin.server.vaadinservice.onvaadinsessionstarted(vaadinservice.java:783) @ com.vaadin.server.vaadinservice.createandregistersession(vaadinservice.java:740) @   com.vaadin.server.vaadinservice.dofindorcreatevaadinsession(vaadinservice.java:696) @ com.vaadin.server.vaadinservice.findorcreatevaadinsession(vaadinservice.java:637) @ com.vaadin.server.vaadinservice.findvaadinsession(vaadinservice.java:501) @ com.vaadin.server.vaadinservice.handlerequest(vaadinservice.java:1376) @ com.vaadin.server.vaadinservlet.service(vaadinservlet.java:238) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:298) @ org.apache.coyote.http11.http11processor.process(http11processor.java:857) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:588) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489) @ java.lang.thread.run(thread.java:722) 

it looks have jar older version of vaadin in classpath. try removing jar.

the method eventrouter.fireevent() added in version 7.1.9.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -