为了账号安全,请及时绑定邮箱和手机立即绑定

start tomcat7.x后 myeclipse的控制台输出了警告还有error 但是能正常打开http://localhost:8080,有问题吗?

警告: The APR based Apache Tomcat Native library failed to load. The error reported was [D:\tomcat\apache-tomcat-7.0.72-windows-x86\apache-tomcat-7.0.72\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform]

java.lang.UnsatisfiedLinkError: D:\tomcat\apache-tomcat-7.0.72-windows-x86\apache-tomcat-7.0.72\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)

at java.lang.Runtime.loadLibrary0(Runtime.java:870)

at java.lang.System.loadLibrary(System.java:1122)

at org.apache.tomcat.jni.Library.<init>(Library.java:42)

at org.apache.tomcat.jni.Library.initialize(Library.java:178)

at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:200)

at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:108)

at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)

at org.apache.catalina.connector.Connector.<init>(Connector.java:66)

at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)

at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1303)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1338)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2781)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1576)

at org.apache.catalina.startup.Catalina.load(Catalina.java:616)

at org.apache.catalina.startup.Catalina.load(Catalina.java:667)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)


正在回答

2 回答

将tomcat/bin目录 下的 tcnative-1.dll 复制到 jdk/bin 目录下  试试

0 回复 有任何疑惑可以回复我~
#1

Juneava 提问者

不行 。。。没解决
2016-11-09 回复 有任何疑惑可以回复我~
#2

qq_迷雾里探路_04322391 回复 Juneava 提问者

你的电脑操作系统是多少位的? jdk 版本是多少位? 打开cmd,并在cmd中输入:java -version 查看第三行内容是否包含“64”,如果不包含,说明你设置的【JAVA_HOME】的地址指向的是32bit的JDK,那么你就需要下载一个64bit的JDK安装,并修改【JAVA_HOME】指向64bit的文件。 如果设置完成上面之后还有问题,那么你就需要下载32-bit/64-bit集合体的Tomcat 再试试
2016-11-09 回复 有任何疑惑可以回复我~
#3

Juneava 提问者 回复 qq_迷雾里探路_04322391

我tomcat装的32位的 ,应该错了要重装一个,我用的myeclipse 2014,jdk版本是1.8.0—101,装哪个版本的tomcat好?
2016-11-10 回复 有任何疑惑可以回复我~

7.0, 8.0,都可以应该!

0 回复 有任何疑惑可以回复我~
#1

Juneava 提问者

好 谢谢
2016-11-10 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

start tomcat7.x后 myeclipse的控制台输出了警告还有error 但是能正常打开http://localhost:8080,有问题吗?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信