Skip to main content



      Home
Home » Newcomers » Newcomers » Maven-Vaadin(Test example of Vaadin in Mavn)
Maven-Vaadin [message #814541] Tue, 06 March 2012 10:21 Go to next message
Eclipse UserFriend
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 10:30 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:23:39 EDT 2025

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

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

Back to the top