2 zc15537853061 zc15537853061 于 2017.08.31 09:53 提问

tomcat部署成功,也启动了,但是就是不能访问,求大神指点

八月 31, 2017 9:50:18 上午 org.apache.catalina.core.AprLifecycleListener init
警告: The APR based Apache Tomcat Native library failed to load. The error reported was [D:\Program Files\tomcat\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform]
java.lang.UnsatisfiedLinkError: D:\Program Files\tomcat\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.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.apache.tomcat.jni.Library.(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:178)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:185)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:100)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:724)
at org.apache.catalina.connector.Connector.(Connector.java:81)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:55)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1376)
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:1343)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
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:510)
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:648)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

八月 31, 2017 9:50:18 上午 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
八月 31, 2017 9:50:18 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 604 ms
八月 31, 2017 9:50:18 上午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
八月 31, 2017 9:50:18 上午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.45
八月 31, 2017 9:50:18 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
八月 31, 2017 9:50:19 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
八月 31, 2017 9:50:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory budgetsj
八月 31, 2017 9:50:20 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
八月 31, 2017 9:50:20 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
八月 31, 2017 9:50:20 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 31, 2017 9:50:20 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 31, 2017 9:50:20 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory fist
八月 31, 2017 9:50:20 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
八月 31, 2017 9:50:20 上午 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
八月 31, 2017 9:50:20 上午 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
八月 31, 2017 9:50:20 上午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/32 config=null
八月 31, 2017 9:50:20 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2069 ms

10个回答

zc15537853061
zc15537853061   2017.08.31 09:55

可以进入localhost:8080,但是部署的项目就是不能访问,404,项目没问题

ITzhangdaopin
ITzhangdaopin   2017.08.31 09:56

无法在64位平台下加载32位的DLL IA 文件
解决方案:同样的将文件的改成64位的

zc15537853061
zc15537853061 可以说的具体点吗谢谢
3 个月之前 回复
Small_Mouse0
Small_Mouse0   Ds   Rxr 2017.08.31 09:57

“D:\Program Files\tomcat\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform”

报错说是这个dll的问题,,,dll位数不对??

zc15537853061
zc15537853061 回复fcfwang_net: jdk就是64位的啊
3 个月之前 回复
Small_Mouse0
Small_Mouse0 回复zc15537853061: tcnative-1.dll,,这个dll是第三方的还是?能不能换个?或者换jdk位数试试
3 个月之前 回复
fcfwang_net
fcfwang_net 回复zc15537853061: 找一个64位的jdk,配置环境变量,32位的那一个不需要动,在项目上把64位的jdk配置上,你可以试一下
3 个月之前 回复
zc15537853061
zc15537853061 怎么改呢
3 个月之前 回复
asymptotic_1234
asymptotic_1234   2017.08.31 09:58

应该是版本问题,看看你使用的的jdk版本,与你使用的Tomcat版本是否一个是32位,一个是64位。应该是这个原因。你试一下,改成一样的

asymptotic_1234
asymptotic_1234 回复zc15537853061: 我前几天,报过这个错,我就是把Tomcat和jdk都改用64位的就好了
3 个月之前 回复
weixin_39561022
weixin_39561022 回复zc15537853061: 对,版本报错不影响的
3 个月之前 回复
fcfwang_net
fcfwang_net 回复zc15537853061: 看一下你的web.xml上配置的东西,看一下你是否配置servlet了
3 个月之前 回复
zc15537853061
zc15537853061 不是这里的问题啊
3 个月之前 回复
weixin_39561022
weixin_39561022   2017.08.31 10:08

404就是找不到页面,还是你项目路径的问题,和服务器没有关系

huang931027
huang931027   2017.08.31 10:33

这不是报错了吗

 The APR based Apache Tomcat Native library failed to load. The error reported was [D:\Program Files\tomcat\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform]
java.lang.UnsatisfiedLinkError: D:\Program Files\tomcat\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform


rxwsj13
rxwsj13   2017.08.31 10:37

你去网上找D:\Program Files\tomcat\bin\tcnative-1.dll,这个文件换成64位的

qq_23126581
qq_23126581   Rxr 2017.08.31 10:42

java.lang.UnsatisfiedLinkError: D:\Program Files\tomcat\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
dll 不对,你在64位系统引用了32位的dll,换成对应64位dll就可以解决问题了,路径在D:\Program Files\tomcat\bin\tcnative-1.dll dll文件是:tcnative-1.dll

ITzhangdaopin
ITzhangdaopin   2017.08.31 10:48

http://www.apache.org/dist/tomcat/tomcat-connectors/native/

到该地址下下载一个tomcat-native-1.2.2-win32-bin压缩包,选择里边的一个64位tcnative-1.dll覆盖tomcat中bin目录下的tcnative-1.dll文件即可
再次运行即不会报错了。

zc15537853061
zc15537853061   2017.08.31 11:09

已经解决了,应该是项目里面的问题,换个项目就好了,谢谢大家

Csdn user default icon
上传中...
上传图片
插入图片