Hi,

I have read the FAQ and double-checked that my web.xml does not contain the
config files parameter.  However, my entire startup is being repeated twice. 
This is a rather simple application that I am building using NB6 and the
bundled Tomcat6.  I am trying to use MyFaces 1.1.5, Tomahawk 1.1.6, and
Facelets. The log that follows the web.xml is just up to loading the login
page. 

Is it because of that one ERROR line in the log? How can I fix that?  I
tried looking in the MANIFEST.MF indicated, but couldn't see what it was
complaining about.  It is the unaltered tomahawk-taglib.jar that I
downloaded.

Thanks in advance for your help.

Here is a my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>         
    <context-param>
        <param-name>facelets.DEVELOPMENT</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>facelets.SKIP_COMMENTS</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <description>If true, rendered HTML code will be formatted, so that
it is "human readable".
            i.e. additional line separators and whitespace will be written,
that do not
            influence the HTML code.
        Default: "true"</description>
        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
        <param-value>true</param-value>
    </context-param>    
    <context-param>
        <description>If true, a javascript function will be rendered that is
able to restore the
            former vertical scroll on every request. Convenient feature if
you have pages
            with long lists and you do not want the browser page to always
jump to the top
            if you trigger a link or button action that stays on the same
page.
        Default: "false"</description>
        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <description>
            Validate managed beans, navigation rules and ensure that forms
are not nested.
        </description>
        <param-name>org.apache.myfaces.VALIDATE</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <description>
            A very common problem in configuring MyFaces-web-applications
            is that the Extensions-Filter is not configured at all
            or improperly configured. This parameter will check for a
properly
            configured Extensions-Filter if it is needed by the web-app.
            In most cases this check will work just fine, there might be
cases
            where an internal forward will bypass the Extensions-Filter and
the check
            will not work. If this is the case, you can disable the check by
setting
            this parameter to false.
        </description>
        <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <description>
            This parameter enables partial state saving.
        </description>
        <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <description>
            If true every time a page is rendered, the corresponding JSP is
dispatched also.
            This is very usefull if Scriptlets are used inside the JSP.
        </description>
       
<param-name>javax.faces.PARTIAL_STATE_SAVING_DISPATCH_EVERY_TIME</param-name>
        <param-value>true</param-value>
    </context-param>
    
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>
       
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>
        </init-param>
    </filter>
    
    <!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.)  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>
    
    <!-- extension mapping for adding <script/>, <link/>, and other resource
tags to JSF-pages  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping> 
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>
    <security-role>
        <description>interviewer</description>
        <role-name>emp</role-name>
    </security-role>
    <security-role>
        <description>full time employee</description>
        <role-name>full_emp</role-name>
    </security-role>
    <security-role>
        <description>administrator (software)</description>
        <role-name>admin</role-name>
    </security-role>
    <security-role>
        <description>field manager</description>
        <role-name>field_man</role-name>
    </security-role>
    <security-role>
        <description>call centre development</description>
        <role-name>cc_dev</role-name>
    </security-role>
    <security-role>
        <description>call centre manager</description>
        <role-name>cc_manager</role-name>
    </security-role>
    <resource-ref>
        <res-ref-name>jdbc/cclDS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>  
    <security-constraint>
        <display-name>Interviewer Portal</display-name>
        <web-resource-collection>
            <web-resource-name>Interviewer Portal</web-resource-name>
            <url-pattern>*.jsf</url-pattern>
        </web-resource-collection>
        <auth-constraint>            
            <role-name>emp</role-name>
            <role-name>full_emp</role-name>
            <role-name>admin</role-name>
            <role-name>field_man</role-name>
            <role-name>cc_dev</role-name>
            <role-name>cc_manager</role-name>
        </auth-constraint>
    </security-constraint>
    
    <!-- Login Authentication -->
    <login-config>
        <auth-method>FORM</auth-method>        
        <form-login-config>
            <form-login-page>/login.jsf</form-login-page>
            <form-error-page>/loginError.jsf</form-error-page>
        </form-login-config>
    </login-config>        
</web-app>

And here is my log that tells me things are being loaded twice:

2007-12-21 10:36:23,296 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:159)
-- Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
2007-12-21 10:36:23,359 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java:379)
-- Reading config
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
2007-12-21 10:36:23,359 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java:379)
-- Reading config
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
2007-12-21 10:36:23,390 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(FacesConfigurator.java:540)
-- Reading config /WEB-INF/faces-config.xml
2007-12-21 10:36:23,468 -- ERROR
org.apache.myfaces.config.FacesConfigurator.checkJar(FacesConfigurator.java:272)
-- You are using the MyFaces-package : tomahawk in different versions; first
(and probably used) version is : 1.1.6, currently encountered version is :
facelets-taglib. This will cause undesired behaviour. Please clean out your
class-path. The first encountered version is loaded from :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar.
The currently encountered version is loaded from :
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-facelets-taglib.jar!/META-INF/MANIFEST.MF
2007-12-21 10:36:23,468 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/myfaces-api-1.1.5.jar
2007-12-21 10:36:23,468 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/myfaces-impl-1.1.5.jar
2007-12-21 10:36:23,468 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:207)
-- MyFaces-package : tomahawk-sandbox not found.
2007-12-21 10:36:23,468 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : tomahawk in version : 1.1.6 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar
2007-12-21 10:36:25,359 -- INFO
org.apache.myfaces.config.FacesConfigurator.handleSerialFactory(FacesConfigurator.java:941)
-- Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
2007-12-21 10:36:25,437 -- INFO
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:99)
-- ServletContext 'H:\630117\InterviewerPortal\build\web\' initialized.
2007-12-21 10:36:25,453 -- DEBUG
javax.faces.webapp.FacesServlet.init(FacesServlet.java:89) -- init begin
2007-12-21 10:36:25,453 -- DEBUG
javax.faces.webapp.FacesServlet.init(FacesServlet.java:98) -- init end
2007-12-21 10:36:26,156 -- DEBUG
javax.faces.webapp.FacesServlet.destroy(FacesServlet.java:67) -- destroy
2007-12-21 10:36:27,906 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:159)
-- Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
2007-12-21 10:36:27,953 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java:379)
-- Reading config
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
2007-12-21 10:36:27,953 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java:379)
-- Reading config
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
2007-12-21 10:36:27,984 -- INFO
org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(FacesConfigurator.java:540)
-- Reading config /WEB-INF/faces-config.xml
2007-12-21 10:36:28,046 -- ERROR
org.apache.myfaces.config.FacesConfigurator.checkJar(FacesConfigurator.java:272)
-- You are using the MyFaces-package : tomahawk in different versions; first
(and probably used) version is : 1.1.6, currently encountered version is :
facelets-taglib. This will cause undesired behaviour. Please clean out your
class-path. The first encountered version is loaded from :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar.
The currently encountered version is loaded from :
jar:file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-facelets-taglib.jar!/META-INF/MANIFEST.MF
2007-12-21 10:36:28,046 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/myfaces-api-1.1.5.jar
2007-12-21 10:36:28,046 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/myfaces-impl-1.1.5.jar
2007-12-21 10:36:28,046 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:207)
-- MyFaces-package : tomahawk-sandbox not found.
2007-12-21 10:36:28,046 -- INFO
org.apache.myfaces.config.FacesConfigurator.logMetaInf(FacesConfigurator.java:199)
-- Starting up MyFaces-package : tomahawk in version : 1.1.6 from path :
file:/H:/630117/InterviewerPortal/build/web/WEB-INF/lib/tomahawk-1.1.6.jar
2007-12-21 10:36:29,265 -- INFO
org.apache.myfaces.config.FacesConfigurator.handleSerialFactory(FacesConfigurator.java:941)
-- Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
2007-12-21 10:36:29,328 -- INFO
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:99)
-- ServletContext 'H:\630117\InterviewerPortal\build\web\' initialized.
2007-12-21 10:36:29,328 -- DEBUG
javax.faces.webapp.FacesServlet.init(FacesServlet.java:89) -- init begin
2007-12-21 10:36:29,328 -- DEBUG
javax.faces.webapp.FacesServlet.init(FacesServlet.java:98) -- init end
2007-12-21 10:36:30,578 -- DEBUG
javax.faces.webapp.FacesServlet.service(FacesServlet.java:132) -- service
begin
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getBooleanInitParameter(MyfacesConfig.java:204)
-- No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found,
using default value true
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getBooleanInitParameter(MyfacesConfig.java:204)
-- No context init parameter
'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default
value true
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getBooleanInitParameter(MyfacesConfig.java:204)
-- No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found,
using default value false
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getStringInitParameter(MyfacesConfig.java:229)
-- No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found,
using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getStringInitParameter(MyfacesConfig.java:229)
-- No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH'
found, using default value /faces/myFacesExtensionResource
2007-12-21 10:36:32,546 -- INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.getCurrentInstance(MyfacesConfig.java:185)
-- Starting up Tomahawk on the MyFaces-JSF-Implementation
2007-12-21 10:36:32,562 -- DEBUG
javax.faces.webapp.FacesServlet.service(FacesServlet.java:165) -- service
end

-- 
View this message in context: 
http://www.nabble.com/Configuration-files-being-loaded-twice%2C-but-not-declared-in-web.xml-tp14457664p14457664.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to