eclipse+tomcat+jdk安装出错
tomcat可以正常启动,jdk也装了并设置了环境变量,但是一在eclipse下运行文件就报错:出错信息如下:2011-11-2215:37:17org.apache.c...
tomcat可以正常启动,jdk也装了并设置了环境变量,但是一在eclipse下运行文件就报错:
出错信息如下:
2011-11-22 15:37:17 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: C:\Program Files\Java\jre1.6.0\……\System32\Wbem
2011-11-22 15:37:17 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind <null>:8080
严重: Can't find free port 8009 8009
2011-11-22 15:37:19 org.apache.jk.server.JkMain start
信息: Pausing Coyote HTTP/1.1 on http-8080
2011-11-22 15:37:20 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2011-11-22 15:37:20 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts2-blank-2.0.14] created a ThreadLocal with key of type [com.opensymphony.xwork2.ActionContext.ActionContextThreadLocal] (value [com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal@9a9b65]) and a value of type [com.opensymphony.xwork2.ActionContext] (value [com.opensymphony.xwork2.ActionContext@502819]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-11-22 15:37:20 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts2-blank-2.0.14] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@78aa80]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@1d98a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-11-22 15:37:20 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
2011-11-22 15:37:20 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
2011-11-22 15:37:20 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
占用8080端口的进程是javaw.exe,我在资源管理其中结束了它,但是一运行文件就有报错,该进程又占用了8080端口,应该怎么解决。javaw.exe是个什么进程?。
感谢各位的回答,补充一次点,可以正常启动tomcat,只是一运行文件就报上述错误。是不是javaw是有tomcat启动引起的? 展开
出错信息如下:
2011-11-22 15:37:17 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: C:\Program Files\Java\jre1.6.0\……\System32\Wbem
2011-11-22 15:37:17 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind <null>:8080
严重: Can't find free port 8009 8009
2011-11-22 15:37:19 org.apache.jk.server.JkMain start
信息: Pausing Coyote HTTP/1.1 on http-8080
2011-11-22 15:37:20 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2011-11-22 15:37:20 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts2-blank-2.0.14] created a ThreadLocal with key of type [com.opensymphony.xwork2.ActionContext.ActionContextThreadLocal] (value [com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal@9a9b65]) and a value of type [com.opensymphony.xwork2.ActionContext] (value [com.opensymphony.xwork2.ActionContext@502819]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-11-22 15:37:20 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts2-blank-2.0.14] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@78aa80]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@1d98a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-11-22 15:37:20 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
2011-11-22 15:37:20 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
2011-11-22 15:37:20 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
占用8080端口的进程是javaw.exe,我在资源管理其中结束了它,但是一运行文件就有报错,该进程又占用了8080端口,应该怎么解决。javaw.exe是个什么进程?。
感谢各位的回答,补充一次点,可以正常启动tomcat,只是一运行文件就报上述错误。是不是javaw是有tomcat启动引起的? 展开
3个回答
展开全部
是你的其他程序占用了8080的端口,
修改tomcat的安装目录\conf\server.xml的文件,如下,你可以把8080修改为8089
<Connector port="8089" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
修改tomcat的安装目录\conf\server.xml的文件,如下,你可以把8080修改为8089
<Connector port="8089" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
追问
我把端口好改了8089后,javaw就占用8089端口,我又试了几个其他的端口号,都不行。改成那个,就占用那个。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
8080 端口被占用了
可打开进程管理器或端口查看器,kill占用8080端口的进程
可打开进程管理器或端口查看器,kill占用8080端口的进程
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询