tomcat-JAVA问题:初学HttpServlet时遇到的问题,服务器用的Tomcat,求指教!

问题描述

JAVA问题:初学HttpServlet时遇到的问题,服务器用的Tomcat,求指教!

一月 30, 2016 10:28:59 上午 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
一月 30, 2016 10:28:59 上午 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
一月 30, 2016 10:28:59 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:bbs' did not find a matching property.
一月 30, 2016 10:29:00 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
一月 30, 2016 10:29:01 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8999"]
一月 30, 2016 10:29:01 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
一月 30, 2016 10:29:01 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2450 ms
一月 30, 2016 10:29:01 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 30, 2016 10:29:01 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.40
一月 30, 2016 10:29:01 上午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:tomcatapache-tomcat-7.0.40-windows-x64apache-tomcat-7.0.40wtpwebappsbbsWEB-INFlibservlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
一月 30, 2016 10:29:02 上午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/bbs]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/bbs]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalArgumentException: Invalid login in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3223)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3198)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1366)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1353)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more

一月 30, 2016 10:29:02 上午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more

一月 30, 2016 10:29:02 上午 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more

一月 30, 2016 10:29:02 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 903 ms


哪位大神可以帮忙看看,建一个服务,运行一个项目是正常的,但在运行另一个项目时总出错,然后单独运行Tomcat都错了,我真的不会了,希望你哪位可以帮帮小菜。。。

解决方案

可能原因:
你有JVM/JDK版本冲突,你deploy为war的Java代码与你的tomcat使用JDK版本不一致。

时间: 2024-10-18 07:28:07

tomcat-JAVA问题:初学HttpServlet时遇到的问题,服务器用的Tomcat,求指教!的相关文章

http-JAVA问题:初学HttpServlet时遇到的问题,服务器用的Tomcat,求指教!

问题描述 JAVA问题:初学HttpServlet时遇到的问题,服务器用的Tomcat,求指教! 做完上面这些代码后,在页面中点击提交,没有跳转,为什么? 解决方案 首先你部署到tomcat上,然后按照我的写 解决方案二: xml配置的时候加一个后缀 如 *.action 然后访问路径加上这个就行了 测试的时候 加上.action 解决方案三: 不太理解亲,这么写吗:/ServletTest2.action ,不太对额 解决方案四: url-pattern中改成/ServletTest2/* 解

在c#winform模拟四种页面置换算法时,怎么实现线程的同步,求指教

问题描述 在c#winform模拟四种页面置换算法时,怎么实现线程的同步,求指教 在模拟页面置换算法时,每种算法都可以实现,分别用了一个循环,关键问题是,要实现线程的同步,怎么做呢??? 解决方案 http://download.csdn.net/detail/skyuni/7444499 解决方案二: 还没有解决,求大神帮忙呀 解决方案三: 怎么定义线程才能让它在各个函数中都能使用....

ant编译-ubuntu中,通过java代码自动执行ant打包命令,结果ant permission denied,求指教

问题描述 ubuntu中,通过java代码自动执行ant打包命令,结果ant permission denied,求指教 ant权限已经更改了.且创建build.xml命令执行通过.当调用ant命令的时候.提示没有权限.好奇怪. 解决方案 就是在java中通过runtime.getruntime.exec执行命令 /bin/sh -c android create uitest-project....生成build.xml文件已经通过.但当通过exec执行命令/bin/sh -c ant bui

vs2013 调试时,数据变成了16位,求指教

问题描述 在类里面定义了一个常量a=0,在下面的方法里调用了a,调试时方法还没执行,a却变成了0x00000000:其实不止这里,其他的地方也是一样,获取的数据(包括ID)都变成了16位的,安装的是win7-64位,vs2013-64:本来以为是项目加了安全防护,但是同项目的其他同事,调试时都是明码显示的:网上其他资料说是调试时误点了调试选项边的16位选项,选回来就OK了,但那是vs2010.08.05版本的:求解.. 解决方案 解决方案二:调试时在断点停止后,在下边的值窗口点击右键会出现菜单,

导入easyui1.2.2时,页面加载特别慢,求指教

问题描述 目前项目中在yui和easyui中徘徊,前者不易使用,后者性能却很有问题.我只在页面中引入了easyui.js,就会导致页面加载慢上一个级别,这是为何呢?有无解决的办法?<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/siu/js/easyui/themes/default/easyui.css"/><li

服务器-JAVA:关于HTTPServlet和HTML的问题

问题描述 JAVA:关于HTTPServlet和HTML的问题 假设这个HTML文件就是个前台客户端,后台服务器是TomCat,用的是继承HttpServlet方式,那么这个前台HTML页面里画红框的部分不太理解 问题一:from标签里的id属性是什么意思,有name了还要id干什么? 问题二:action里提交地址的格式该怎么写?是否是这样子:TomCat中的servlet.xml中配置的path上下文路径 / web.xml里配置的url-pattern路径如果不是,请告诉我正确答案 问题三

struts-在Myeclipse配置Struts,用tomcat测试一个index.jsp时出现问题

问题描述 在Myeclipse配置Struts,用tomcat测试一个index.jsp时出现问题 本人新手,求助各位大牛~~~~~ HTTP Status 500 - cn.it.shop.action.CategoryAction.1() type Exception report message cn.it.shop.action.CategoryAction.1() description The server encountered an internal error that pre

配置-Java Web容器启动时,SessionFactory注入失败的问题

问题描述 Java Web容器启动时,SessionFactory注入失败的问题 包结构如下:Spring配置如下:UserDAO代码如下:Tomcat一启动,报错如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of resource dependencies failed; nested exception is org.

tomcat6.0 java 1.6 环境配置 免安装版和安装版 tomcat下载地址

tomcat6.0 java 1.6 环境配置 免安装版和安装版 tomcat下载地址 tomcat官网 http://tomcat.apache.org/download-60.cgi 免安装版 1.把jdk放在C:\Program Files目录下: 1)在环境变量Path前面添加 C:\Program Files\jdk_10\bin; 2)添加环境变量JAVA_HOME 值为 C:\Program Files\jdk_10 2.把tomcat安装在C:\Program Files目录下: