在eclipse中通过tomcat运行项目时报错,求解

eclipse两个项目,一个项目可以通过tomcat正常运行,但另一个项目用tomcat运行就报错,求解

图片说明

报错的项目:一开始项目中有两个同名的Servlet文件放在不同的文件夹中,然后修改文件名后又把tomcat——>webapps文件夹里的临时文件删了,后再重启eclipse运行项目也会报错

7个回答

这个可以解决
图片说明
找到你的Tomcat,找不到我就没办法了,这是你的任务
然后进入bin目录找到shutdown.bat
图片说明
双击它,就可以了,然后再运行项目。应该可以的,我以前和你一样。最后好了

这个不像是端口被占用的问题啊。。。您的意思是两个项目分别使用tomcat启动吗?这样的话一定是不行的,同时发布两个项目也只能运行一次,一次
添加两个项目即可。
这个问题希望是我想的这么简单.....

对了,若不是上面的问题那就还有可能是项目缓存的毛病啦,清理一下项目缓存、删掉Tomcat里的项目后清理一下Tomcat缓存,两个的缓存清理过后
应该就可以啦。
等待您的好消息。

看一看进程,是不是有相同的进程占用了端口呢。以前经常遇到failed to start,但是又不报详细错误的情况

最好是重新发布下,因为有缓存的原因

把项目打包,直接扔到tomcat的webapps下看看tomcat能不能正常启动。我认为项目有问题只能导致项目起不来,不应该是tomcat起不来

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Eclipse通过Tomcat运行项目不成功。
大家好,我的项目在Eclipse中通过Tomcat运行项目不成功,显示“HTTP Status 404”,如下图所示:rn[img]http://dl.iteye.com/upload/attachment/0065/6016/9b3cc953-6b4f-32f4-abf3-6976e710ffe1.jpg[/img]rn发现的异常:打开E:\apache-tomcat-7.0.26\webapps,如下图:rn[img]http://dl.iteye.com/upload/attachment/0065/6044/fa27303a-f5ac-3ce8-bc11-ca0378969ab2.jpg[/img]rnrn但是我如果直接启动E:\apache-tomcat-7.0.26\bin\startup.batrn发现的异常:打开E:\apache-tomcat-7.0.26\webapps,如下图:rn[img]http://dl.iteye.com/upload/attachment/0065/6048/17e6d57a-5156-322f-81b3-1b8ce0afec32.jpg[/img]rn输入与Eclipse运行后相同的网址:http://localhost:8090/baobaotao/rn则显示正常。rnrn不知道为什么在Eclipse中通过Tomcat运行项目,不新增baobaotao文件呢,不能打开WEB呢?(http://localhost:8090/baobaotao)rn新手上路,还望指点,谢谢!
运行项目时报错
Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\develop\Java\jdk1.8.0_60\bin\java.exe'' f
eclipse启动项目tomcat 报错
Errors occurred during the build.Errors running builder 'Integrated External Tool Builder' on project 'new52'.The builder launch configuration could not be found.The builder launch configuration could...
eclipse启动tomcat时报错
Server Apache-tomcat7 failed to start. tomcat运行报错Server “tomcat名称”failed to start.我这边最简单的方法就是把项目先Remove 然后Publish一下 然后再把项目加进去 然后重新再Publish一下,就可以正常启动了 ...
Eclipse开启tomcat时报错
求大佬们帮帮忙,用eclipse写的项目,结果在eclipse中tomcat无法启动, console中显示如下:rn[code=text]rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server.服务器版本: Apache Tomcat/9.0.14rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server.构建: Dec 6 2018 21:13:53 UTCrn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version number: 9.0.14.0rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 10rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS.版本: 10.0rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: 结.造: amd64rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java 环境变量: C:\Program Files\java\jre-10.0.1rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM 版本: 10.0.1+10rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM.供应商: "Oracle Corporation"rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\tomcatrn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\tomcatrn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn12月 27, 2018 1:37:55 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=UTF-8rn12月 27, 2018 1:37:55 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library [1.2.19] using APR version [1.6.5].rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018]rn12月 27, 2018 1:37:56 上午 org.apache.coyote.AbstractProtocol initrn信息: 初始化协议处理器 ["http-nio-8080"]rn12月 27, 2018 1:37:56 上午 org.apache.coyote.AbstractProtocol initrn信息: 初始化协议处理器 ["ajp-nio-8009"]rn12月 27, 2018 1:37:56 上午 org.apache.catalina.startup.Catalina loadrn信息: 服务器在[847]毫秒内初始化rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service [Catalina]rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet engine: [Apache Tomcat/9.0.14]rn12月 27, 2018 1:37:56 上午 org.apache.jasper.servlet.TldScanner scanJarsrn信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。rn12月 27, 2018 1:37:56 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandomrn警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [134] milliseconds.rn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.ContainerBase startInternalrn严重: 子容器启动失败rnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb]]rn at java.base/java.util.concurrent.FutureTask.report(Unknown Source)rn at java.base/java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)rn at java.base/java.util.concurrent.FutureTask.run(Unknown Source)rn at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)rn at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:637)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.base/java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb]]rn at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)rn at java.base/java.util.concurrent.FutureTask.run(Unknown Source)rn at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)rn at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)rn ... 21 morernCaused by: java.lang.IllegalArgumentException: 名为 [ListFileServlet]和 [Servlet.ListFileServlet] 的servlet不能映射为一个url模式(url-pattern) [/ListFileServlet]rn at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:329)rn at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:322)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2453)rn at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2129)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2004)rn at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1227)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1136)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5029)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn ... 27 morernrn12月 27, 2018 1:37:56 上午 org.apache.catalina.core.ContainerBase startInternalrn严重: 子容器启动失败rnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败rn at java.base/java.util.concurrent.FutureTask.report(Unknown Source)rn at java.base/java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:637)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.base/java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)rnCaused by: org.apache.catalina.LifecycleException: 子容器启动失败rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)rn at java.base/java.util.concurrent.FutureTask.run(Unknown Source)rn at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)rn at java.base/java.util.concurrent.AbstractExecutorSern[/code]
eclipse启动tomcat时的报错
作为刚学习jsp的小菜鸟,在这几天遇到一个eclipse启动tomcat时的问题,遇到下面的异常: Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory at java.lang.Class.getDeclaredFields0(Native Method) at
eclipse 连接 tomcat 时报错
九月 16, 2014 9:49:21 上午 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.4.8.rn九月 16, 2014 9:49:21 上午 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn九月 16, 2014 9:49:22 上午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.1g 7 Apr 2014)rn九月 16, 2014 9:49:22 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn九月 16, 2014 9:49:22 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn九月 16, 2014 9:49:22 上午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 2202 msrn九月 16, 2014 9:49:22 上午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn九月 16, 2014 9:49:22 上午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/8.0.11rn九月 16, 2014 9:49:23 上午 org.apache.catalina.util.SessionIdGenerator createSecureRandomrn信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [324] milliseconds.rn九月 16, 2014 9:49:23 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn九月 16, 2014 9:49:23 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn九月 16, 2014 9:49:23 上午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 972 ms[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/26.gif][/img]rnrn
eclipse 中运行项目tomcat出错
为了排除项目本身的错误导致tomcat的错误,我新建了一个helloworld的最简单的jsp,但是在eclpse中点击运行后仍然是在console里出了如下的tomcat的错误,请问这可能是什么原因造成的?如何解决?rn十二月 13, 2011 10:43:48 上午 org.apache.catalina.core.AprLifecycleListener initrn信息: 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\Java\jre7\bin;C:\windows\Sun\Java\bin;C:\program files\Java\jdk1.7.0_05\bin;F:\eclipse;;.rn十二月 13, 2011 10:43:59 上午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/10.9manageEmployee]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/10.9manageEmployee]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn ... 7 morernCaused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateExceptionrn at java.lang.Class.getDeclaredFields0(Native Method)rn at java.lang.Class.privateGetDeclaredFields(Unknown Source)rn at java.lang.Class.getDeclaredFields(Unknown Source)rn at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:87)rn at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:382)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:858)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: java.lang.ClassNotFoundException: org.hibernate.HibernateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)rn ... 21 morernrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:256)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4649)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5305)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/9.3strutsUserRegister] startup failed due to previous errorsrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:675)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:675)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 9 morernCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 morernrn十二月 13, 2011 10:44:00 上午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 6471 ms
SpringBoot项目添加到Eclipse的Tomcat中运行
123
eclipse运行,项目在tomcat中找不到
在eclipse中部署了,localhost:8080也跑起来了,就是打项目名无法运行,webapps中也没有项目文件下面是eclipse日志信息rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Jun 15 2016 16:27:45 UTCrn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.70.0rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: x86rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files (x86)\Java\jre1.8.0_101rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.8.0_101-b13rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: D:\apache-tomcat-7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\apache-tomcat-7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=D:\apache-tomcat-7.0.70\wtpwebappsrn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.70\endorsedrn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=UTF-8rn八月 23, 2016 10:19:39 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: 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\jre1.8.0_101\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin;D:\MySQL\MySQL Server 5.0\bin;D:\MySQL\MySQL Server 5.0\bin;;.rn八月 23, 2016 10:19:39 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-8080"]rn八月 23, 2016 10:19:39 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 366 msrn八月 23, 2016 10:19:39 上午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn八月 23, 2016 10:19:39 上午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.70rn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor D:\apache-tomcat-7.0.70\conf\Catalina\localhost\liuyan.xmlrn八月 23, 2016 10:19:39 上午 org.apache.catalina.startup.SetContextPropertiesRule beginrn警告: [SetContextPropertiesRule]Context Setting property 'source' to 'org.eclipse.jst.jee.server:S2SH_DEMO_2' did not find a matching property.rn八月 23, 2016 10:19:40 上午 org.apache.catalina.startup.TldConfig executern信息: 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.rnlog4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).rnlog4j:WARN Please initialize the log4j system properly.rn八月 23, 2016 10:19:40 上午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn八月 23, 2016 10:19:40 上午 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deployment of configuration descriptor D:\apache-tomcat-7.0.70\conf\Catalina\localhost\liuyan.xml has finished in 1,583 msrn八月 23, 2016 10:19:40 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\docsrn八月 23, 2016 10:19:40 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\docs has finished in 29 msrn八月 23, 2016 10:19:40 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\examplesrn八月 23, 2016 10:19:41 上午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn八月 23, 2016 10:19:41 上午 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn八月 23, 2016 10:19:41 上午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@904e0f')rn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\examples has finished in 138 msrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\host-managerrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\host-manager has finished in 37 msrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\managerrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\manager has finished in 34 msrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\ROOTrn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\ROOT has finished in 29 msrn八月 23, 2016 10:19:41 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn八月 23, 2016 10:19:41 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn八月 23, 2016 10:19:41 上午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1892 ms
Linux运行Tomcat时报错
报错提示:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 以上报错解释: java_home和jre_home环境变量均未定义 运行此程序至少需要这些环境变量中...
运行 tomcat 时Eclipse 出错
从eclipse启动tomcat,以前一直没问题的rn运行项目,结果eclipse 报错跳在 Truetypefont.class,source not found.the jar file rt.jar has no source attachmentrnrnrn急求解决方法 不要重装之类的回答rnrn
运行react-native项目时报错。
运行react-native项目时报错。 Application MyTest has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent. 第一:检查项目名是
运行vue项目时报错
一直在提示找不到模块,一直下载安装这些依赖也不行解决方法:先删除模块的目录,然后运行cnpm cache clear,然后再运行cnpm install
tomcat在eclipse中重启报错
tomcat在eclipse中重启报错
启动tomcat时报错 求解在线等
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:\Tools\Server\tomcat\tomcat8-lhdCo\webapps\lhdCo\WEB-INF\classes\Springmvc-dao.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'loginService' for bean class [cn.com.system.service.LoginService] conflicts with existing, non-compatible bean definition of same name and class [cn.com.system.service.impl.LoginServiceImpl]rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4813)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5272)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'loginService' for bean class [cn.com.system.service.LoginService] conflicts with existing, non-compatible bean definition of same name and class [cn.com.system.service.impl.LoginServiceImpl]rn at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:320)rn at org.mybatis.spring.mapper.ClassPathMapperScanner.checkCandidate(ClassPathMapperScanner.java:223)rn at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:259)rn at org.mybatis.spring.mapper.ClassPathMapperScanner.doScan(ClassPathMapperScanner.java:155)rn at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.scan(ClassPathBeanDefinitionScanner.java:226)rn at org.mybatis.spring.config.MapperScannerBeanDefinitionParser.parse(MapperScannerBeanDefinitionParser.java:89)rn at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74)rn at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1411)rn at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)rn at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)rn at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)rn at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)rn ... 26 more
eclipse中运行tomcat的问题
在eclipse中运行tomcat是出现这种情况是什么原因,请哪位大虾知道一下!!!rnrn2009-2-23 10:28:51 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\jsp\java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;E:/jsp/java/jre6/bin/client;E:/jsp/java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;E:\jsp\java\jdk1.6.0_11\bin;E:\jsp\MySQL\MySQL Server 6.0\bin;C:\Program Files\StormII\Codec;C:\Program Files\StormIIrn2009-2-23 10:28:52 org.apache.coyote.http11.Http11Protocol initrn严重: Error initializing endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-2-23 10:28:52 org.apache.catalina.startup.Catalina loadrn严重: Catalina.startrnLifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-2-23 10:28:52 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 581 msrn2009-2-23 10:28:52 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2009-2-23 10:28:52 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2009-2-23 10:28:52 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2009-2-23 10:28:52 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2009-2-23 10:28:52 org.apache.coyote.http11.Http11Protocol startrn严重: Error starting endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)rn at org.apache.catalina.connector.Connector.start(Connector.java:1131)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-2-23 10:28:52 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnLifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.start(Connector.java:1138)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-2-23 10:28:52 org.apache.catalina.startup.Catalina startrn信息: Server startup in 791 msrn2009-2-23 10:28:52 org.apache.catalina.core.StandardServer awaitrn严重: StandardServer.await: create[8005]: rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(Unknown Source)rn at java.net.ServerSocket.bind(Unknown Source)rn at java.net.ServerSocket.(Unknown Source)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:642)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:602)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
eclipse中运行tomcat问题
Project facet Java version 6.0 is not supported.rnrntomcat可以在eclipse中起动,但是一运行jsp页面就出现问题,出现上面这个提示.rn记求解决方法,现在这里谢了,hoho~~~rnrn我的eclipse是3.2,tomcat是5.5,jdk&jre是1.5
tomcat下的项目导入到eclipse中
tomcat下的项目导入到eclipse中(不考虑源码问题) 1.进入tomcat中,找到需要导入的项目: 2.进入项目中 ,这里进入cas中 全选压缩为zip  修改cas.zip为cas.war 3.将cas.war导入eclipse中 file-->import 弹出import 对话框 输入框中出入war ,选择刚才修改为war的项目导入就完事
tomcat启动时报错,求解?
出来两句错误提示rn1 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrnCannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBeanrnrnrn2 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBeanrnrn代码里没有提示有错误啊!
在Eclipse 中配置Tomcat项目
1.安装Tomcat在Eclipse中的插件(使可以在eclipse中启动Tomcat) 2.培植eclipse中tomcat属性,window-->preferences 对话框中Tomcat选项,选择版本,和安装路径(C:\Program Files\Apache Software Foundation\Tomcat 5.0),注意Context declaration mode 选项:Server.xml和Context files,分别代表了两中启动Tomcat的配置方式,一般选择第一种,当项目的的Is a Tomcat Project被选中时Server.xml这个配置选项会在Server.xml中自动添加启动当前项目的代码: <Context path="" reloadable="true" docBase="E:\myworkspace\myproject\WebRoot" workDir="E:\myworkspace\myproject\work" > <Loader className="org.apache.catalina.loader.DevLoader" reloadable="true" debug="1" useSystemClassLoaderAsParent="false" /> </Context> 当选择Server.xml选项时候后面的Configuration file填:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\server.xml代表Tomcat 中server.xml的路径 当选择Context files选项时候后面的Contexts directory填:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost 3.配置项目的Tomcat属性,在eclipse中右击项目preferences,选择Tomcat选项,把Is a Tomcat project打上勾,Can update context definition打上勾 mark this context as reloadable 打上勾,注意下面的Subdirectory to set as web application root 里填:/WebRoot,当项目启动时系统会自动到该文件夹下寻找WEB-INF文件夹下的web.xml文件 ,然后选择devloader calsspath选项卡选择导入的插件 4.在eclipse中为tomcat的server.xml文件添加项目启动代码,再次右击项目,会看到有Tomcat project选项-->Update context definition,(这时系统会为Tomcat的server.xml添加好启动代码)
eclipse在tomcat中项目别名
修改项目名之后会发现在tomcat中项目会有别名,在项目后面有个括号. 这个想要修改要在  项目路径/.settings/org.eclipse.wst.common.component中修改 修改deploy-name 以及下面对应的value就可以了
eclipse远程调试tomcat中的项目
这里有一个大前提:tomcat中项目的和你的eclipse中的项目代码一致 有时候发现部署到测试服务器上面的项目出现了错误,但是通过日志不能分析具体原因,本地也无法复现,这时候远程调试就可以发挥作用了。 首先,到服务器的tomcat目录下,找到bin文件夹,修改catalina.sh文件,在文件中 CATALINA_OPTS=&quot;$CATALINA_OPTS... 后面添加如下代码: C...
eclipse中项目打包发布到tomcat
本文主要叙述在eclipse中,工程完工后,打包到tomcat中发布实施的过程。 项目情况:整个项目由3个子工程关联组成,commond_expend , score_system , score_systemlogic.score_system工程依赖与另外两个工程。数据库采用的是MySQL。第一部分:将项目关联,然后打包WAR文件 到score_system项目构建路径下(项目名称上鼠标右键—
在Eclipse中新建Tomcat项目
选择File——>new——>others 选择Java目录下的Tomcat Project 点击Next,填写项目名称,然后点击Finish 已经建好的项目目录 在WEB-INF目录下新建NewFile.jsp ,  JSP Filezai在Web目录下
在eclipse中运行web应用,报错
是一个基于struts+spring+hibernate的程序rnrn安装了myeclipse插件,在eclipse下运行的.rn运行之后报出错误如下:rnrnAn unexpected error has been detected by HotSpot Virtual Machine:rn#rn# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2856, tid=1188rn#rn# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode, sharing)rn# Problematic frame:rn# C 0x00000000rn#rn# An error report file with more information is saved as hs_err_pid2856.logrn#rn# If you would like to submit a bug report, please visit:rn# http://java.sun.com/webapps/bugreport/crash.jsprn#rnrn不知道为什么.谢谢解答
eclipse 是如何通过 Tomcat 运行网站的
我在eclipse中新建了一个Web项目,rn然后在Windows->Preferences->Server中关联了一个Tomcat。rn在Web项目中指定Target Runtime为上面建的Tomcat。rnrn然后我在Web项目中新建一个JSP页面,在页面中点击右键Run As,选择一个Tomcat,即可运行页面。但是我无法从Tomcat目录下的webapps中找到与我项目名称相同的文件夹,请问网页是如何运行起来的?
三、eclipse上通过tomcat发布项目
1.首先确保电脑上已经配置了tomcat.    可以通过打开tomcat,在浏览器上输入  http://localhost:8080  回车,测试一下   注:前提是tomcat访问浏览器的端口号没有更改 2.打开eclipse ,window-&amp;gt;preferences     3.打开控制台处对应的 Servers  如果没有找到Servers, 在Ser...
Eclipse 启动tomcat时报错:java.io.UnsupportedEncodingException: GBK
Eclipse 启动tomcat时报错:java.io.UnsupportedEncodingException: GBKrn这种错误简直无语了,请大家来搞定.
eclipse无法运行tomcat项目 HELP !!
我用 eclipse 编写了一个tomcat 项目(BOOKSTORE) ,启动tomcat后 ,在IE上输入 http://localhost:8080/BOOKSTORE/PAGES/INDEX.JSP 打开后,IE页面没有内容,一片空白,也没有报错信息。。。 rnrn我的配置是 eclipse3.0.1+tomcat5.0+lomboz,数据库文件用的是ACCESS编写的 *.mdb格式的。。。 J2SDK是 1.5 版本的 rnrn有哪位高手知道问题出在哪里吗 ? rnrn谢谢了 在线等答案 rn
项目多环境下eclipse运行tomcat的配置问题
项目背景:maven项目,有多个环境:dev、sit、uat、pat。之前用的Idea和jetty,现在因项目需要切换成了eclipse和tomcat。 问题描述:maven打的是sit的包,war包放到tomcat下单独运行没有问题,但是用eclipse启动tomcat就会报错,我看了项目根目录下.metadata.plugins\org.eclipse.wst.server.core\里的w
eclipse部署tomcat 报错
eclipse 部署tomcat 服务时出现问题
eclipse与tomcat连接报错
我的eclipse与tomcat连接时报如下的错误,是什么原因呢?请大家多多指教,不胜感激! rnrn安装信息:rn1. tomcat测试通过了,可以显示管理页面rn2. 我的 tomcat版本是tomcat5.5rn3. Eclipse的版本是 3.2.2rn4. MyEclipse版本是 5.5rn5. 直接启动tomcat,能正常启动rn下面是错误日志 :rnrn2007-6-13 23:23:00 org.apache.catalina.core.StandardContext startrn严重: Error in resourceStart()rn2007-6-13 23:23:00 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2007-6-13 23:23:00 org.apache.catalina.core.StandardContext startrn严重: Context [/admin] startup failed due to previous errorsrn2007-6-13 23:23:00 org.apache.catalina.core.StandardContext stoprn信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] has not been startedrn2007-6-13 23:24:14 org.apache.coyote.http11.Http11AprProtocol pausern信息: Pausing Coyote HTTP/1.1 on http-80rn2007-6-13 23:24:14 org.apache.coyote.ajp.AjpAprProtocol pausern信息: Pausing Coyote AJP/1.3 on ajp-8009rn2007-6-13 23:24:15 org.apache.catalina.core.StandardService stoprn信息: Stopping service Catalinarn2007-6-13 23:24:15 org.apache.coyote.http11.Http11AprProtocol destroyrn信息: Stopping Coyote HTTP/1.1 on http-80rn2007-6-13 23:24:15 org.apache.coyote.ajp.AjpAprProtocol destroyrn信息: Stopping Coyote AJP/1.3 on ajp-8009rn2007-6-13 23:24:22 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-80rn2007-6-13 23:24:22 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2007-6-13 23:24:22 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 906 msrn2007-6-13 23:24:22 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2007-6-13 23:24:22 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.5.23rn2007-6-13 23:24:22 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2007-6-13 23:24:22 org.apache.catalina.core.StandardContext resourcesStartrn严重: Error starting static Resourcesrnjava.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 5.5\server\webapps\admin does not exist or is not a readable directoryrn at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)rn at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3855)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2007-6-13 23:24:22 org.apache.catalina.core.StandardContext startrn严重: Error in resourceStart()rn2007-6-13 23:24:23 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2007-6-13 23:24:23 org.apache.catalina.core.StandardContext startrn严重: Context [/admin] startup failed due to previous errorsrn2007-6-13 23:24:23 org.apache.catalina.core.StandardContext stoprn信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] has not been startedrn2007-6-13 23:24:24 org.apache.coyote.http11.Http11AprProtocol startrn信息: Starting Coyote HTTP/1.1 on http-80rn2007-6-13 23:24:24 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2007-6-13 23:24:24 org.apache.catalina.storeconfig.StoreLoader loadrn信息: Find registry server-registry.xml at classpath resourcern2007-6-13 23:24:24 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1953 msrn2007-6-13 23:27:14 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Undeploying context [/admin]rn2007-6-13 23:29:44 org.apache.struts.action.RequestProcessor processMappingrn严重: Invalid path /login was requestedrn2007-6-13 23:29:57 org.apache.struts.action.RequestProcessor processMappingrn严重: Invalid path /frameset was requestedrn2007-6-13 23:30:44 org.apache.struts.action.RequestProcessor processMappingrn严重: Invalid path /login was requestedrn2007-6-13 23:30:54 org.apache.struts.action.RequestProcessor processMappingrn严重: Invalid path /frameset was requestedrnrnrn在Eclipse的控制台出现了这样的信息rn警告: Bootstrap: command "C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml" does not exist.rn rn但是我在目录下可以看到 server.xml 文件。rnrn请大伙帮忙解决一下
tomcat中运行PHP项目
背景:最近在学习《微信小程序开发入门与实践》一书,学习到该书的第12章微信开放接口时遇到了问题。这一章的内容需要有服务器配合,而书上给出的服务器代码是PHP写的。这可把我愁坏了,我一直学习的是Java语言,对PHP一点了解也没有。 解决过程:遇到了问题就解决问题,我懒得照着书上再写一遍PHP代码了,直接下载了配套的PHP代码。那么接下来的问题就是如何在tomcat上运行这个PHP代码?
Tomcat中项目无法运行
情况是这样的:用myeclipse将项目部署到tomcat中后tomcat的管理台中显示项目为false,选择start后任然显示false,导致项目无法运行。rn选择undeploy后却显示true,但是webapps中的项目文件只剩下lib文件夹以及一个struts2的包,项目是struts2+hibernate,hibernate的xml文件是用官方工具创建的!rn我再myeclipse中打包为war文件后通过tomcat后台的部署工具部署到tomcat中后问题依旧!rn请知道的朋友告诉下怎么解决谢谢!
把项目在tomcat中运行。
在eclipse中反鼠标导出项目,选择war file ,直接next,吧war包放在本地的tomcat下的webapps中,直接在tomcat中的bin中点击startup.bat自己就运行了。
war项目在tomcat中运行
1.找到tomcat的安装路径 2.找到webapps 3.讲war包拷入webapps下 4.双击运行D:\apache-tomcat-7.0.77\bin底下的startup.bat(窗口不能关闭) 5.编译完成后找到D:\apache-tomcat-7.0.77\webapps\项目名\WEB-INF\classes\config.properties 6.修改数据库链接信息 ...
eclipse中启动tomcat时
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4153)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2014-4-25 19:12:07 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2014-4-25 19:12:07 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2014-4-25 19:12:07 org.apache.catalina.core.StandardContext startrn严重: Context [testWork] startup failed due to previous errors
spring boot项目通过外置tomcat运行
spring boot项目通过外置tomcat运行
Android项目运行中报错
SensorManagerFlow: registerListenerImplrn java.lang.Exceptionrn at android.hardware.SystemSensorManager.registerListenerImpl(SystemSensorManager.java:118)rn at android.hardware.SensorManager.registerListener(SensorManager.java:775)rn at android.hardware.SensorManager.registerListener(SensorManager.java:682)rn at com.securityguard.securitybody.SensorManagerUtils.i(Unknown Source)rn at com.securityguard.securitybody.SensorManagerUtils.a(Unknown Source)rn at com.securityguard.securitybody.b.run(Unknown Source)rn at android.os.Handler.handleCallback(Handler.java:739)rn at android.os.Handler.dispatchMessage(Handler.java:95)rn at android.os.Looper.loop(Looper.java:135)rn at android.app.ActivityThread.main(ActivityThread.java:5593)rn at java.lang.reflect.Method.invoke(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:372)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)rn查资料说是传感器管理器,可是我的项目中并没有使用到传感器的地方,不知道该从哪里下手解决了,求大神帮忙rn
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview