同时开了Jboss5.0和tomcat6.0,jboss启动没问题,但tomcat启动报错
错误如下:
2010-7-25 16:52:11 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: D:\MyEclipse 8.0\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
2010-7-25 16:52:11 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8888
2010-7-25 16:52:11 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 375 ms
2010-7-25 16:52:11 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-7-25 16:52:11 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2010-7-25 16:52:12 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2010-7-25 16:52:12 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2010-7-25 16:52:12 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2010-7-25 16:52:13 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8888
2010-7-25 16:52:13 org.apache.jk.common.ChannelSocket init
信息: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
2010-7-25 16:52:13 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8010
2010-7-25 16:52:13 org.apache.jk.server.JkMain start
信息: Jk running ID=1 time=0/16  config=null
2010-7-25 16:52:13 org.apache.catalina.startup.Catalina start
信息: Server startup in 1707 ms

解决方案 »

  1.   

    这就是端口被占用了,因为jboss使用了tomcat作为基础服务,所以一些默认设置和tomcat是一致的。
    解决方法就是修改jboss的端口或者tomcat的端口。
    tomcat为例 
    找conf 目录中的server.xml  寻找报错的端口 ,你目前例子是8009 因为
    信息: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
    改成其他的比如9009好了
      

  2.   

    Thanks , It works good.