Hello everybody,

I'm trying to configure a sample application using Spring-Webflow, myfaces, tobago to run under tomcat and java 1.4 using the retro libraries. Everything works fine without tobago, b ut when I try to include tobago I get the following error:

javax.servlet.ServletException
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:158)
        
org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(TobagoMultipartFormdataFilter.java:130)


root cause

java.lang.NullPointerException
        
org.apache.myfaces.tobago.context.ClientProperties.<init>(ClientProperties.java:92)
        
org.apache.myfaces.tobago.context.ClientProperties.getInstance(ClientProperties.java:141)
        
org.apache.myfaces.tobago.application.ViewHandlerImpl.ensureClientProperties(ViewHandlerImpl.java:81)
        
org.apache.myfaces.tobago.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:73)
        
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:83)
        
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
        
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        
org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(TobagoMultipartFormdataFilter.java:130)



for further explanations:
web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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";
    version="2.4">
        
        <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>
                        classpath:com/gknplc/mdbClient/stub/services-config.xml
                        /WEB-INF/mdbClient-servlet-config.xml
                        /WEB-INF/mdbClient-webflow-config.xml
                </param-value>
        </context-param>

        <filter>
                <filter-name>multipartFormdataFilter</filter-name>
<filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter</filter-class>
        </filter>
        
        <filter-mapping>
                <filter-name>multipartFormdataFilter</filter-name>
                <url-pattern>*.faces</url-pattern>
        </filter-mapping>

        <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>

    <listener>

<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>

        <servlet>
        <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        </servlet>

        <servlet>
                <servlet-name>ResourceServlet</servlet-name>
<servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
        </servlet>


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

        <servlet-mapping>
                <servlet-name>ResourceServlet</servlet-name>
                
<url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
        </servlet-mapping>

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

The faces-config.xml
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd";>

<faces-config>
        <application>
                <navigation-handler>
                        
org.springframework.webflow.executor.jsf.FlowNavigationHandler
                </navigation-handler>
                <variable-resolver>
                        
org.springframework.webflow.executor.jsf.DelegatingFlowVariableResolver
                </variable-resolver>
        </application>

        <lifecycle>
                <phase-listener>
                        
org.springframework.webflow.executor.jsf.FlowPhaseListener
                </phase-listener>
        </lifecycle>
</faces-config>

The tobago-config.xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE tobago-config PUBLIC
"-//The Apache Software Foundation//DTD Tobago Config 1.0//EN" "tobago-config_1_0.dtd">

<tobago-config>

  <theme-config>
    <default-theme>speyside</default-theme>
  </theme-config>

  <resource-dir>tobago-resource</resource-dir>
  <resource-dir>org/apache/myfaces/tobago/renderkit</resource-dir>
</tobago-config>

Has anybody any suggestion?

Thanks
  Leo



--
----------------------------------
 Leonhard Holzer
 ABusCom GmbH
 Kapuzinerplatz 9
 I 39031 Bruneck
 Tel.:  +39 0474 538 000
 Fax.:  +39 0474 538 000
 mobil: +39 335 83 28 041
 web:   www.abuscom.com
----------------------------------

Reply via email to