2 qq 32338647 qq_32338647 于 2016.03.29 11:02 提问

eclipse中工程启动tomcat,浏览器无法访问

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] taotao-manager
[INFO] taotao-manager-pojo
[INFO] taotao-manager-dao
[INFO] taotao-manager-service
[INFO] taotao-manager-web
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager ---
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>>
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo ---
[INFO] Deleting D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-pojo\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 22 source files to D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-pojo\target\classes
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-dao 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-dao ---
[INFO] Deleting D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-dao\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-dao >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-dao ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-dao ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-dao\target\classes
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-dao <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-dao ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-service 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service ---
[INFO] Deleting D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-service\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-service\target\classes
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-web 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web ---
[INFO] Deleting D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-web\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-web >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-web\target\classes
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-web <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-web ---
[INFO] Running war on http://localhost:8082/
[INFO] Creating Tomcat server configuration at D:\gongju\eclipsemars_work\taotao-manager\taotao-manager-web\target\tomcat
[INFO] create webapp with contextPath:
三月 29, 2016 10:52:54 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8082"]
三月 29, 2016 10:52:54 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
三月 29, 2016 10:52:54 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
三月 29, 2016 10:52:58 上午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
三月 29, 2016 10:52:58 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

6个回答

zhangshangui_2015
zhangshangui_2015   2016.03.29 11:26

tomcat报的什么错?war打的有问题?

Royal_lr
Royal_lr   Ds   Rxr 2016.03.29 14:18

maven的部署有问题吧,,,

u010850027
u010850027   2016.03.29 14:22

IP地址是你的本机吗?看看是不是这里的问题。

xiaoyao880609
xiaoyao880609   2016.03.29 14:42

问题比较片面,我整理一下web项目部署tomcat相关配置点,
需要先将项目转为web项目,Project Fecets中Dynamic Web Module选中。
java Build path中导入指定包和output 路径。(jdk和maven第三方依赖包)
deployment assembly检查路径和导入依赖包。
tomcat中通过add and remove将项目加载进服务器。
如果还有错请追问~

qq_32338647
qq_32338647   2016.03.29 15:24

图片说明

CSDNXIAON
CSDNXIAON   2016.03.30 11:30

eclipse启动tomcat无法访问
eclipse启动tomcat无法访问
eclipse启动tomcat无法访问
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!