Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine GAE-无法部署使用UserService的gwt应用程序_Google App Engine_Gwt_Deployment_Gae Eclipse Plugin_Gae Userservice - Fatal编程技术网

Google app engine GAE-无法部署使用UserService的gwt应用程序

Google app engine GAE-无法部署使用UserService的gwt应用程序,google-app-engine,gwt,deployment,gae-eclipse-plugin,gae-userservice,Google App Engine,Gwt,Deployment,Gae Eclipse Plugin,Gae Userservice,我尝试使用以下方式部署我的应用程序: 。。。但由于某种原因,我在验证XML错误时引发异常: “将testapp部署到Google”期间发生内部错误。XML 根据验证C:…\testapp\war\WEB-INF\appengine-WEB.xml时出错 C:…\eclipse-jee-indigo-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.5.2.r37v201107211953\appengine-java-s

我尝试使用以下方式部署我的应用程序:

。。。但由于某种原因,我在验证XML错误时引发异常:

“将testapp部署到Google”期间发生内部错误。XML 根据验证C:…\testapp\war\WEB-INF\appengine-WEB.xml时出错 C:…\eclipse-jee-indigo-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.5.2.r37v201107211953\appengine-java-sdk-1.5.2\docs\appengine-web.xsd

我不太清楚这意味着什么,所以我非常需要你的建议如何修复它?任何有用的想法都会受到赞赏

谢谢

p.S.GWT SDK 2.3

您正在使用

<application>mytestapp</application>
          <version>1</version>
  <sessions-enabled>true</sessions-enabled>

        <security-constraint>
    <web-resource-collection>
        <web-resource-name></web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>*</role-name>
    </auth-constraint>
</security-constraint>
public class GuestbookServlet extends HttpServlet {
    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws IOException {
        UserService userService = UserServiceFactory.getUserService();
        User user = userService.getCurrentUser();

        if (user != null) {
            resp.setContentType("text/plain");
            resp.getWriter().println("Hello, " + user.getNickname());
        } else {
            resp.sendRedirect(userService.createLoginURL(req.getRequestURI()));
        }
    }
}