使用 ICEFaces 部署后 Glassfish 需要重新启动

发布于 2024-08-24 11:06:09 字数 428 浏览 3 评论 0原文

我有一个奇怪的问题。我正在处理一个 ICEFaces(1.8.2) + Facelets 应用程序,每次对其进行更改并部署时,我都必须重新启动 Glassfish(2.1.1),否则我的实体上会出现“java.lang.ClassCastException”。错误消息是:

java.lang.ClassCastException:za.co.africanpulse.rms.frontend.domain.Menuheader 无法转换为 za.co.africanpulse.rms.frontend.domain.Menuheader

如果我按照上述方式重新启动 Glassfish 就可以了...但是这有点令人恼火。我不太清楚您到底希望我发布什么内容,以便更容易识别/理解我的问题。无论如何,任何帮助将不胜感激。

非常非常感谢

i have a strange problem. I have an ICEFaces(1.8.2) + Facelets application im working on and every time i make a change to it and deploy i must restart Glassfish(2.1.1) else i get a "java.lang.ClassCastException" on my entities. The error message is :

java.lang.ClassCastException: za.co.africanpulse.rms.frontend.domain.Menuheader cannot be cast to za.co.africanpulse.rms.frontend.domain.Menuheader

If i restart Glassfish as said above all is ok... but this is getting kinda irratating. I dont quite know what exactly you would like me to post so that my problem is easier identified / understood. Anyways any help will be most appreciated.

Many many thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

懵少女 2024-08-31 11:06:09

您可能应该提出 GlassFish 项目的问题: https://glassfish.dev.java.net /servlets/ProjectIssues

StackOverflow 并不是真正设计为错误报告/分析工具。

也就是说......有人可能遇到过这个,你可以“幸运”......

编辑1:

例如,这个查询: http://www.google.com/search?q=glassfish+icefaces+facelet+classcastexception

获得此点击:http://seamframework.org/Community/HelpOnSeam220ICEfaces181AndGlassfish21

看起来可能有用。

You should probably open an issue with the GlassFish project: https://glassfish.dev.java.net/servlets/ProjectIssues.

StackOverflow isn't really designed to be a bug reporting/analysis tool.

That said... someone might have run into this and you could 'Get Lucky'...

Edit 1:

For example, this query: http://www.google.com/search?q=glassfish+icefaces+facelet+classcastexception

Netted this hit: http://seamframework.org/Community/HelpOnSeam220ICEfaces181AndGlassfish21

which looks like it may be useful.

微暖i 2024-08-31 11:06:09

当 web.xml servlet 版本低于 2.5 并且 jsf 仍为 faces-config.xml 中指定的 1.1 时,就会出现与持久性相关的奇怪问题。在我的例子中,实体不能被投射到自己身上..???

更改 servlet 版本和 jsf 版本后,我可以成功地将 EntityManager 注入到我的 DAO 中...

When the web.xml servlet version is below 2.5 and jsf is still at 1.1 specified in the faces-config.xml then strange persistence related issues will arise. In my case entities could not be cast to themselves..???

After changing servlet version and jsf version i could successfully inject EntityManagers into my DAOs...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文