Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Maven-Vaadin(Test example of Vaadin in Mavn)
Maven-Vaadin [message #814541] Tue, 06 March 2012 15:21 Go to next message
chen shun is currently offline chen shun
Messages: 3
Registered: March 2012
Junior Member
Hello,

I have tried to test the example of vaadin in Maven, firstly, "Hello world" works well but when i test anothers "TreeTable", there is the exception of "MyVaadinApplication cannot be cast to com.vaadin.Application".
And there is content of web.xml
**********************
<?xml version="1.0" encoding="UTF-8" ?>
- <web-app>
<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.terminal.gwt.server.ApplicationServlet</servlet-class>
- <init-param>
<description>Vaadin application class to start</description>
<param-name>application</param-name>
<param-value>com.MyVaadinApplication</param-value>
</init-param>
</servlet>
- <servlet-mapping>
<servlet-name>Vaadin Application Servlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
************************
I don'r kown if anyone has the same problem? And how to solve.
Thanks very much!!!
Re: Maven-Vaadin [message #814551 is a reply to message #814541] Tue, 06 March 2012 15:30 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3198
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/6/2012 8:21 AM, chen shun wrote:
> Hello,
> I have tried to test the example of vaadin in Maven, firstly, "Hello
> world" works well but when i test anothers "TreeTable", there is the
> exception of "MyVaadinApplication cannot be cast to
> com.vaadin.Application".
> And there is content of web.xml
> **********************
> <?xml version="1.0" encoding="UTF-8" ?> - <web-app>
> <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.terminal.gwt.server.ApplicationServlet</servlet-class>
> - <init-param>
> <description>Vaadin application class to start</description>
> <param-name>application</param-name>
> <param-value>com.MyVaadinApplication</param-value> </init-param>
> </servlet>
> - <servlet-mapping>
> <servlet-name>Vaadin Application Servlet</servlet-name>
> <url-pattern>/*</url-pattern> </servlet-mapping>
> </web-app>
> ************************
> I don'r kown if anyone has the same problem? And how to solve.
> Thanks very much!!!

This is the Eclipse newcomers forum for questions about installing and
using Eclipse. You're looking for support, probably from Vaadin, maybe
for Maven, but not from Eclipse.
Previous Topic:fatal error has been occured
Next Topic:How to create a simple remote HTTP server for static publishing?
Goto Forum:
  


Current Time: Wed Oct 01 04:19:03 GMT 2014

Powered by FUDForum. Page generated in 0.11799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software