永发信息网

myeclipse与tomcat连接问题

答案:2  悬赏:80  手机版
解决时间 2021-04-14 04:31
  • 提问者网友:蓝琪梦莎
  • 2021-04-13 22:35

2009-11-10 19:24:10 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
2009-11-10 19:24:11 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint

2009-11-10 19:24:11 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3518 ms
2009-11-10 19:24:11 org.apache.naming.NamingContext lookup
警告: Unexpected exception resolving reference
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.new (拒绝访问。)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:521)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

最佳答案
  • 五星知识达人网友:夜余生
  • 2021-04-13 23:53

我认为问题主要是在您的userDatabase的定义:


java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.new (拒绝访问。)
想来您在server.xml文件将userDatabase指向C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.new,而没有用default的tomcat-users.xml。但是tomcat无法找到您的新文件,才发生FileNotFoundException。至于为什么找不到,就需要您查一下您的路径定义以及文件本身访问权限的设置。


至于楼上提到的信息,是关于优化性能的,并非必需。

全部回答
  • 1楼网友:琴狂剑也妄
  • 2021-04-14 00:23
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin 第一句就告诉你了,没有找到jdk没有找到tomcat看看环境配置是否正确
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯