首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse3.5配备tomcat7.0

2013-01-08 
eclipse3.5配置tomcat7.0eclipse3.5配置tomcat7.0的问题。具体步骤如下所示:1、启动eclipse3.5?2、选择“serve

eclipse3.5配置tomcat7.0

eclipse3.5配置tomcat7.0的问题。

具体步骤如下所示:

1、启动eclipse3.5

?

2、选择“server”选项卡,右键新建Server,显示如下图所示内容:

?

3、点击右下角的“Add...”配置tomcat7的路径

?

4、然后点击Finish,再点击Finish,然后出现如下配置完成的界面——server选项卡多出来一个服务器名,左边“Project Explorer”出现“Server项目”

?

5、右键点击左边“Project Explorer”的“Server”项目,选择“run as”出现下面的界面

?

6、双击左边的“Apache Tomcat”,选择 “New_configuration”,在右边看到新建的服务器“Server_tomcat7.0”,然后选择ClassPath选项卡,如下图所示:

?

7、右边点击“Add External Jars...”选择tomcat7.0? bin/下的tomcat-juli.jar

?

8、添加完毕后的界面,然后点击“apply”

?

9、完成,控制台输出以下内容,表示tomcat启动成功!

view plaincopy to clipboardprint?
coolwzjcool??
2010-8-20 14:28:08 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:\workTools\java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/workTools/java/jdk1.6.0_18/bin/../jre/bin/client;D:/workTools/java/jdk1.6.0_18/bin/../jre/bin;C:\Program Files\Common Files\NetSarang;D:\workTools\oracle10g\bin;D:\workTools\java\jdk1.6.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ThinkPad Wireless LAN Adapter Software;C:\Program Files\Common Files\Lenovo;D:\workTools\mysql5.1\bin;D:\workTools\TortoiseSVN1.6.9\bin??
2010-8-20 14:28:09 org.apache.coyote.http11.Http11Protocol init??
信息: Initializing Coyote HTTP/1.1 on http-8080??
2010-8-20 14:28:09 org.apache.coyote.ajp.AjpProtocol init??
信息: Initializing Coyote AJP/1.3 on ajp-8009??
2010-8-20 14:28:09 org.apache.catalina.startup.Catalina load??
信息: Initialization processed in 902 ms??
2010-8-20 14:28:09 org.apache.catalina.core.StandardService startInternal??
信息: Starting service Catalina??
2010-8-20 14:28:09 org.apache.catalina.core.StandardEngine startInternal??
信息: Starting Servlet Engine: Apache Tomcat/7.0.2??
2010-8-20 14:28:09 org.apache.coyote.http11.Http11Protocol start??
信息: Starting Coyote HTTP/1.1 on http-8080??
2010-8-20 14:28:09 org.apache.coyote.ajp.AjpProtocol start??
信息: Starting Coyote AJP/1.3 on ajp-8009??
2010-8-20 14:28:09 org.apache.catalina.startup.Catalina start??
信息: Server startup in 305 ms??
Author WzjLovell 2010?
coolwzjcool
2010-8-20 14:28:08 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:\workTools\java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/workTools/java/jdk1.6.0_18/bin/../jre/bin/client;D:/workTools/java/jdk1.6.0_18/bin/../jre/bin;C:\Program Files\Common Files\NetSarang;D:\workTools\oracle10g\bin;D:\workTools\java\jdk1.6.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ThinkPad Wireless LAN Adapter Software;C:\Program Files\Common Files\Lenovo;D:\workTools\mysql5.1\bin;D:\workTools\TortoiseSVN1.6.9\bin
2010-8-20 14:28:09 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-8-20 14:28:09 org.apache.coyote.ajp.AjpProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2010-8-20 14:28:09 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 902 ms
2010-8-20 14:28:09 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2010-8-20 14:28:09 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.2
2010-8-20 14:28:09 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-8-20 14:28:09 org.apache.coyote.ajp.AjpProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2010-8-20 14:28:09 org.apache.catalina.startup.Catalina start
信息: Server startup in 305 ms
Author WzjLovell 2010

10、如果设置完成后,仍然不能启动,还是报上一篇的错误,可以进行如下操作:

# 右键点击server选项卡里的server,选择“Properties”,出现如下页面

?

#点击“switch Loacation” 按钮,“apply”——〉ok

#然后再重新执行5~8步骤,即可!


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/coolwzjcool/archive/2010/08/21/5826476.aspx

热点排行