如何使带有 CDI 的 Seam3 Solder 在 WebSphere 7 中工作?
我想在 WebSphere 7 中使用 Seam Solder 和 Seam Faces 3 以及 JSF 2.0(RI 是 Mojarra 2.0.4)和 CDI。我包含了所有必需的依赖项(Weld 1.1、JBoss Logging),但服务器没有开始说:
无法使用以下任何提供程序找到 BeanManager:
org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11),
org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)`
我遵循了 针对 pre-servlet 3.0 环境的 Seam 配置说明
在我看来,缺少一个资源(BeanMananger),我尝试将 BeanManager 设置为 jndi 资源Websphere,遵循此焊接指令< /a> 用于 Servlet 容器,这也不起作用。
在服务器启动期间导致异常的源代码尝试像这样查找 bean 管理器:
class ServletContainerJndiBeanManagerProvider extends AbstractJndiBeanManagerProvider {
@Override
protected String getLocation() {
return "java:comp/env/BeanManager";
}
public int getPrecedence(){
return 10;
}
到目前为止,有人在 Websphere 7 上运行 Seam 3 和 CDI 1.0(分别是 Weld 1.1)吗?我在这里缺少什么?
PS:JSF 2.0 运行良好。
I want to use Seam Solder and Seam Faces 3 in WebSphere 7 with JSF 2.0 (RI is Mojarra 2.0.4) and CDI. I Included all required dependencies (Weld 1.1, JBoss Logging), but the server doesn't start saying:
Failed to locate BeanManager using any of these providers:
org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11),
org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)`
I followed the Seam configuration instruction for pre-servlet 3.0 environment
It seemed to me a resource (the BeanMananger) is missing and I tried to set up the BeanManager as a jndi resource in Websphere, following this Weld instruction for Servlet Container, which also did not work.
The source code causing the exception during server startup, tries to lookup the bean manager like this:
class ServletContainerJndiBeanManagerProvider extends AbstractJndiBeanManagerProvider {
@Override
protected String getLocation() {
return "java:comp/env/BeanManager";
}
public int getPrecedence(){
return 10;
}
Did anyone get Seam 3 and CDI 1.0 (resp. Weld 1.1) running on Websphere 7 so far? What am I missing here?
P.S.: JSF 2.0 is running fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一个链接,指向 Seam-dev 邮件列表中关于尝试让 Seam 3 在 Websphere 8 中工作的主题。也许其中的一些花絮会对您有所帮助。
http://seam-framework.2283336.n4.nabble.com/seam-booking-from-CR3-preliminary-testing-results-on-WebSphere-v8-beta-td3395111.html
Here's a link to a thread on the seam-dev mailist about trying to get Seam 3 to work in Websphere 8. Maybe some tidbits in there will be helpful for you.
http://seam-framework.2283336.n4.nabble.com/seam-booking-from-CR3-preliminary-testing-results-on-WebSphere-v8-beta-td3395111.html