myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wang suya <o-s...@seiss.co.jp>
Subject Re: I installed MyFace-core-1.1.5 and Tomahaka-1.1.5-SNAPSHOT but Listener does not work.
Date Mon, 19 Feb 2007 07:24:10 GMT
 
  I add my program, please tell me where my wrong is.

samplejsf.jsp
<%@page contentType="text/html; charset=Shift_JIS" %>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>
<head>
<title>jsfsample1</title>
</head>
<body bgcolor="#ffffff">
<h1>JSF sample</h1>
<f:view>
	<h:form id="form1">
		<h:outputText
		id="text1" 
		value="Welcome to JavaServer Pagee."
		binding="#{SampleJsfBean.text1}"/>
		<br />
		<h:selectBooleanCheckbox 
		id="check1"
		value="true"
		onchange="this.form.submit();"
		binding="#{SampleJsfBean.check1}"
		valueChangeListener="#{SampleJsfBean.check1_valueChanged}" />
		<h:messages/>
		<h:outputText	
		value="check"/>
	</h:form>

</f:view>
</body>
</html>	

sampleJsfBean.java

package jp.tuyano.eclipsebook3;

import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlSelectBooleanCheckbox;
import javax.faces.event.ValueChangeEvent;

/**
 * @author ‰?
 *
 */
public class SampleJsfBean {
	private HtmlOutputText text1;
	private HtmlSelectBooleanCheckbox check1;
	
	/**
	 * @return check1 ?d?s?μ?U?・?B
	 */
	public HtmlSelectBooleanCheckbox getCheck1() {
		return check1;
	}
	/**
	 * @param check1 ?Y’e?・?e check1?B
	 */
	public void setCheck1(HtmlSelectBooleanCheckbox check1) {
		this.check1 = check1;
	}
	/**
	/**
	 * @return text1 ?d?s?μ?U?・?B
	 */
	public HtmlOutputText getText1() {
		return text1;
	}
	/**
	 * @param text1 ?Y’e?・?e text1?B
	 */
	public void setText1(HtmlOutputText text1) {
		this.text1 = text1;
	}
	
	
	public void check1_valueChanged(ValueChangeEvent valueChangeEvent){
		text1.setValue("here");
		Boolean neu =(Boolean)valueChangeEvent.getNewValue();
		text1.setValue("check is " + neu.toString());
	}
}

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<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">
	<display-name>JSFSample</display-name> 
		<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>
</web-app>

face-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 xmlns="http://java.sun.com/JSF/Configuration">
	<managed-bean>
		<managed-bean-name>SampleJsfBean</managed-bean-name> 
		<managed-bean-
class>jp.tuyano.eclipsebook3.SampleJsfBean</managed-bean-class> 
		<managed-bean-scope>session</managed-bean-scope> 
	</managed-bean>
</faces-config>

this program cannot run in both tomcat5.5.12 and tomcat5.5.20.

>Hello
>
>   I found Tomahawk-1.1.5-SNAPSHOT and installed it. When I made sampleJSF.war
>file the error of before did not appeared but when I run it the Listener still
>did not work. Who can tell me why? Thank you.
>
> The message of runing is as bellow:
>
>2007/02/19 14:59:07 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
>情報: The Apache Portable Runtime which allows optimal performance in production environments
was not found on the java.library.path: C:\Program Files
>\Java\jre1.5.0_05\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools
>\Binn\;C:\Program Files\java\jdk1.5.0_05bin;
>2007/02/19 14:59:07 org.apache.coyote.http11.Http11BaseProtocol init
>情報: Coyote HTTP/1.1を http-8080 で初期化します
>2007/02/19 14:59:07 org.apache.catalina.startup.Catalina load
>情報: Initialization processed in 5438 ms
>2007/02/19 14:59:08 org.apache.catalina.core.StandardService start
>情報: サービス Catalina を起動します
>2007/02/19 14:59:08 org.apache.catalina.core.StandardEngine start
>情報: Starting Servlet Engine: Apache Tomcat/5.5.12
>2007/02/19 14:59:08 org.apache.catalina.core.StandardHost start
>情報: XML検証は無効です
>2007/02/19 14:59:13 org.apache.coyote.http11.Http11BaseProtocol start
>情報: Coyote HTTP/1.1を http-8080 で起動します
>2007/02/19 14:59:14 org.apache.jk.common.ChannelSocket init
>情報: JK: ajp13 listening on /0.0.0.0:8009
>2007/02/19 14:59:14 org.apache.jk.server.JkMain start
>情報: Jk running ID=0 time=0/210  config=null
>2007/02/19 14:59:14 org.apache.catalina.storeconfig.StoreLoader load
>情報: Find registry server-registry.xml at classpath resource
>2007/02/19 14:59:15 org.apache.catalina.startup.Catalina start
>情報: Server startup in 7711 ms
>2007/02/19 14:59:34 org.apache.catalina.startup.HostConfig deployWAR
>情報: Webアプリケーションアーカイブ sampleJSF.war を配備します
>2007/02/19 14:59:46 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
>情報: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
>情報: Reading config jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-1.1.5-
>SNAPSHOT.jar!/META-INF/faces-config.xml
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
>情報: Reading config jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-sandbox-1.1.5-
>SNAPSHOT.jar!/META-INF/faces-config.xml
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
>情報: Reading config /WEB-INF/faces-config.xml
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/myfaces-api-1.1.5.jar
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/myfaces-impl-1.1.5.jar
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : tomahawk-sandbox in version : 1.1.5-SNAPSHOT from
path : file:/C:/Program%20Files/Apache%20Software%
>20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-sandbox-1.1.5-SNAPSHOT.jar
>2007/02/19 14:59:47 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : tomahawk in version : 1.1.5-SNAPSHOT from path :
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-1.1.5-SNAPSHOT.jar
>2007/02/19 14:59:48 org.apache.myfaces.shared_impl.util.LocaleUtils toLocale
>警告: Locale name in faces-config.xml null or empty, setting locale to default locale
: ja_JP
>2007/02/19 14:59:52 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl addRenderer
>情報: Overwriting renderer with family = javax.faces.Form rendererType = javax.faces.Form
renderer class = 
>org.apache.myfaces.renderkit.html.ext.HtmlFormRenderer
>2007/02/19 14:59:53 org.apache.myfaces.config.FacesConfigurator handleSerialFactory
>情報: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>2007/02/19 14:59:53 org.apache.myfaces.webapp.StartupServletContextListener initFaces
>情報: ServletContext 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\sampleJSF\'
initialized.
>2007/02/19 15:00:03 org.apache.catalina.startup.HostConfig checkResources
>情報: コンテキストパス /sampleJSF のWebアプリケーションの配備を解除します
>2007/02/19 15:00:03 org.apache.catalina.startup.HostConfig deployWAR
>情報: Webアプリケーションアーカイブ sampleJSF.war を配備します
>2007/02/19 15:00:14 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
>情報: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
>情報: Reading config jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-1.1.5-
>SNAPSHOT.jar!/META-INF/faces-config.xml
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
>情報: Reading config jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-sandbox-1.1.5-
>SNAPSHOT.jar!/META-INF/faces-config.xml
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
>情報: Reading config /WEB-INF/faces-config.xml
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/myfaces-api-1.1.5.jar
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/myfaces-impl-1.1.5.jar
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : tomahawk-sandbox in version : 1.1.5-SNAPSHOT from
path : file:/C:/Program%20Files/Apache%20Software%
>20Foundation/Tomcat%205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-sandbox-1.1.5-SNAPSHOT.jar
>2007/02/19 15:00:15 org.apache.myfaces.config.FacesConfigurator logMetaInf
>情報: Starting up MyFaces-package : tomahawk in version : 1.1.5-SNAPSHOT from path :
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%
>205.5/webapps/sampleJSF/WEB-INF/lib/tomahawk-1.1.5-SNAPSHOT.jar
>2007/02/19 15:00:16 org.apache.myfaces.shared_impl.util.LocaleUtils toLocale
>警告: Locale name in faces-config.xml null or empty, setting locale to default locale
: ja_JP
>2007/02/19 15:00:21 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl addRenderer
>情報: Overwriting renderer with family = javax.faces.Form rendererType = javax.faces.Form
renderer class = 
>org.apache.myfaces.renderkit.html.ext.HtmlFormRenderer
>2007/02/19 15:00:23 org.apache.myfaces.config.FacesConfigurator handleSerialFactory
>情報: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>2007/02/19 15:00:23 org.apache.myfaces.webapp.StartupServletContextListener initFaces
>情報: ServletContext 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\sampleJSF\'
initialized.
>2007/02/19 15:00:34 org.apache.catalina.core.ApplicationContext log
>情報: No state saving method defined, assuming default server state saving
>2007/02/19 15:00:34 org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager createRedirectTrackerManager
>情報: No context init parameter 'org.apache.myfaces.redirectTracker.POLICY' found, using
default value 
>org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy
>2007/02/19 15:00:34 org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager createRedirectTrackerManager
>情報: No context init parameter 'org.apache.myfaces.redirectTracker.MAX_REDIRECTS' found,
using default value 20
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default
value true
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
value true
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS'
found, using default value true
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using
default value false
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default
value false
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
>情報: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using
default value 
>org.apache.myfaces.renderkit.html.util.DefaultAddResource
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
>情報: No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using
default value /faces/myFacesExtensionResource
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
>情報: No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found,
using default value true
>2007/02/19 15:00:49 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getCurrentInstance
>情報: Starting up Tomahawk on the MyFaces-JSF-Implementation
>
>
>
>>
>>Hi Titi 
>>   thank you for your email
>>>erm... on the compatibility matrix...
>>>http://wiki.apache.org/myfaces/CompatibilityMatrix
>>>i don't think core 1.1.5 works with tomahawak 1.1.3
>>
>>  But I try to find tomahawk1.1.5-SNAPSHOT in Internet and download it
>>, I could not find where it is. Could you tell me where it is in?
>>
>>
>>   Wang suya
>>
>>wang suya
>>
>
>wang suya
>

wang suya

Mime
View raw message