Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Struts 2 JSF plugin:faces-config.xml null or empty

lupus

2007-07-31



I am testing show-case jsf plugin in my project: I copy java files and jsp
files and struts-jsf files as what the showcase does, and I also add jsf
sevlet in web.xml, but there came the error when I deploy the war: it still
searches for the face-config.xml, but in the showcase, there is no
face-config.xml at all. I do not why? Here is the error msg:

31-Jul-2007 10:38:34 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3172 ms
31-Jul-2007 11:08:56 AM org.apache.catalina.startup.HostConfig
checkResources
INFO: Reloading context [/gdi]
31-Jul-2007 11:08:57 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/
gdi] has not been started
31-Jul-2007 11:09:06 AM org.apache.myfaces.config.FacesConfigurator
feedStandard
Config
INFO: Reading standard config
org/apache/myfaces/resource/standard-faces-config.
xml
31-Jul-2007 11:09:09 AM org.apache.myfaces.shared_impl.util.LocaleUtils
toLocale

WARNING: Locale name in faces-config.xml null or empty, setting locale to
defaul
t locale : en_CA
31-Jul-2007 11:09:09 AM
org.apache.myfaces.webapp.StartupServletContextListener
initFaces
INFO: ServletContext 'C:\Tomcat55\webapps\gdi\' initialized.
31-Jul-2007 11:09:10 AM
com.opensymphony.xwork2.config.providers.XmlConfiguratio
nProvider register
INFO: Parsing configuration file [struts-default.xml]
31-Jul-2007 11:09:10 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
31-Jul-2007 11:09:10 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/gdi] startup failed due to previous errors

Also I added the following code in web.xml for the jsf plugin, I do not know
if I need to add myfaces listener:

<listener>
    <listener-class>
      org.apache.myfaces.webapp.StartupServletContextListener
    </listener-class>
  </listener>
 
 <!-- JavaServer Faces Servlet Configuration, not used directly -->
 <servlet>
   <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
 </servlet>
 <servlet>
   <servlet-name>JspSupportServlet</servlet-name>
 
<servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
 </servlet>
 
 <!-- JavaServer Faces Servlet Mapping, not called directly -->
  <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.action</url-pattern>
</servlet-mapping>
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.