eclipse启动tomcat出错,单独安装tomcat正常启动,也修改了变量

问题描述

2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:LoadedApacheTomcatNativelibrary1.1.10.2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:APRcapabilities:IPv6[false],sendfile[true],acceptfilters[false],random[true].2011-3-2523:33:48org.apache.coyote.http11.Http11AprProtocolinit信息:InitializingCoyoteHTTP/1.1onhttp-90802011-3-2523:33:48org.apache.coyote.ajp.AjpAprProtocolinit信息:InitializingCoyoteAJP/1.3onajp-80092011-3-2523:33:48org.apache.catalina.startup.Catalinaload信息:Initializationprocessedin1530ms2011-3-2523:33:48org.apache.naming.NamingContextlookup警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atjava.io.FileOutputStream.open(NativeMethod)atjava.io.FileOutputStream.<init>(FileOutputStream.java:179)atjava.io.FileOutputStream.<init>(FileOutputStream.java:131)atorg.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:521)atorg.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)atorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)atjavax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)atorg.apache.naming.NamingContext.lookup(NamingContext.java:793)atorg.apache.naming.NamingContext.lookup(NamingContext.java:140)atorg.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)atorg.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:703)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.mbeans.GlobalResourcesLifecycleListenercreateMBeans严重:ExceptionprocessingGlobalJNDIResourcesjavax.naming.NamingException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atorg.apache.naming.NamingContext.lookup(NamingContext.java:805)atorg.apache.naming.NamingContext.lookup(NamingContext.java:140)atorg.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)atorg.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:703)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.core.StandardServicestart信息:StartingserviceCatalina2011-3-2523:33:48org.apache.catalina.core.StandardEnginestart信息:StartingServletEngine:ApacheTomcat/6.0.142011-3-2523:33:48org.apache.naming.NamingContextlookup警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atjava.io.FileOutputStream.open(NativeMethod)atjava.io.FileOutputStream.<init>(FileOutputStream.java:179)atjava.io.FileOutputStream.<init>(FileOutputStream.java:131)atorg.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:521)atorg.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)atorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)atjavax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)atorg.apache.naming.NamingContext.lookup(NamingContext.java:793)atorg.apache.naming.NamingContext.lookup(NamingContext.java:153)atorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.realm.UserDatabaseRealmstart严重:ExceptionlookingupUserDatabaseunderkeyUserDatabasejavax.naming.NamingException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atorg.apache.naming.NamingContext.lookup(NamingContext.java:805)atorg.apache.naming.NamingContext.lookup(NamingContext.java:153)atorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.startup.Catalinastart严重:Catalina.start:LifecycleException:NoUserDatabasecomponentfoundunderkeyUserDatabaseatorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.startup.Catalinastart信息:Serverstartupin79ms是不是我的变量修改有问题,希望有会的强人指点一下,搞了很久很崩溃了,开始以为端口被占用,可是查了查没有,不过我还是改了可还是不行

解决方案

解决方案二:
引用楼主gaoqian8864的回复:

警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)

操作系统没有给Eclipse访问这个文件的权限。LZ可以下一个解压版的Tomcat,解压到非系统盘(如D盘)某目录中使用。
解决方案三:
引用1楼magong的回复:

引用楼主gaoqian8864的回复:警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)操作系统没有给……

顶一下
解决方案四:
引用楼主gaoqian8864的回复:

2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:LoadedApacheTomcatNativelibrary1.1.10.2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:APRc……

这样子啊··那系统在哪可以修改这个权限吗?
解决方案五:
java.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)

tomcat里面有tomcat-users.xml.new这个文件吗?我的只有tomcat-users.xml。。。。。。。

时间: 2024-09-20 18:12:57

eclipse启动tomcat出错,单独安装tomcat正常启动,也修改了变量的相关文章

在eclipse中启动tomcat出错,单独启动tomcat能正常启动,

问题描述 在eclipse中启动tomcat出错,单独启动tomcat能正常启动,程序也能跑起来,错误信息如下,有人遇到过这种错误嘛? java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav

【tomcat】MacOS安装Tomcat并部署spring-boot项目

tomcat 官网下载 选择合适版本 查看本机版本 bogon:~ xiaoyu$ java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) 选择安装最新版,在这之前,先选择镜像http://mirrors.tuna.tsinghu

服务器部署项目-linux上启动tomcat出错,java项目是编译后的,在本地测试没问题

问题描述 linux上启动tomcat出错,java项目是编译后的,在本地测试没问题 2C org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'returnedMoneyAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.facto

eclipse-Eclipse中启动tomcat出错

问题描述 Eclipse中启动tomcat出错 tomcat在外部可以自行启动,但是加入web程序到tomcat后无法启动tomcat,并且提示下列信息,究竟是什么原因呢,又有什么解决方法,求大神指教 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[loc

Eclipse luan(Eclipse4.4)tomcat(无法显示)插件安装不了的解决方法

之前一直用的是Eclipse 3.7.2的版本,今天换成了Eclipse luna(4.4),可是发现之前的tomcat插件装上去不起作用,后面发现是插件的版本不对,点这里下载最新的插件版本,(或者去http://www.eclipsetotale.com/tomcatPlugin.html) 这里提供两种解决办法: 一:下载最新的Tomcat插件,解压后,将jar文件放在Eclipse安装目录的dropins文件下,重启,三只小猫出现了: 同时可以看到,红框框住的那个文件夹的图标,这个在mye

eclipse导入-在My Eclipse配置tomcat出错

问题描述 在My Eclipse配置tomcat出错 重启电脑后出现unable to open the service'tomcat7'请问怎么解决? 还有在 myeclipse中add tomcat deployment出现了no projects are available for deployment to this server.Either they all have already been deployed to this server or no deployable proj

eclipse中无法启动tomcat 但是在外面可以正常启动tomcat!

问题描述 eclipse中无法启动tomcat 但是在外面可以正常启动tomcat! 本来eclipse用着好好的,不知道抽什么风,今天突然tomcat启动不了了.报错如下 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngin

Struts2初次配置启动tomcat出错

问题描述 开发环境:Eclipse Java EE IDE for Web Developers.Version: Helios Service Release 1Build id: 20100917-0705Tomcat 6.x log:2011-1-6 0:04:30 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context

Eclipse中启动tomcat7.0,本地tomcat配置文件被eclipse恢复

问题描述 问题是这样的,在eclipse的servers配置项里,将tomcat的启动配置为了use tomcat location,但是每次在eclipse里publish项目都会把本地G:tomcate7.0apache-tomcat-7.0.29conf下的配置文件(如:tomcat-user.xml添加了用户等信息)给重置,也就是里面添加的内容被清空了,回复到原来的样子,求指点. 解决方案 你eclipse工程列表中应该 还有个 Servers 工程,下面会有Tomcat7的配置文件,你