Note that the warning about 'faces-config.xml null or empty' is a) just a warning -- it's not an error; and b) is just telling you that you don't have a default locale configured in your faces-config.xml -- which is normal if you haven't deployed one.

The real problem is elsewhere. You'll need to examine your logs to find out what's causing startup to fail. If you can't diagnose it from the logs, strip your application down to the simplest configuration that works and then add bits back in one at a time until you determine which causes the problem to come back. That should help narrow your debugging process down.

L.

lupus wrote:
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>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to