更新时间:2023-10-06 10:18:52
看起来像Base项目 - 没有正确导出会话bean的项目。 JSF要求将 faces-config.xml
直接放在 META-中的
目录。但是,根据您的描述,Base项目是一个Web项目。当我创建这样的项目并使用你的方式导出它时,我得到了以下结构: sbeans.jar
中INF
Looks like Base project - the one with session bean is not correctly exported. JSF requires faces-config.xml
to be placed in sbeans.jar
directly in META-INF
directory. However, according to your description Base project is a web project. When I created such project and exported it using the way you did I got the following structure:
sbeans.jar
|--META-INF (empty)
|--WebContent
|--META-INF
|--faces-config.xml
如您所见 faces-config.xml
放在错误的位置。
As you see faces-config.xml
is placed in wrong place.
要解决此问题:
META-INF
在 Java Resources / src
中并放置 faces-config.xml
那里 .jar
META-INF
in Java Resources/src
and place faces-config.xml
there.jar
after exporting