Project structure

RapidClipse automatically generates a standard project structure consisting of the 5 main packages, and additionally a "frontend"-folder for Vaadin themes. Thus, RapidClipse provides an application architecture that strictly separates different application layers, in particular the UI layer, the data storage layer (Entities), and the data query layer (Data Access).

  • main-java - Here you can see all your source code, such as entities, business classes, UI classes etc.

  • main-resources - Here you can see the resources used by the application server, e.g. icons used in the Java code, language files.

  • main-webapp - Here you can see the resources used by the client e.g. icons, images used in CSS, CSS code

  • test-java - Here the test classes can be created

  • test-resources - Here you can create the resources that will be used by the test classes.

  • frontend - Here the vaadin theme files are located

RapidClipse generates a default package structure, but you can also deviate from this and structure your project completely yourself using a standard Eclipse view like Project Explorer or Package Explorer.

In Project Management view, all of them have a separate area. Besides, there is another area:

  • Project - Here you can see all your projects, as well as the generated target folder, which contains your built application, or the pom.xml, which is needed for Maven.

image not found

Important entries in Project Management

  • Project area

    • JRE System Library - files of the Java Runtime Environment.

    • Maven Dependencies - Required libraries that are automatically downloaded from the Maven repository and included in the RapidClipse project.

    • ehcache.xml - EhCache configuration file. RapidClipse uses EhCache as second-level cache for Hibernate by default to accelerate database accesses via Hibernate.

    • persistence.xml - JPA configuration file, which among other things defines Hibernate as JPA provider.

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="2.1"
          <persistence-unit name="examples">
                  <property name="hibernate.cache.use_second_level_cache"
                      value="true" />
                  <property name="hibernate.cache.use_query_cache"
                      value="true" />
                  <property name="hibernate.cache.region.factory_class"
                      value="org.hibernate.cache.ehcache.EhCacheRegionFactory" />
                  <property name="javax.persistence.sharedCache.mode"
                      value="DISABLE_SELECTIVE" />
                  <property name="hibernate.archive.autodetection"
                      value="class, hbm" />
                  <property name="hibernate.show_sql" value="false" />
                  <property name="" value="validate" />
                  <property name="hibernate.transaction.auto_close_session"
                      value="false" />
                  <property name="hibernate.dialect"
                      value="org.hibernate.dialect.H2Dialect" />
                  <property name="javax.persistence.jdbc.driver"
                      value="org.h2.Driver" />
                  <property name="javax.persistence.jdbc.url"
                      value="jdbc:h2:tcp://localhost:5435/northwind;IFEXISTS=TRUE" />
                  <property name="javax.persistence.jdbc.user" value="sa" />
                  <property name="javax.persistence.jdbc.password" value="" />
    • pom.xml - Maven configuration file. Here dependencies are specified that the RapidClipse project has to other libraries.

      <project xmlns=""
    • web.xml - configuration file that is included in the servlet container as a web application via the application.

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="" xmlns="" xsi:schemaLocation="" id="WebApp_ID" version="3.1">
  • main-java

    • - Default layout created by RapidClipse. View. The designation MainLayout can be changed at any time.

    • - Configure Vaadin application features and the host page.

    • - Servlet file.

      import javax.servlet.annotation.WebServlet;
      import com.rapidclipse.framework.server.RapServlet;
      @WebServlet(urlPatterns = "/*", asyncSupported = true)
      public class AppServlet extends RapServlet
          public AppServlet()