运行tomcat出错

qq_29680981 2015-07-31 10:02:33
七月 31, 2015 9:58:00 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Users\nguyenhoc\AppData\Local\MyEclipse 2015 CI\plugins\com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201503191638\tomcat70\bin
七月 31, 2015 9:58:02 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
七月 31, 2015 9:58:02 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
七月 31, 2015 9:58:02 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3051 ms
七月 31, 2015 9:58:02 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
七月 31, 2015 9:58:02 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.56
七月 31, 2015 9:58:03 下午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive E:\Javafile\.metadata\.me_tcat7\webapps\firstweb.war
七月 31, 2015 9:58:05 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [486] milliseconds.
七月 31, 2015 9:58:05 下午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deployment of web application archive E:\Javafile\.metadata\.me_tcat7\webapps\firstweb.war has finished in 2,665 ms
七月 31, 2015 9:58:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Javafile\.metadata\.me_tcat7\webapps\docs
七月 31, 2015 9:58:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Javafile\.metadata\.me_tcat7\webapps\docs has finished in 205 ms
七月 31, 2015 9:58:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Javafile\.metadata\.me_tcat7\webapps\examples
七月 31, 2015 9:58:07 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
七月 31, 2015 9:58:07 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
七月 31, 2015 9:58:07 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@12d78bd')
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Javafile\.metadata\.me_tcat7\webapps\examples has finished in 1,437 ms
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Javafile\.metadata\.me_tcat7\webapps\host-manager
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Javafile\.metadata\.me_tcat7\webapps\host-manager has finished in 246 ms
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Javafile\.metadata\.me_tcat7\webapps\manager
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Javafile\.metadata\.me_tcat7\webapps\manager has finished in 122 ms
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Javafile\.metadata\.me_tcat7\webapps\ROOT
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Javafile\.metadata\.me_tcat7\webapps\ROOT has finished in 92 ms
七月 31, 2015 9:58:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
七月 31, 2015 9:58:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
七月 31, 2015 9:58:07 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 5337 ms
七月 31, 2015 10:00:18 下午 org.apache.catalina.startup.HostConfig undeploy
信息: Undeploying context [/firstweb]
七月 31, 2015 10:00:18 下午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive E:\Javafile\.metadata\.me_tcat7\webapps\firstweb.war
七月 31, 2015 10:00:18 下午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deployment of web application archive E:\Javafile\.metadata\.me_tcat7\webapps\firstweb.war has finished in 364 ms
七月 31, 2015 10:01:02 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/firstweb] threw exception
java.io.IOException: An exception occurred processing JSP page /registerok.jsp at line 4

1: <html>
2: <body>
3: <%
4: request.setCharacterEncoding("uif-8");
5: String username=request.getParameter("username");
6: String userpass=request.getParameter("userpass");
7: String userxb=request.getParameter("userxb");


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:460)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.UnsupportedEncodingException: The character encoding [uif-8] is not supported
at org.apache.tomcat.util.buf.B2CConverter.getCharsetLower(B2CConverter.java:91)
at org.apache.tomcat.util.buf.B2CConverter.getCharset(B2CConverter.java:78)
at org.apache.catalina.connector.Request.setCharacterEncoding(Request.java:1637)
at org.apache.catalina.connector.RequestFacade.setCharacterEncoding(RequestFacade.java:330)
at org.apache.jsp.registerok_jsp._jspService(registerok_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
... 23 more
...全文
318 点赞 收藏 5
写回复
5 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
qingyuan18 2015-08-04
uif8 -> utf8
回复
abc45628 2015-08-04
request.setCharacterEncoding("uif-8");
回复
迷林 2015-08-04
Apache Tomcat的本机库,它允许在生产环境中获得最佳性能并没有对找到的java.library.path:C:\ Program Files文件(x86)的\的Java \ jre7 \ BIN; C:\ Users \用户nguyenhoc \ AppData的\本地\ MyEclipse的2015年CI \插件\ com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201503191638 \ tomcat70 \ BIN
回复
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Users\nguyenhoc\AppData\Local\MyEclipse 2015 CI\plugins\com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201503191638\tomcat70\bin 看样子是jdk的问题
回复
潇湘浪子 2015-08-03
Caused by: java.io.UnsupportedEncodingException: The character encoding [uif-8] is not supported 你是不是想写utf-8啊?
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-07-31 10:02
社区公告
暂无公告