首页新闻找找看学习计划

在搭建web项目中eclipse报错

0
[已解决问题] 解决于 2018-04-28 08:40
  1 2018-4-26 10:04:47 org.apache.tomcat.util.digester.SetPropertiesRule begin
  2 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:STS' did not find a matching property.
  3 2018-4-26 10:04:47 org.apache.tomcat.util.digester.SetPropertiesRule begin
  4 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mybatis_at_last' did not find a matching property.
  5 2018-4-26 10:04:47 org.apache.tomcat.util.digester.SetPropertiesRule begin
  6 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mybatis_class_four' did not find a matching property.
  7 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
  8 信息: Server version:        Apache Tomcat/7.0.82
  9 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 10 信息: Server built:          Sep 29 2017 12:23:15 UTC
 11 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 12 信息: Server number:         7.0.82.0
 13 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 14 信息: OS Name:               Windows Vista
 15 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 16 信息: OS Version:            6.2
 17 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 18 信息: Architecture:          x86
 19 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 20 信息: Java Home:             D:\Java
 21 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 22 信息: JVM Version:           1.6.0_10-rc2-b32
 23 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 24 信息: JVM Vendor:            Sun Microsystems Inc.
 25 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 26 信息: CATALINA_BASE:         G:\java工作室\BaoFeng\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
 27 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 28 信息: CATALINA_HOME:         D:\apache-tomcat-7.0.82-windows-x64\apache-tomcat-7.0.82
 29 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 30 信息: Command line argument: -Dcatalina.base=G:\java工作室\BaoFeng\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
 31 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 32 信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.82-windows-x64\apache-tomcat-7.0.82
 33 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 34 信息: Command line argument: -Dwtp.deploy=G:\java工作室\BaoFeng\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
 35 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 36 信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.82-windows-x64\apache-tomcat-7.0.82\endorsed
 37 2018-4-26 10:04:47 org.apache.catalina.startup.VersionLoggerListener log
 38 信息: Command line argument: -Dfile.encoding=GBK
 39 2018-4-26 10:04:47 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 40 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/Java/bin/client;D:/Java/bin;D:/Java/lib/i386;D:\Java\jdk1.8.0_121\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Users\hp\AppData\Local\Microsoft\WindowsApps;
 41 2018-4-26 10:04:47 org.apache.coyote.AbstractProtocol init
 42 信息: Initializing ProtocolHandler ["http-bio-8080"]
 43 2018-4-26 10:04:47 org.apache.coyote.AbstractProtocol init
 44 信息: Initializing ProtocolHandler ["ajp-bio-8009"]
 45 2018-4-26 10:04:47 org.apache.catalina.startup.Catalina load
 46 信息: Initialization processed in 364 ms
 47 2018-4-26 10:04:47 org.apache.catalina.core.StandardService startInternal
 48 信息: Starting service Catalina
 49 2018-4-26 10:04:47 org.apache.catalina.core.StandardEngine startInternal
 50 信息: Starting Servlet Engine: Apache Tomcat/7.0.82
 51 2018-4-26 10:04:48 org.apache.tomcat.websocket.server.WsSci onStartup
 52 信息: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
 53 2018-4-26 10:04:48 org.apache.catalina.startup.TldConfig execute
 54 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
 55 2018-4-26 10:04:48 org.apache.catalina.core.ApplicationContext log
 56 信息: Log4jServletContainerInitializer starting up Log4j in Servlet 3.0+ environment.
 57 2018-4-26 10:04:48 org.apache.catalina.core.ApplicationContext log
 58 信息: Log4jServletContextListener ensuring that Log4j starts up properly.
 59 2018-4-26 10:04:48 org.apache.catalina.core.ApplicationContext log
 60 信息: Log4jServletFilter initialized.
 61 2018-4-26 10:04:49 org.apache.catalina.core.ContainerBase startInternal
 62 严重: A child container failed during start
 63 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STS]]
 64     at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
 65     at java.util.concurrent.FutureTask.get(Unknown Source)
 66     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1239)
 67     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
 68     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 69     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)
 70     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)
 71     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 72     at java.util.concurrent.FutureTask.run(Unknown Source)
 73     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 74     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 75     at java.lang.Thread.run(Unknown Source)
 76 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STS]]
 77     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
 78     ... 7 more
 79 Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name AdminLoginCotorller
 80     at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3428)
 81     at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3407)
 82     at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1438)
 83     at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1359)
 84     at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
 85     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
 86     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 87     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 88     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5519)
 89     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 90     ... 7 more
 91 2018-4-26 10:04:49 org.apache.catalina.startup.TldConfig execute
 92 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
 93 2018-4-26 10:04:49 org.apache.catalina.core.ApplicationContext log
 94 信息: Log4jServletContainerInitializer starting up Log4j in Servlet 3.0+ environment.
 95 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
 96 信息: Log4jServletContextListener ensuring that Log4j starts up properly.
 97 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
 98 信息: Log4jServletFilter initialized.
 99 2018-4-26 10:04:50 org.apache.catalina.core.ContainerBase startInternal
100 严重: A child container failed during start
101 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
102     at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
103     at java.util.concurrent.FutureTask.get(Unknown Source)
104     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1239)
105     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
106     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
107     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
108     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
109     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:758)
110     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
111     at org.apache.catalina.startup.Catalina.start(Catalina.java:694)
112     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
113     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
114     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
115     at java.lang.reflect.Method.invoke(Unknown Source)
116     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
117     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
118 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
119     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
120     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)
121     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)
122     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
123     at java.util.concurrent.FutureTask.run(Unknown Source)
124     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
125     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
126     at java.lang.Thread.run(Unknown Source)
127 Caused by: org.apache.catalina.LifecycleException: A child container failed during start
128     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1247)
129     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
130     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
131     ... 7 more
132 2018-4-26 10:04:50 org.apache.catalina.startup.Catalina start
133 严重: The required Server component failed to start so Tomcat is unable to start.
134 org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
135     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
136     at org.apache.catalina.startup.Catalina.start(Catalina.java:694)
137     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
138     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
139     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
140     at java.lang.reflect.Method.invoke(Unknown Source)
141     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
142     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
143 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
144     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
145     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:758)
146     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
147     ... 7 more
148 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
149     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
150     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
151     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
152     ... 9 more
153 Caused by: org.apache.catalina.LifecycleException: A child container failed during start
154     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1247)
155     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
156     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
157     ... 11 more
158 2018-4-26 10:04:50 org.apache.coyote.AbstractProtocol pause
159 信息: Pausing ProtocolHandler ["http-bio-8080"]
160 2018-4-26 10:04:50 org.apache.coyote.AbstractProtocol pause
161 信息: Pausing ProtocolHandler ["ajp-bio-8009"]
162 2018-4-26 10:04:50 org.apache.catalina.core.StandardService stopInternal
163 信息: Stopping service Catalina
164 2018-4-26 10:04:50 org.apache.coyote.AbstractProtocol destroy
165 信息: Destroying ProtocolHandler ["http-bio-8080"]
166 2018-4-26 10:04:50 org.apache.coyote.AbstractProtocol destroy
167 信息: Destroying ProtocolHandler ["ajp-bio-8009"]
168 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
169 信息: Log4jServletFilter destroyed.
170 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
171 信息: Log4jServletContextListener ensuring that Log4j shuts down properly.
172 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
173 信息: Removing LoggerContext for [mybatis_class_four].
174 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
175 信息: Log4jServletFilter destroyed.
176 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
177 信息: Log4jServletContextListener ensuring that Log4j shuts down properly.
178 2018-4-26 10:04:50 org.apache.catalina.core.ApplicationContext log
179 信息: Removing LoggerContext for [mybatis_at_last].

在网上搜了搜是这个标签错着呢</servlet-mapping>中的<url-pattern>

挽安~的主页 挽安~ | 菜鸟二级 | 园豆:202
提问于:2018-04-26 10:08
< >
分享
最佳答案
0

79 Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name AdminLoginCotorller
看这一句,mapping中指定的servlet名是AdminLoginCotorller,可是你的servlet中没有叫这个名字的,是不是少了一个n
另外说一个怎么看报错,看cause by的地方,看cause by是与你的代码有关的,就是你的代码中出错的地方

奖励园豆:5
流年飞雨 | 小虾三级 |园豆:1928 | 2018-04-27 23:32

恩恩,明白了。谢谢哦

挽安~ | 园豆:202 (菜鸟二级) | 2018-04-28 08:38
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册