Vaadin 的 vaadinBootstrap.js

编程入门 行业动态 更新时间:2024-10-27 06:34:09
本文介绍了Vaadin 的 vaadinBootstrap.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 04:07:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1389384.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Vaadin   vaadinBootstrap   js

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!