我正在通过启用Java EE的Eclipse运行tomcat,每当我试图启动服务器时,就会出现以下错误,我无法运行任何servlet,
Mar 03, 2014 11:32:46 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 03, 2014 11:32:46 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:FirstServlet' did not find a matching property.
Mar 03, 2014 11:32:46 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-7010
Mar 03, 2014 11:32:46 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 575 ms
Mar 03, 2014 11:32:46 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 03, 2014 11:32:46 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.39
Mar 03, 2014 11:32:46 AM org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.jav a:959)
at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:789)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanE ndElement(XMLDocumentFragmentScannerImpl.java:1786)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm entContentDriver.next(XMLDocumentFragmentScannerImpl.java:2951)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum entScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD ocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:846)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:775)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:12 3)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS AXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA XParserImpl.java:628)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig .java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 265)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name showconfi
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.j ava:2743)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.j ava:2723)
... 37 more
Mar 03, 2014 11:32:46 AM org.apache.catalina.startup.ContextConfig applicationWe bConfig
SEVERE: Parse error in application web.xml file at jndi:/localhost/FirstServlet/WEB-INF/web.xml
org.xml.sax.SAXParseException; systemId: jndi:/localhost/FirstServlet/WEB-INF/web.xml;lineNumber: 53; columnNumber: 21; Error at (53, 21) : Servlet mapping specifies an unknown servlet name showconfi
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2839)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2865)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1161)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1786)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XM DocumentFragmentScannerImpl.java:2951)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmntScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:628)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unkn own servletname showconfi
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2743)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2723)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.java:959)
at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:789)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
... 29 more
Mar 03, 2014 11:32:46 AM org.apache.catalina.startup.ContextConfig applicationWe bConfig
SEVERE: Occurred at line 53 column 21
Mar 03, 2014 11:32:46 AM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Mar 03, 2014 11:32:46 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Mar 03, 2014 11:32:46 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/FirstServlet] startup failed due to previous errors
Mar 03, 2014 11:32:46 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-7010
Mar 03, 2014 11:32:47 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:7011
Mar 03, 2014 11:32:47 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
Mar 03, 2014 11:32:47 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 582 ms
我的web.xml如下所示
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>FirstServlet</display-name>
<servlet>
<description></description>
<display-name>mygeco</display-name>
<servlet-name>mygeco</servlet-name>
<servlet-class>com.geco.highlight.mygeco</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>mygeco</servlet-name>
<url-pattern>/mygeco</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>upload</display-name>
<servlet-name>upload</servlet-name>
<servlet-class>com.geco.upload.upload</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>upload</servlet-name>
<url-pattern>/upload</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>show</display-name>
<servlet-name>show</servlet-name>
<servlet-class>com.geco.show.show</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>show</servlet-name>
<url-pattern>/show</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>mygeco1</display-name>
<servlet-name>mygeco1</servlet-name>
<servlet-class>com.geco.highlight1.mygeco1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>mygeco1</servlet-name>
<url-pattern>/mygeco1</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>sconfi</display-name>
<servlet-name>sconfi</servlet-name>
<servlet-class>com.geco.sconfi.showconfi</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>showconfi</servlet-name>
<url-pattern>/showconfi</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>sconfi</display-name>
<servlet-name>**sconfi**</servlet-name>
<servlet-class>com.geco.sconfi.showconfi</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>**showconfi**</servlet-name>
<url-pattern>/showconfi</url-pattern>
</servlet-mapping>
您需要使用相同的名称:
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name showconfi
我使用的是Nifi 0.4.1版本。我写自定义代码转换CSV到avro格式。我已经创建了类文件(.java文件),并能够生成nar文件。将新创建的nar文件放置在lib目录中,并重新启动nifi服务器。 类文件没有任何错误或警告。 当检查nifi的状态(status-nifi.bat)时,它表示服务器可能已经崩溃或挂机。 任何帮助都很感激..
我在windows中启动Kafka服务器时遇到问题 命令\bin\windows\kafka服务器启动。球棒\配置\服务器。属性 错误消息: 该命令的语法不正确。错误:无法找到或加载主类文件\IBM\WebSphere 知道吗?
我能够在我的windows机器上运行单个zooKeer实例。但在单个windows机器上成功设置多个zooKeer实例。 根据指南,我执行了以下步骤: > 在conf文件夹中创建多个zoo.conf文件。结构如下 zookeeper\u主页--|形态--|动物园。cfg zoo\u 2。cfg zoo\u 3。cfg公司 zoo.cfg C:/opt/zooeger/data C:/opt/zoo
我正在以下链接中使用sysdeo插件进行tomcat安装: http://technologicaloddity.com/using-projects/Java-projects/setting-up-the-sysdeo-tomcat-plug-in/ 由于我需要从我的spring mvc在tomcat中运行solrserver,所以我选择了上面的链接。 我配置了所有的东西,也做了solr wa
当我在Eclipse中的服务器上运行我的应用程序时,我会得到这样的消息:“Tomcat V8.0服务器在localhost上所需的端口8080已经在使用中。该服务器可能已经在另一个进程中运行,或者某个系统进程正在使用该端口。要启动该服务器,您需要停止其他进程或更改端口号”。其他项目关闭。有人能帮我解决这个问题吗?我是爪哇初学者。
严重:启动java.util.concurrent.ExecutionException时子容器失败:org.apache.Catalina.LifeCycleException:启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorldRestService]](位于java.util.con