当前位置: 代码迷 >> Java Web开发 >> jbuilder中的tomcat有关问题
  详细解决方案

jbuilder中的tomcat有关问题

热度:48   发布时间:2016-04-17 16:47:58.0
jbuilder中的tomcat问题
本机上安装了jbuilder和tomcat.当启动一个web工程时,jbuilder自带的tomcat无法使用(8080端口).要启动了自己另装的tomcat时,jbuilder自带的tomcat才能正常使用.这时jbuilder自带的tomcat占用8083端口,自己安装的tomcat占用8080端口.
就是说两个tomcat都要启动,我的web工程才能正常运行.否则会提示以下内容.

D:\Borland\JBuilder2005\jdk1.4\bin\javaw   -classpath   "D:\Borland\JBuilder2005\thirdparty\jakarta-tomcat-5.0.27\bin\bootstrap.jar;D:\Borland\JBuilder2005\jdk1.4\lib\tools.jar "     "-Dcatalina.home=D:/Borland/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27 "     org.apache.catalina.startup.Bootstrap   -config   D:\Borland\untitled1\Tomcat\conf\server8080.xml   start  
2007-1-24   15:18:33   org.apache.coyote.http11.Http11Protocol   init

信息:   Initializing   Coyote   HTTP/1.1   on   http-8080

2007-1-24   15:18:33   org.apache.catalina.startup.Catalina   load

信息:   Initialization   processed   in   922   ms

2007-1-24   15:18:33   org.apache.catalina.core.StandardService   start

信息:   Starting   service   Catalina

2007-1-24   15:18:33   org.apache.catalina.core.StandardEngine   start

信息:   Starting   Servlet   Engine:   Apache   Tomcat/5.0.27

2007-1-24   15:18:33   org.apache.catalina.core.StandardHost   start

信息:   XML   validation   disabled

2007-1-24   15:18:33   org.apache.catalina.core.StandardHost   getDeployer

信息:   Create   Host   deployer   for   direct   deployment   (   non-jmx   )  

2007-1-24   15:18:34   org.apache.coyote.http11.Http11Protocol   start

信息:   Starting   Coyote   HTTP/1.1   on   http-8080

2007-1-24   15:18:34   org.apache.catalina.startup.Catalina   start

信息:   Server   startup   in   828   ms

StandardServer.await:   create[8081]:   java.net.BindException:   Address   already   in   use:   JVM_Bind

java.net.BindException:   Address   already   in   use:   JVM_Bind

at   java.net.PlainSocketImpl.socketBind(Native   Method)

at   java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)

at   java.net.ServerSocket.bind(ServerSocket.java:318)

at   java.net.ServerSocket. <init> (ServerSocket.java:185)

at   org.apache.catalina.core.StandardServer.await(StandardServer.java:496)

at   org.apache.catalina.startup.Catalina.await(Catalina.java:619)

at   org.apache.catalina.startup.Catalina.start(Catalina.java:579)

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

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

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

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

at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)

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



------解决方案--------------------
你可以把JB中的TOMCAT的XML文件的端口改一下看看!
  相关解决方案