Vaadin 的 vaadinBootstrap.js [英] Vaadin's vaadinBoootstrap.js

查看:30
本文介绍了Vaadin 的 vaadinBootstrap.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了令人困惑的问题!

I meet confusing issue!

我正在使用 Vaadin(7) 框架来创建一些(安静简单的)应用程序.当我在 Eclipse 中测试它时,一切正常.但是当我将我的项目部署到 Tomcat 中时,一些谜团开始了......

I'm using Vaadin(7) framework to create some (quiet simple) app. When I'm testing it in Eclipse, everything works fine. But when i deploy my project into Tomcat, some mysteries starts...

当我从管理器应用程序运行"应用程序时,只有消息:

When I "run" the application from Manager App, there is just the message:

加载引导程序 javascript 失败:./VAADIN/vaadinBootstrap.js

Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js

但是当我手动在浏览器 (Firefox) 中输入相同的地址时,它又可以正常工作了.

But when I type the same address to the browser (Firefox) manually, it works fine again.

我对此进行了一些调查,发现有一些人遇到了同样的问题,但没有令人满意的解决方案.

I've done a little investigation about that and I found that there are a few people with the same issue but no satisfying solution.

我唯一发现的是,当我使用 Manager App 时有一些 Cookie,当我直接调用它时没有.

Only thing I found out is that when I use Manager App there is some Cookie, which isn't there when I call it directly.

 Cache-Control  no-cache
 Content-Length 1929
 Content-Type   text/html
 Date   Wed, 02 Apr 2014 07:13:40 GMT
 Expires    Thu, 01 Jan 1970 00:00:00 GMT
 Pragma no-cache
 Server Apache-Coyote/1.1
 Set-Cookie JSESSIONID=F773E7AEDDDE7087CBF46C778CF5353A; Path=/SystematicTool-1.0.1/;  HttpOnly

对比

Cache-Control   no-cache
Content-Length  1929
Content-Type    text/html
Date    Wed, 02 Apr 2014 06:42:28 GMT
Expires Thu, 01 Jan 1970 00:00:00 GMT
Pragma  no-cache
Server  Apache-Coyote/1.1

能否请你给我一个提示如何修复这种奇怪的行为.

Could you please give me a clue how to repair this strange behavior.

推荐答案

尝试在 web.xml 中显式启用 cookie 跟踪:

Try to explicitly enable cookie tracking in your web.xml:

<session-config>
    <tracking-mode>COOKIE</tracking-mode>
</session-config>

这篇关于Vaadin 的 vaadinBootstrap.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆