Tomcat6.0.x 报错如下:2009-4-16 18:48:14 org.apache.catalina.core.AprLifecycleListener init
淇℃伅: The APR based Apache Tomcat Native library which allows optimal performa
nce in production environments was not found on the java.library.path: C:\UmpDev
\Java\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\ora92\bin;C:\Progr
am Files\Oracle\jre\1.1.8\bin;C:\UmpDev\Java\jdk1.5.0\bin;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;C:\UmpDev\maven\apache-maven-2.0.9\bin;C:\UmpS
vr\apache-servicemix-3.3\bin;d:\Program Files\SecureCRT\;C:\UmpDev\mysql-5.1.26-
rc-win32\bin;C:\UmpDev\apache-ant-1.7.1\bin;C:\UmpDev\jikes-1.22-1\bin
2009-4-16 18:48:14 org.apache.coyote.http11.Http11Protocol init
淇℃伅: Initializing Coyote HTTP/1.1 on http-8080
2009-4-16 18:48:14 org.apache.catalina.startup.Catalina load
淇℃伅: Initialization processed in 828 ms
2009-4-16 18:48:14 org.apache.catalina.core.StandardService start
淇℃伅: Starting service Catalina
2009-4-16 18:48:14 org.apache.catalina.core.StandardEngine start
淇℃伅: Starting Servlet Engine: Apache Tomcat/6.0.16
2009-4-16 18:48:15 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "listeners.ContextListener" is already configured for this
context. The duplicate definition has been ignored.
2009-4-16 18:48:15 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "listeners.SessionListener" is already configured for this
context. The duplicate definition has been ignored.
2009-4-16 18:48:16 org.apache.coyote.http11.Http11Protocol start
淇℃伅: Starting Coyote HTTP/1.1 on http-8080
2009-4-16 18:48:16 org.apache.jk.common.ChannelSocket init
淇℃伅: JK: ajp13 listening on /0.0.0.0:8009
2009-4-16 18:48:16 org.apache.jk.server.JkMain start
淇℃伅: Jk running ID=0 time=0/31 config=null
2009-4-16 18:48:16 org.apache.catalina.startup.Catalina start
淇℃伅: Server startup in 1649 ms
2009-4-16 18:48:26 org.apache.catalina.startup.HostConfig deployWAR
淇℃伅: Deploying web application archive ump-icefaces.war
2009-4-16 18:48:32 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater"
is already configured for this context. The duplicate definition has been ignor
ed.
2009-4-16 18:48:32 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater"
is already configured for this context. The duplicate definition has been ignor
ed.
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.PRETTY_HTML' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.ALLOW_JAVASCRIPT' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.RENDER_VIEWSTATE_ID' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.STRICT_XHTML_LINKS' found, using default value true
18:48:32,796 INFO MyfacesConfig:278 - No context init parameter 'org.apache.myf
aces.CONFIG_REFRESH_PERIOD' found, using default value 2
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.VIEWSTATE_JAVASCRIPT' found, using default value false
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.DETECT_JAVASCRIPT' found, using default value false
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.AUTO_SCROLL' found, using default value false
18:48:32,796 INFO MyfacesConfig:265 - No context init parameter 'org.apache.myf
aces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit
.html.util.DefaultAddResource
18:48:32,796 INFO MyfacesConfig:265 - No context init parameter 'org.apache.myf
aces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionRe
source
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.CHECK_EXTENSIONS_FILTER' found, using default value true
18:48:32,812 INFO MyfacesConfig:222 - Starting up Tomahawk on the MyFaces-JSF-I
mplementation
18:48:32,875 INFO FacesConfigurator:292 - Reading standard config META-INF/stan
dard-faces-config.xml
18:48:33,000 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-1.8.0.jar!/META-INF
/faces-config.xml
18:48:33,000 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-comps-1.8.0.jar!/ME
TA-INF/faces-config.xml
18:48:33,015 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-facelets-1.8.0.jar!
/META-INF/faces-config.xml
18:48:33,031 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF
/faces-config.xml
18:48:33,046 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/util-taglib-5.2.2.jar!/META-
INF/faces-config.xml
18:48:33,046 INFO FacesConfigurator:566 - Reading config /WEB-INF/faces-config.
xml
18:48:33,093 INFO FacesConfigurator:331 - Starting up MyFaces-package : myfaces
-api in version : 1.2.2 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapps
/ump-icefaces/WEB-INF/lib/myfaces-api-1.2.2.jar
18:48:33,109 INFO FacesConfigurator:331 - Starting up MyFaces-package : myfaces
-impl in version : 1.2.2 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapp
s/ump-icefaces/WEB-INF/lib/myfaces-impl-1.2.2.jar
18:48:33,109 INFO FacesConfigurator:339 - MyFaces-package : tomahawk-sandbox no
t found.
18:48:33,109 INFO FacesConfigurator:331 - Starting up MyFaces-package : tomahaw
k in version : 1.1.6 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapps/um
p-icefaces/WEB-INF/lib/tomahawk-1.1.6.jar
18:48:33,140 INFO ViewRootStateManagerImpl:37 - ViewRootStateManagerImpl constr
ucted with Delegate: org.apache.myfaces.application.jsp.JspStateManagerImpl@1a42
792
18:48:33,140 WARN LocaleUtils:55 - Locale name in faces-config.xml null or empt
y, setting locale to default locale : zh_CN
18:48:33,156 INFO D2DViewHandler:81 -
ICEsoft Technologies, Inc.
ICEfaces 1.8.0
Build number: 12
Revision: 1872718:48:33,828 INFO FacesConfigurator:1039 - Serialization provider : class org.a
pache.myfaces.shared_impl.util.serial.DefaultSerialFactory
2009-4-16 18:48:33 org.apache.catalina.core.StandardContext start
涓ラ噸: Error listenerStart
2009-4-16 18:48:33 org.apache.catalina.core.StandardContext start
涓ラ噸: Context [/ump-icefaces] startup failed due to previous errors
18:48:33,890 INFO DefaultLifecycleProviderFactory:54 - No ExternalContext using
fallback LifecycleProvider.
18:48:33,890 INFO DefaultLifecycleProviderFactory:67 - Using LifecycleProvider
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
18:48:33,906 INFO ContextEventRepeater:191 - Servlet Context Name: null, Server
Info: Apache Tomcat/6.0.16
淇℃伅: The APR based Apache Tomcat Native library which allows optimal performa
nce in production environments was not found on the java.library.path: C:\UmpDev
\Java\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\ora92\bin;C:\Progr
am Files\Oracle\jre\1.1.8\bin;C:\UmpDev\Java\jdk1.5.0\bin;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;C:\UmpDev\maven\apache-maven-2.0.9\bin;C:\UmpS
vr\apache-servicemix-3.3\bin;d:\Program Files\SecureCRT\;C:\UmpDev\mysql-5.1.26-
rc-win32\bin;C:\UmpDev\apache-ant-1.7.1\bin;C:\UmpDev\jikes-1.22-1\bin
2009-4-16 18:48:14 org.apache.coyote.http11.Http11Protocol init
淇℃伅: Initializing Coyote HTTP/1.1 on http-8080
2009-4-16 18:48:14 org.apache.catalina.startup.Catalina load
淇℃伅: Initialization processed in 828 ms
2009-4-16 18:48:14 org.apache.catalina.core.StandardService start
淇℃伅: Starting service Catalina
2009-4-16 18:48:14 org.apache.catalina.core.StandardEngine start
淇℃伅: Starting Servlet Engine: Apache Tomcat/6.0.16
2009-4-16 18:48:15 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "listeners.ContextListener" is already configured for this
context. The duplicate definition has been ignored.
2009-4-16 18:48:15 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "listeners.SessionListener" is already configured for this
context. The duplicate definition has been ignored.
2009-4-16 18:48:16 org.apache.coyote.http11.Http11Protocol start
淇℃伅: Starting Coyote HTTP/1.1 on http-8080
2009-4-16 18:48:16 org.apache.jk.common.ChannelSocket init
淇℃伅: JK: ajp13 listening on /0.0.0.0:8009
2009-4-16 18:48:16 org.apache.jk.server.JkMain start
淇℃伅: Jk running ID=0 time=0/31 config=null
2009-4-16 18:48:16 org.apache.catalina.startup.Catalina start
淇℃伅: Server startup in 1649 ms
2009-4-16 18:48:26 org.apache.catalina.startup.HostConfig deployWAR
淇℃伅: Deploying web application archive ump-icefaces.war
2009-4-16 18:48:32 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater"
is already configured for this context. The duplicate definition has been ignor
ed.
2009-4-16 18:48:32 org.apache.catalina.core.StandardContext addApplicationListen
er
淇℃伅: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater"
is already configured for this context. The duplicate definition has been ignor
ed.
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.PRETTY_HTML' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.ALLOW_JAVASCRIPT' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.RENDER_VIEWSTATE_ID' found, using default value true
18:48:32,781 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.STRICT_XHTML_LINKS' found, using default value true
18:48:32,796 INFO MyfacesConfig:278 - No context init parameter 'org.apache.myf
aces.CONFIG_REFRESH_PERIOD' found, using default value 2
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.VIEWSTATE_JAVASCRIPT' found, using default value false
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.DETECT_JAVASCRIPT' found, using default value false
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.AUTO_SCROLL' found, using default value false
18:48:32,796 INFO MyfacesConfig:265 - No context init parameter 'org.apache.myf
aces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit
.html.util.DefaultAddResource
18:48:32,796 INFO MyfacesConfig:265 - No context init parameter 'org.apache.myf
aces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionRe
source
18:48:32,796 INFO MyfacesConfig:240 - No context init parameter 'org.apache.myf
aces.CHECK_EXTENSIONS_FILTER' found, using default value true
18:48:32,812 INFO MyfacesConfig:222 - Starting up Tomahawk on the MyFaces-JSF-I
mplementation
18:48:32,875 INFO FacesConfigurator:292 - Reading standard config META-INF/stan
dard-faces-config.xml
18:48:33,000 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-1.8.0.jar!/META-INF
/faces-config.xml
18:48:33,000 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-comps-1.8.0.jar!/ME
TA-INF/faces-config.xml
18:48:33,015 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/icefaces-facelets-1.8.0.jar!
/META-INF/faces-config.xml
18:48:33,031 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF
/faces-config.xml
18:48:33,046 INFO FacesConfigurator:507 - Reading config jar:file:/C:/UmpSvr/ap
ache-tomcat-6.0.16/webapps/ump-icefaces/WEB-INF/lib/util-taglib-5.2.2.jar!/META-
INF/faces-config.xml
18:48:33,046 INFO FacesConfigurator:566 - Reading config /WEB-INF/faces-config.
xml
18:48:33,093 INFO FacesConfigurator:331 - Starting up MyFaces-package : myfaces
-api in version : 1.2.2 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapps
/ump-icefaces/WEB-INF/lib/myfaces-api-1.2.2.jar
18:48:33,109 INFO FacesConfigurator:331 - Starting up MyFaces-package : myfaces
-impl in version : 1.2.2 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapp
s/ump-icefaces/WEB-INF/lib/myfaces-impl-1.2.2.jar
18:48:33,109 INFO FacesConfigurator:339 - MyFaces-package : tomahawk-sandbox no
t found.
18:48:33,109 INFO FacesConfigurator:331 - Starting up MyFaces-package : tomahaw
k in version : 1.1.6 from path : file:/C:/UmpSvr/apache-tomcat-6.0.16/webapps/um
p-icefaces/WEB-INF/lib/tomahawk-1.1.6.jar
18:48:33,140 INFO ViewRootStateManagerImpl:37 - ViewRootStateManagerImpl constr
ucted with Delegate: org.apache.myfaces.application.jsp.JspStateManagerImpl@1a42
792
18:48:33,140 WARN LocaleUtils:55 - Locale name in faces-config.xml null or empt
y, setting locale to default locale : zh_CN
18:48:33,156 INFO D2DViewHandler:81 -
ICEsoft Technologies, Inc.
ICEfaces 1.8.0
Build number: 12
Revision: 1872718:48:33,828 INFO FacesConfigurator:1039 - Serialization provider : class org.a
pache.myfaces.shared_impl.util.serial.DefaultSerialFactory
2009-4-16 18:48:33 org.apache.catalina.core.StandardContext start
涓ラ噸: Error listenerStart
2009-4-16 18:48:33 org.apache.catalina.core.StandardContext start
涓ラ噸: Context [/ump-icefaces] startup failed due to previous errors
18:48:33,890 INFO DefaultLifecycleProviderFactory:54 - No ExternalContext using
fallback LifecycleProvider.
18:48:33,890 INFO DefaultLifecycleProviderFactory:67 - Using LifecycleProvider
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
18:48:33,906 INFO ContextEventRepeater:191 - Servlet Context Name: null, Server
Info: Apache Tomcat/6.0.16
我用的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">
<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>Persistent Faces Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet> <servlet>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.BlockingServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet> <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping> <servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping> <servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping> <servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</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>*.faces</url-pattern>
</servlet-mapping> <listener>
<listener-class>
com.icesoft.faces.util.event.servlet.ContextEventRepeater
</listener-class>
</listener>
</web-app>
<listener>
<listener-class>
com.icesoft.faces.util.event.servlet.ContextEventRepeater
</listener-class>
</listener>
可能是在<servlet></servlet>标签
之前吧..
还有Tomcat在后台程序中应该是关闭的,设置成手动,