'在localhost启动Tomcat v7.0服务器'遇到了问题。
localhost上的服务器Tomcat v7.0服务器无法启动。
这是我的错误。我搜索了很多,但我无法找到解决方案 为此,请帮助我一个人
在控制台选项卡中,它提供了信息:
INFO: 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\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jdk1.6.0_20\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jdk1.6.0_20\;C:\Users\Lenovo\Downloads\eclipse-jee-luna-R-win32(1)\eclipse;
控制台的所有痕迹都在这里。请帮帮我。
2014年7月17日下午4:51:36 org.apache.catalina.core.AprLifecycleListener init 信息:在java.library.path中找不到基于APR的Apache Tomcat Native库,它允许在生产环境中获得最佳性能:C:\ Program Files(x86)\ Java \ jre6 \ bin;。; C:\ Windows \ Sun \ Java \ bin; C:\ Windows \ system32; C:\ Windows; C:/ Program Files(x86)/ Java / jre6 / bin / client; C:/ Program Files(x86)/ Java / jre6 / bin; C :/ Program Files(x86)/ Java / jre6 / lib / i386; C:\ Program Files \ Common Files \ Microsoft Shared \ Windows Live; C:\ Program Files(x86)\ Common Files \ Microsoft Shared \ Windows Live; C :\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C:\ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ ThinkPad \ Bluetooth Software \; C:\ Program Files \ ThinkPad \ Bluetooth Software \ syswow64; C:\ Program Files(x86)\ Common Files \ Lenovo; C:\ Program Files(x86)\ Lenovo \ Access Connections \; C:\ Program Files(x86)\ Windows Live \共享; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common Files \ Intel \ WirelessCommon \; C:\ Program Files(x86)\ Java \ jdk1.6.0_20 \ bin; C:\ Program Files \ TortoiseSVN \ bin; C:\ Program Files \ TortoiseGit \ bin; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common Files \ Intel \ WirelessCommon \; C:\ Program Files(x86)\ Java \ jdk1.6.0_20 \; C:\ Users \用户联想\下载\蚀-JEE-luna的-R-win32的(1)\蚀; 2014年7月17日下午4:51:36 org.apache.tomcat.util.digester.Digester startElement 严重:开始事件引发错误 java.lang.UnsupportedClassVersionError:javax / servlet / http / HttpServletRequest:不支持的major.minor版本51.0 at java.lang.ClassLoader.defineClass1(Native Method) 在java.lang.ClassLoader.defineClassCond(未知来源) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) 在java.net.URLClassLoader.access $ 000(未知来源) 在java.net.URLClassLoader $ 1.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 在sun.misc.Launcher $ ExtClassLoader.findClass(未知来源) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher $ AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) 在java.lang.ClassLoader.defineClassCond(未知来源) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) 在java.net.URLClassLoader.access $ 000(未知来源) 在java.net.URLClassLoader $ 1.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at org.apache.tomcat.util.IntrospectionUtils.findMethods(IntrospectionUtils.java:753) at org.apache.tomcat.util.IntrospectionUtils.setProperty(IntrospectionUtils.java:286) at org.apache.tomcat.util.IntrospectionUtils.setProperty(IntrospectionUtils.java:275) 在org.apache.catalina.startup.SetAllPropertiesRule.begin(SetAllPropertiesRule.java:67) 在org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) 在com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(未知来源) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $ JAXPSAXParser.parse(Unknown Source) 在org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537) 在org.apache.catalina.startup.Catalina.load(Catalina.java:555) 在org.apache.catalina.startup.Catalina.load(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) 在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449) java.lang.UnsupportedClassVersionError:javax / servlet / http / HttpServletRequest:不支持的major.minor版本51.0 at java.lang.ClassLoader.defineClass1(Native Method) 在java.lang.ClassLoader.defineClassCond(未知来源) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) 在java.net.URLClassLoader.access $ 000(未知来源) 在java.net.URLClassLoader $ 1.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 在sun.misc.Launcher $ ExtClassLoader.findClass(未知来源) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher $ AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) 在java.lang.ClassLoader.defineClassCond(未知来源) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) 在java.net.URLClassLoader.access $ 000(未知来源) 在java.net.URLClassLoader $ 1.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at org.apache.tomcat.util.IntrospectionUtils.findMethods(IntrospectionUtils.java:753) at org.apache.tomcat.util.IntrospectionUtils.setProperty(IntrospectionUtils.java:286) at org.apache.tomcat.util.IntrospectionUtils.setProperty(IntrospectionUtils.java:275) 在org.apache.catalina.startup.SetAllPropertiesRule.begin(SetAllPropertiesRule.java:67) 在org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) 在com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(未知来源) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $ JAXPSAXParser.parse(Unknown Source) 在org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537) 在org.apache.catalina.startup.Catalina.load(Catalina.java:555) 在org.apache.catalina.startup.Catalina.load(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) 在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
提前致谢。
答案 0 :(得分:5)
解决与"基于APR的Apache Tomcat Native库相关的问题,该库允许最佳性能"你必须在eclipse中为tomcat服务器的启动配置添加一个系统属性。
-Djava.library.path=[tomcat_home]\bin
以及tcnative-1.dll 64/32 bit
下载并将其放在bin文件夹中。
答案 1 :(得分:1)
消息"基于APR的Apache Tomcat Native库允许在生产环境中获得最佳性能,但在java.library.path"不是错误。
从您的日志中,错误是:
4:51:36 PM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw error java.lang.UnsupportedClassVersionError:
javax/servlet/http/HttpServletRequest : Unsupported major.minor version 51.0
这意味着您使用java 6启动使用java 7编译的内容。 你确定你使用的是tomcat7而不是tomcat8吗?
答案 2 :(得分:0)
您可以更改eclipse tomcat服务器配置。打开服务器视图,双击您的服务器以打开服务器配置。然后单击以激活"将模块内容发布到单独的XML文件"。最后,重新启动服务器,消息必须消失。
这个时间页面没有任何问题。