2014-05-10 4 views
0

Vaadin 응용 프로그램을 성공적으로 배포했는데 호출 할 때 표시됩니다. ERROR : NOT_FOUND
기본 페이지가 잘못 선택되어 있기 때문에 내 기본 페이지를 찾을 수 없다고 생각합니다.Google App Engine에 vaadin 앱 배포 - 오류 NOT_FOUND

질문 : (내 web.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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> 
       <display-name>GoogleAppVaadin701Project</display-name> 
       <welcome-file-list> 
       <welcome-file>index.html</welcome-file> 
       <welcome-file>index.htm</welcome-file> 
       <welcome-file>index.jsp</welcome-file> 
       <welcome-file>default.html</welcome-file> 
       <welcome-file>default.htm</welcome-file> 
       <welcome-file>default.jsp</welcome-file> 
       </welcome-file-list> 
      </web-app> 

enter image description here

답변

0

angel이라는 이클립스 플러그인은 angel이라는 응용 프로그램 작동 web.xml 파일을 만들지 않습니다. vaadin의 책에서 web.xml에 대한 섹션을 찾을 수 있습니다 - https://vaadin.com/book/vaadin7/-/page/application.environment.html

다음은 기본적인 서블릿 정의와 잘 작동하는 책을 기반으로 한 매핑입니다. UI 구현을 가리 키도록 UI 매개 변수를 변경하십시오.

<servlet> 
    <servlet-name>myservlet</servlet-name> 
    <servlet-class> 
    com.vaadin.server.GAEVaadinServlet 
    </servlet-class> 

    <init-param> 
    <param-name>UI</param-name> 
    <param-value>com.example.higoogle.HigoogleUI</param-value> 
    </init-param> 
</servlet> 

<servlet-mapping> 
    <servlet-name>myservlet</servlet-name> 
    <url-pattern>/*</url-pattern> 
</servlet-mapping> 
관련 문제