我正在尝试将J2EE应用程序部署到Weblogic。它由web模块和ejb模块组成。我的web模块使用JSF 1.2和JSTL 1.2。我已经将这两个库都部署到了weblogic.xml上,然后让我的WebModule在Weblogic中使用这些库
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app/1.0
http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<context-root>/dailyplanner</context-root>
<library-ref>
<library-name>jsf</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.2</implementation-version>
<exact-match>false</exact-match>
</library-ref>
<library-ref>
<library-name>jstl</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.2</implementation-version>
<exact-match>false</exact-match>
</library-ref>
</weblogic-web-app>如果我只将WebModule部署为一个独立的应用程序,那么一切都可以正常工作。
然后,我通过weblogic-application.xml (在ejb/META-INF内)中的以下代码设置了整个应用程序以使用这些库
<weblogic-application xmlns="ttp://www.bea.com/ns/weblogic/weblogic-application"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application/1.0
http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
<library-ref>
<library-name>jsf</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.2</implementation-version>
<exact-match>false</exact-match>
</library-ref>
<library-ref>
<library-name>jstl</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.2</implementation-version>
<exact-match>false</exact-match>
</library-ref>
</weblogic-application>但是,如果我现在尝试部署整个J2EE应用程序(ear文件),weblogic将无法部署它,因为缺少JSF和JSTL类。
我应该怎么做才能让我的J2EE应用程序在weblogic中使用共享的JSF和JSTL库呢?
谢谢
发布于 2010-11-17 21:02:19
试着把war中的配置放在耳边。
https://stackoverflow.com/questions/4204426
复制相似问题