起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3530|回复: 4

[结贴] 第一次启动tomcat就报错,请问是什么原因?

[复制链接]

5

主题

12

帖子

33

积分

新手上路

Rank: 1

积分
33
QQ
发表于 2015-1-30 14:34:04 | 显示全部楼层 |阅读模式
版本: X5.3.0 小版本号:
数据库: MS SQLServer 服务器操作系统: 应用服务器:
客户端操作系统: Windows 7 浏览器:
我先运行了“启动MySQL数据库.bat”和“启动X5运行平台.bat”,显示正常

然后运行“启动X5开发工具.bat”并在studio里启动tomcat,显示如下错误:请问是什么原因?我还没有进行开发,第一次启动就报错。

======================================================================================
一月 30, 2015 2:23:57 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\X5_V3.0\java\jre1.7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\MATLAB\R2010a\runtime\win64;C:\Program Files\MATLAB\R2010a\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;.
一月 30, 2015 2:23:57 下午 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:180)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1124)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
        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)
Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.DualStackPlainSocketImpl.bind0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at java.net.ServerSocket.<init>(ServerSocket.java:181)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
        ... 12 more

一月 30, 2015 2:23:57 下午 org.apache.catalina.core.StandardService initialize
严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1126)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
        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)

一月 30, 2015 2:23:57 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 288 ms
一月 30, 2015 2:23:57 下午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
一月 30, 2015 2:23:57 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.41
[JUSTEP_HOME in UIServer]: E:\X5_V3.0
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
一月 30, 2015 2:23:58 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
一月 30, 2015 2:23:58 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
一月 30, 2015 2:23:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory x5baas
一月 30, 2015 2:23:59 下午 org.apache.coyote.http11.Http11Protocol start
严重: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
        at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
        at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:207)
        at org.apache.catalina.connector.Connector.start(Connector.java:1197)
        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.DualStackPlainSocketImpl.bind0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at java.net.ServerSocket.<init>(ServerSocket.java:181)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
        ... 12 more

一月 30, 2015 2:23:59 下午 org.apache.catalina.core.StandardService start
严重: Failed to start connector [Connector[HTTP/1.1-8080]]
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.catalina.connector.Connector.start(Connector.java:1204)
        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

一月 30, 2015 2:23:59 下午 org.apache.jk.common.ChannelSocket init
信息: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
一月 30, 2015 2:23:59 下午 org.apache.jk.common.ChannelSocket init
严重: Can't find free port 8009 8009
一月 30, 2015 2:23:59 下午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/7  config=null
一月 30, 2015 2:23:59 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1835 ms
一月 30, 2015 2:23:59 下午 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
        at java.net.DualStackPlainSocketImpl.bind0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
        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.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

一月 30, 2015 2:23:59 下午 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
一月 30, 2015 2:24:00 下午 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
一月 30, 2015 2:24:00 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
一月 30, 2015 2:24:00 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
一月 30, 2015 2:24:00 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/x5baas] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@e767ca]) and a value of type [java.util.WeakHashMap] (value [{class com.justep.weixin.mp.WxMpXMLInMemoryConfigStorage=java.lang.ref.WeakReference@4f2b58}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
一月 30, 2015 2:24:01 下午 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080


397

主题

2437

帖子

4885

积分

论坛元老

Rank: 8Rank: 8

积分
4885
QQ
发表于 2015-1-30 15:13:13 | 显示全部楼层
tomcat端口被占,换个端口,如8085
QQ67886387
回复 支持 反对

使用道具 举报

5

主题

12

帖子

33

积分

新手上路

Rank: 1

积分
33
QQ
 楼主| 发表于 2015-1-30 15:28:16 | 显示全部楼层
我发现不启动“启动X5运行平台.bat”的话就可以启动tomcat了, 两个端口有冲突,好像都运行了tomcat, 是不能同时运行吗?

回复 支持 反对

使用道具 举报

397

主题

2437

帖子

4885

积分

论坛元老

Rank: 8Rank: 8

积分
4885
QQ
发表于 2015-1-30 16:01:51 | 显示全部楼层
liangxin 发表于 2015-1-30 15:28
我发现不启动“启动X5运行平台.bat”的话就可以启动tomcat了, 两个端口有冲突,好像都运行了tomcat, 是不 ...

不能同时运行

评分

参与人数 1 +4 收起 理由
jishuang + 4 赞一个!

查看全部评分

QQ67886387
回复 支持 反对

使用道具 举报

5

主题

12

帖子

33

积分

新手上路

Rank: 1

积分
33
QQ
 楼主| 发表于 2015-2-4 11:13:02 | 显示全部楼层

明白了,谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-1 08:05 , Processed in 0.079124 second(s), 29 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表