WebLogic 10.5.3 + Seam 2.2.1:应用程序无法启动
我们有一个 WAR 打包的 Web 应用程序,可以在开发机器上运行。它由 Java EE 5 + Seam 2.2.1 + Hibernate 3.3.1 组成。它使用 Oracle 10g XE 数据库,并在使用 JDK 1.6.0_24 的最新 Tomcat 6 上运行。该系统是64位Windows 7 Pro并使用Firefox 6。
现在,我们尝试将应用程序迁移到Oracle WebLogic 10.3.5。我们按照 Seam 手册指定数据源、部署 JSF 库并配置必要的 xml 文件。与此同时,我们验证了使用相同数据源并按规定配置 xml 文件的新 seam-gen 生成的应用程序可以正常工作。
但是,如果我们在 WebLogic 上尝试我们自己的应用程序,尽管部署工作正常,但当尝试在浏览器中打开 Web 应用程序时,它显示发生了无休止的重定向。即使在 WebLogic 中配置 log4j,我们也没有看到任何堆栈跟踪或日志错误。使用 Firebug 分析请求时,我们看到对“login.seam”的 get 请求,然后对“error.seam”(或设置调试模式时的“debug.seam”)的 20 次 get 请求,响应为“302 Moved Temporarily” 我整个星期都在研究这个问题,
试图比较所有配置但无法解决它 - 所以我希望得到任何可能导致该问题以及如何解决它的想法!
we have a WAR packaged web application which works on a development machine. It consists of Java EE 5 + Seam 2.2.1 + Hibernate 3.3.1. It uses an Oracle 10g XE database and runs on the latest Tomcat 6 using JDK 1.6.0_24. The system is a 64bit Windows 7 Pro and uses Firefox 6.
Now, we tried to migrate the application to Oracle WebLogic 10.3.5. We followed the Seam manual for specifying the datasource, deploying the JSF lib and configuring the necessary xml-Files. In parallel to that, we verified that a newly seam-gen generated application using the same datasource and having the xml files configured as stated works fine.
But if we try our own application on WebLogic, allthough the deployment works fine, when trying to open the web application in the browser, it shows that endless redirection occured. We don't see any stacktrace or log error, even when configuring log4j in WebLogic. When analyzing the request with Firebug, we see the get request to "login.seam" and then 20 times a get request for "error.seam" (or "debug.seam when setting debug mode) with the response "302 Moved Temporarily".
I worked on that all week now, trying to compare all configurations and couldn't solve it - so I hope to get any ideas what could cause that problem and how to solve it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以将问题确定为在 JTA 持久性上下文上启动事务。
我仍然不明白为什么我没有看到任何日志消息或堆栈跟踪,以及为什么这也发生在调试/错误页面上(这就是发生无休止重定向的原因)。
到目前为止,我最终使用了 RESOURCE_LOCAL,但我不确定这是否是正确的做法。
另一种方法是禁用 Seam 事务设置,但它无法与仍在 Tomcat 上运行的开发版本一起使用。
I could pin down the problem to starting a transaction on the JTA persistence context.
I still don't understand why I didn't see any log message or stacktrace and why this also happens on the debug/error page (that's why the endless redirect occured).
I ended up using RESOURCE_LOCAL so far, but I'm not sure if this is the right thing to do.
The alternative is disabling the seam transaction setting, but then it didn't work together with the development build which still runs on Tomcat.