Announcement Announcement Module
Collapse
No announcement yet.
Spring faces (SWF 2.0.7): SEVERE: Parse Error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring faces (SWF 2.0.7): SEVERE: Parse Error

    Hi all

    I'm trying to get the following setup working (please don't ridicule me - I know it's an outdated setup with regard to Tomcat But at the client they are still using this version ) :
    Apache Tomcat 4.1.18
    Java 1.4
    Spring webflow 2.0.7
    Apache Myfaces 1.1.7

    I have my application running, meaning that I can get a bean to work in jsf alone and besides that have the spring application context working.

    But I haven't really got the integration working via Spring faces. Every time I include 'org.springframework.faces-2.0.7.RELEASE.jar' in WEB-INF/lib I get the following exception:
    Apache Tomcat/4.1.18
    14-07-2009 13:28:56 org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 4 column 19: Document root element "taglib", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".
    at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(ErrorHandlerWrapper.java:232)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(E rrorHandlerWrapper.java:173)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(XMLErrorReporter.java:371)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(XMLErrorReporter.java:305)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.rootEle mentSpecified(XMLDTDValidator.java:1526)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.handleS tartElement(XMLDTDValidator.java:1804)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startEl ement(XMLDTDValidator.java:724)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanStartElement(XMLDocumentFragmentScannerImp l.java:759)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$Cont entDispatcher.scanRootElementHook(XMLDocumentScann erImpl.java:957)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(XMLDocument FragmentScannerImpl.java:1544)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(XMLDocumentFragmentScannerImpl.ja va:329)
    at org.apache.xerces.parsers.DTDConfiguration.parse(D TDConfiguration.java:525)

    Other info:
    I have verified that all other dependencies should be there eg. all the apache commons libs, el-ri.jar etc.

    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="WebApp_ID">

    <display-name>UserAdministration</display-name>
    <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>/WEB-INF/classes/log4j_spring.xml</param-value>
    </context-param>

    <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsF ilter</filter-class>
    </filter>

    <filter>
    <filter-name>requestContextFilter</filter-name>
    <filter-class>org.springframework.web.filter.RequestContex tFilter</filter-class>
    </filter>

    <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <!-- 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>

    <filter-mapping>
    <filter-name>requestContextFilter</filter-name>
    <url-pattern>/dwr/*</url-pattern>
    </filter-mapping>

    <listener>
    <listener-class>org.springframework.web.util.Log4jConfigList ener</listener-class>
    </listener>

    <servlet>
    <servlet-name>administrationapp</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet>
    <servlet-name>SSOservlet</servlet-name>
    <display-name>SSOservlet</display-name>
    <description></description>
    <servlet-class>
    sdk.sas.usermanagement.servlet.SSOservlet</servlet-class>
    </servlet>
    <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>administrationapp</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
    <servlet-name>administrationapp</servlet-name>
    <url-pattern>*.form</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
    <servlet-name>administrationapp</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>


    <servlet-mapping>
    <servlet-name>administrationapp</servlet-name>
    <url-pattern>/Excel/users.xls</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
    <servlet-name>SSOservlet</servlet-name>
    <url-pattern>/SSOservlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>


    <session-config>
    <session-timeout>15</session-timeout>
    </session-config>

    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>

    faces-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

    <faces-config>
    <managed-bean>
    <description>
    Backing bean for tree example.
    </description>
    <managed-bean-name>treeBean</managed-bean-name>
    <managed-bean-class>
    sdk.sas.usermanagement.organization.TreeBean
    </managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>


    Snippet of administrationapp-servlet.xml:
    <?xml version="1.0" encoding="UTF-8"?>

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:faces="http://www.springframework.org/schema/faces"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xmlns:webflow="http://www.springframework.org/schema/webflow-config"
    xsi:schemaLocation=
    "http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/aop
    http://www.springframework.org/schem...ng-aop-2.5.xsd
    http://www.directwebremoting.org/schema/spring-dwr
    http://www.directwebremoting.org/sch...ng-dwr-2.0.xsd
    http://www.springframework.org/schema/webflow-config
    http://www.springframework.org/schem...config-2.0.xsd
    http://www.springframework.org/schema/faces
    http://www.springframework.org/schema/faces/spring-faces-2.0.xsd">

    <!-- the application context definition for the springapp DispatcherServlet -->

    <bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="alwaysUseFullPath" value="false"/>
    <property name="mappings">
    <props>
    <prop key="*">dwrController</prop>
    <prop key="/wfupload.form">fileUploadController</prop>
    <prop key="/upload.form">uploadController</prop>
    <prop key="/roleManager.form">roleController</prop>
    <prop key="/login.form">loginController</prop>
    <prop key="/userAdm.form">userAdm</prop>
    <prop key="/passwordAdm.form">passwordAdm</prop>
    <prop key="/ChangePassword.form">passwordAdm</prop>
    <prop key="/UserSelfCheck.form">passwordAdm</prop>
    <prop key="/sso.do">trustedAuth</prop>
    <prop key="/Excel/*">excel</prop>
    <prop key ="/roleorg.form">roleOrgController</prop>
    </props>
    </property>
    </bean>......


    Hope someone knows the trick!!

    TIA
    /Søren
Working...
X