Vaadin Google App Engine

时间:2014-12-03 20:48:10

标签: java google-app-engine vaadin

在做任何调用Vaadin服务器端的事情后,我遇到了通信问题,例如:按下按钮。 应用程序在我的本地正常工作,没有服务器推送或其他限制被破坏,我的web.xml和appengine.xml:

的web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <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>
  <context-param>
    <param-name>heartbeatInterval</param-name>
    <param-value>300</param-value>
  </context-param>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
  <servlet>
    <servlet-name>Vaadin Application Servlet</servlet-name>
    <servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
    <init-param>
      <description>Vaadin application class to start</description>
      <param-name>UI</param-name>
      <param-value>com.puppycrawl.tools.checkstyle.ast.web.viewer.AstWebViewer</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>Vaadin Application Servlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
</web-app>

应用服务引擎-web.xml中:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xml>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <application>checkstyle-ast-viewer</application>
    <version>1</version>
    <threadsafe>true</threadsafe>
    <sessions-enabled>true</sessions-enabled>

    <system-properties>
        <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
    </system-properties>
</appengine-web-app>

应用程序的当前链接(使用Vaadin的调试窗口):

http://checkstyle-ast-viewer.appspot.com/?debug

重现我的问题:

  1. 在TextArea中输入任何文字

  2. 按“处理”按钮。

0 个答案:

没有答案