Failed to load application class

File structure of web project is in the attachments,follwing are my web.xml

[i]

<?xml version="1.0" encoding="UTF-8"?> CalenderDemo Vaadin production mode productionMode false Calenderdemo Application com.vaadin.terminal.gwt.server.ApplicationServlet Vaadin application class to start application com.example.calenderdemo.CalenderDemo Calenderdemo Application /* Calenderdemo Application /VAADIN/* index.html index.htm index.jsp default.html default.htm default.jsp [/i]


exception

javax.servlet.ServletException: Failed to load application class: com.example.calenderdemo.CalenderDemo
com.vaadin.terminal.gwt.server.ApplicationServlet.init(ApplicationServlet.java:71)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
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:619)
11388.bmp (506 KB)

I have no idea what is wrong,who can help me ?

<servlet-mapping>
  <servlet-name>Calenderdemo Application</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>Calenderdemo Application</servlet-name>
  <url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>

mapping same servlet twice; is that intentional? I dont mean to say this is causing the problem. But in my app, i see only one mapping.

PS: please use code button to wrap code, that way it will be easily readable.

Problem is on ur pom file … ur servlet class is not compile properly , if u r using java 1.6 or above then go to pom.xml and change the vrsion and then compile ur source code and ten run it will work hopefully

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
       <source>1.6</source>
       <target>1.6</target>
    </configuration>

[