Tomcat integration

I tryed hard… but I couldn’t make tomcat work with vaadin, I got the tomcat plugin (http://www.eclipsetotale.com/tomcatPlugin/tomcatPluginV321.zip) for eclipse and I can start the server and stuff like that, but I can’t make tomcat apears in the vaadin wizard. What is really needed to make this work?

As far as I know, Sysdeo Tomcat plugin is not compatible with Eclipse standard Web Project. Vaadin Eclipse plugin builds on the standard Web Project and thus you can not create Sysdeo compatible projects with Vaadin plugin.

This is not a big problem:

  • If you prefer to use Sysdeo plugin, you can just create projects as Tomcat Projects and manually drop vaadin.jar to your WEB-INF/lib
  • You do not actually need Sysdeo plugin to use Tomcat. Eclipse Web Tools project to do that - it comes with J2EE version of Eclipse.

I just build an Vaadin project copy my WebContent folder to $CATALINA/webapps/ when I tryed to open localhost:8080/WebContent I got this stack:
SEVERE: Allocate exception for servlet Testa Application
javax.servlet.ServletException: Failed to load application class: com.example.testa.TestaApplication
at com.vaadin.terminal.gwt.server.ApplicationServlet.init(ApplicationServlet.java:71)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)

Normal project structure is to have WebContent in your project directory and mark that as the “web” directory for systeo plugin. All your resources (as well as WEB-INF) resides in that directory.

Sysdeo plugin (as well as any other plugins) should handle copying resources to tomcat webapps automatically.

When you have built your project, your TestaApplication.class file should be (automatically) placed within WebContent/WEB-INF/classes/ directory.

Please see
http://vaadin.com/book/-/page/getting-started.first-project.html
for step by step instructions on how to create a project and to start running the application. (uses eclipse web project plugin instead of sysdeo, but that is the recommended way to do it anyway)