You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Leonhard Holzer <le...@abuscom.com> on 2007/06/05 11:41:38 UTC
Tobago - myfaces - tomcat java 1.4
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
----------------------------------
Re: Tobago - myfaces - tomcat java 1.4
Posted by Leonhard Holzer <le...@abuscom.com>.
Hello Bernd,
I can't find the info message you mentioned. This are the log file
entries I found.
2007-06-07 08:52:48,943 INFO
[org.springframework.web.context.ContextLoader] - <Root
WebApplicationContext: initialization started>
2007-06-07 08:52:49,053 INFO
[org.springframework.web.context.support.XmlWebApplicationContext] -
<Refreshing
org.springframework.web.context.support.XmlWebApplicationContext@163f7a1:
display name [Root WebApplicationContext]; startup date [Thu Jun 07
08:52:49 CEST 2007]; root of context hierarchy>
2007-06-07 08:52:49,303 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
<Loading XML bean definitions from class path resource
[com/gknplc/mdbClient/stub/services-config.xml]>
2007-06-07 08:52:49,568 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
<Loading XML bean definitions from ServletContext resource
[/WEB-INF/mdbClient-servlet-config.xml]>
2007-06-07 08:52:49,678 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
<Loading XML bean definitions from ServletContext resource
[/WEB-INF/mdbClient-webflow-config.xml]>
2007-06-07 08:52:49,881 INFO
[org.springframework.web.context.support.XmlWebApplicationContext] -
<Bean factory for application context
[org.springframework.web.context.support.XmlWebApplicationContext@163f7a1]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@221e9e>
2007-06-07 08:52:49,975 INFO
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
<Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@221e9e:
defining beans
[mdbClient,/mdbClient.htm,viewResolver,flowExecutor,flowRegistry]; root
of factory hierarchy>
2007-06-07 08:52:50,381 INFO
[org.springframework.web.context.ContextLoader] - <Root
WebApplicationContext: initialization completed in 1422 ms>
2007-06-07 08:52:50,600 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml>
2007-06-07 08:52:50,678 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Found
javax.faces.lifecycle.LifecycleFactory factory implementation:
org.apache.myfaces.tobago.lifecycle.TobagoLifecycleFactory>
2007-06-07 08:52:50,678 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Reading config
jar:file:/F:/leonhard/eclipseWs32/driveline/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/MdbClient/WEB-INF/lib/tobago-core-1.0.11-jdk14retro.jar!/META-INF/faces-config.xml>
2007-06-07 08:52:50,818 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Reading config
jar:file:/F:/leonhard/eclipseWs32/driveline/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/MdbClient/WEB-INF/lib/tobago-fileupload-1.0.11-jdk14retro.jar!/META-INF/faces-config.xml>
2007-06-07 08:52:50,850 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Reading config
/WEB-INF/faces-config.xml>
2007-06-07 08:52:50,865 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Starting up
MyFaces-package : myfaces-api in version : 1.1.5 from path :
file:/F:/leonhard/eclipseWs32/driveline/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/MdbClient/WEB-INF/lib/myfaces-api-1.1.5.jar>
2007-06-07 08:52:50,865 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Starting up
MyFaces-package : myfaces-impl in version : 1.1.5 from path :
file:/F:/leonhard/eclipseWs32/driveline/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/MdbClient/WEB-INF/lib/myfaces-impl-1.1.5.jar>
2007-06-07 08:52:50,865 INFO
[org.apache.myfaces.config.FacesConfigurator] - <MyFaces-package :
tomahawk-sandbox not found.>
2007-06-07 08:52:50,865 INFO
[org.apache.myfaces.config.FacesConfigurator] - <MyFaces-package :
tomahawk not found.>
2007-06-07 08:52:51,053 INFO
[org.apache.myfaces.tobago.application.ViewHandlerImpl] - <Hiding RI
base implemation:
org.apache.myfaces.application.jsp.JspViewHandlerImpl@b57e9a>
2007-06-07 08:52:51,334 INFO
[org.apache.myfaces.tobago.lifecycle.TobagoLifecycleFactory] - <new
TobagoLifecycleFactory>
2007-06-07 08:52:51,334 INFO
[org.apache.myfaces.tobago.lifecycle.TobagoLifecycleFactory] -
<getLifecycle("DEFAULT") -> TobagoLifecycle>
2007-06-07 08:52:51,334 INFO
[org.apache.myfaces.config.FacesConfigurator] - <Serialization provider
: class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory>
2007-06-07 08:52:51,350 INFO
[org.apache.myfaces.webapp.StartupServletContextListener] -
<ServletContext
'F:\leonhard\eclipseWs32\driveline\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\MdbClient\'
initialized.>
2007-06-07 08:52:51,365 INFO
[org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter] -
<Configure uploadRepositryPath for
org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter to
C:\DOKUME~1\leo\LOKALE~1\Temp\>
2007-06-07 08:52:51,365 INFO
[org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter] -
<Configure uploadMaxFileSize for
org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter to 1048576>
2007-06-07 08:52:51,381 INFO
[org.apache.myfaces.tobago.fileupload.FileUploadFacesContextFactoryImpl]
- <Configure uploadMaxFileSize for
org.apache.myfaces.tobago.fileupload.FileUploadFacesContextFactoryImpl
to 1048576>
2007-06-07 08:52:51,381 INFO
[org.apache.myfaces.tobago.fileupload.FileUploadFacesContextFactoryImpl]
- <Configure uploadRepositryPath for
org.apache.myfaces.tobago.fileupload.FileUploadFacesContextFactoryImpl
to C:\DOKUME~1\leo\LOKALE~1\Temp\>
2007-06-07 08:52:51,381 INFO
[org.apache.myfaces.tobago.lifecycle.TobagoLifecycleFactory] -
<getLifecycle("DEFAULT") -> TobagoLifecycle>
07.06.2007 08:52:51 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
07.06.2007 08:52:51 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL
file:F:\leonhard\eclipseWs32\driveline\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ROOT
07.06.2007 08:52:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
07.06.2007 08:52:51 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
07.06.2007 08:52:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/141 config=null
07.06.2007 08:52:51 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6094 ms
2007-06-07 08:53:19,146 INFO
[org.apache.myfaces.tobago.context.ClientProperties] -
<contentType='html' from header Accept='image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/x-shockwave-flash,
application/msword, */*'>
2007-06-07 08:53:19,146 INFO
[org.apache.myfaces.tobago.context.ClientProperties] - <userAgent='msie'
from header 'User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT
5.1; .NET CLR 1.1.4322)'>
2007-06-07 08:53:19,146 INFO
[org.apache.myfaces.tobago.context.ClientProperties] - <debug-mode=false>
Regards
Leonhard
Bernd Bohmann schrieb:
> Hello Leonhard,
>
> I think tobago is not configured correctly. Can you check the log files.
>
> Please look for a log info message '*** contextInitialized ***'
>
> Regards
>
> Bernd
>
> Leonhard Holzer wrote:
>> 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
----------------------------------
Re: Tobago - myfaces - tomcat java 1.4
Posted by Leonhard Holzer <le...@abuscom.com>.
Hello Bernd,
I have found the problem. It was simply the version of tomcat I used.
With tomcat 5.0. I got problems, with tomcat 5.5 the application works fine.
regards
Leonhard
Bernd Bohmann schrieb:
> Hello Leonhard,
>
> I think tobago is not configured correctly. Can you check the log files.
>
> Please look for a log info message '*** contextInitialized ***'
>
> Regards
>
> Bernd
>
> Leonhard Holzer wrote:
>> 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
----------------------------------
Re: Tobago - myfaces - tomcat java 1.4
Posted by Bernd Bohmann <be...@atanion.com>.
Hello Leonhard,
I think tobago is not configured correctly. Can you check the log files.
Please look for a log info message '*** contextInitialized ***'
Regards
Bernd
Leonhard Holzer wrote:
> 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
>
>
>