和你工程无关~~看你的tomcat配置~~如果没问题的话那你tomcat服务起来没有~~就是statup~~看tomcat的起动信息看是什么问题~~

解决方案 »

  1.   

    看一下日志,第一次觉得和防火墙有关,不过基本不可能,
    你看你下你的PATH环境是不是没有加SYSTEM32这个系统环境的变量!
      

  2.   

    防火墙及杀毒软件,全部关闭了。环境变量PATH中也加入了SYSTEM32。
    用tomcat自带的Configure Tomcat去启动,正常,然后登陆http://localhost:8080,结果依然是那样。catalina信息如下:2008-4-22 16:05:21 org.apache.coyote.http11.Http11AprProtocol init
    信息: Initializing Coyote HTTP/1.1 on http-8080
    2008-4-22 16:05:21 org.apache.coyote.ajp.AjpAprProtocol init
    信息: Initializing Coyote AJP/1.3 on ajp-8009
    2008-4-22 16:05:21 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 891 ms
    2008-4-22 16:05:21 org.apache.catalina.core.StandardService start
    信息: Starting service Catalina
    2008-4-22 16:05:21 org.apache.catalina.core.StandardEngine start
    信息: Starting Servlet Engine: Apache Tomcat/5.5.26
    2008-4-22 16:05:21 org.apache.catalina.core.StandardHost start
    信息: XML validation disabled
    2008-4-22 16:05:23 org.apache.coyote.http11.Http11AprProtocol start
    信息: Starting Coyote HTTP/1.1 on http-8080
    2008-4-22 16:05:23 org.apache.coyote.ajp.AjpAprProtocol start
    信息: Starting Coyote AJP/1.3 on ajp-8009
    2008-4-22 16:05:23 org.apache.catalina.storeconfig.StoreLoader load
    信息: Find registry server-registry.xml at classpath resource
    2008-4-22 16:05:23 org.apache.catalina.startup.Catalina start
    信息: Server startup in 1874 ms
    2008-4-22 16:05:56 org.apache.coyote.http11.Http11AprProtocol pause
    信息: Pausing Coyote HTTP/1.1 on http-8080
    2008-4-22 16:05:56 org.apache.coyote.ajp.AjpAprProtocol pause
    信息: Pausing Coyote AJP/1.3 on ajp-8009
    2008-4-22 16:05:57 org.apache.catalina.core.StandardService stop
    信息: Stopping service Catalina
    2008-4-22 16:05:57 org.apache.coyote.http11.Http11AprProtocol destroy
    信息: Stopping Coyote HTTP/1.1 on http-8080
    2008-4-22 16:05:57 org.apache.coyote.ajp.AjpAprProtocol destroy
    信息: Stopping Coyote AJP/1.3 on ajp-8009
    2008-4-22 17:23:30 org.apache.coyote.http11.Http11AprProtocol init
    信息: Initializing Coyote HTTP/1.1 on http-8080
    2008-4-22 17:23:30 org.apache.coyote.ajp.AjpAprProtocol init
    信息: Initializing Coyote AJP/1.3 on ajp-8009
    2008-4-22 17:23:30 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 984 ms
    2008-4-22 17:23:31 org.apache.catalina.core.StandardService start
    信息: Starting service Catalina
    2008-4-22 17:23:31 org.apache.catalina.core.StandardEngine start
    信息: Starting Servlet Engine: Apache Tomcat/5.5.26
    2008-4-22 17:23:31 org.apache.catalina.core.StandardHost start
    信息: XML validation disabled
    2008-4-22 17:23:32 org.apache.coyote.http11.Http11AprProtocol start
    信息: Starting Coyote HTTP/1.1 on http-8080
    2008-4-22 17:23:32 org.apache.coyote.ajp.AjpAprProtocol start
    信息: Starting Coyote AJP/1.3 on ajp-8009
    2008-4-22 17:23:33 org.apache.catalina.storeconfig.StoreLoader load
    信息: Find registry server-registry.xml at classpath resource
    2008-4-22 17:23:33 org.apache.catalina.startup.Catalina start
    信息: Server startup in 2172 ms
    2008-4-22 17:23:35 org.apache.coyote.http11.Http11AprProtocol pause
    信息: Pausing Coyote HTTP/1.1 on http-8080
    2008-4-22 17:23:35 org.apache.coyote.ajp.AjpAprProtocol pause
    信息: Pausing Coyote AJP/1.3 on ajp-8009
    2008-4-22 17:23:36 org.apache.catalina.core.StandardService stop
    信息: Stopping service Catalina
    2008-4-22 17:23:36 org.apache.coyote.http11.Http11AprProtocol destroy
    信息: Stopping Coyote HTTP/1.1 on http-8080
    2008-4-22 17:23:36 org.apache.coyote.ajp.AjpAprProtocol destroy
    信息: Stopping Coyote AJP/1.3 on ajp-8009
    --------------------------------------------------------------------------
    localhost信息如下:
    2008-4-22 16:05:22 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    2008-4-22 16:05:22 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    2008-4-22 16:05:22 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    2008-4-22 16:05:22 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    2008-4-22 16:05:22 org.apache.catalina.core.ApplicationContext log
    信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2008-4-22 16:05:57 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextDestroyed()
    2008-4-22 16:05:57 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextDestroyed()
    2008-4-22 16:05:57 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextDestroyed()
    2008-4-22 16:05:57 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextDestroyed()
    2008-4-22 17:23:32 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    2008-4-22 17:23:32 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    2008-4-22 17:23:32 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    2008-4-22 17:23:32 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    2008-4-22 17:23:32 org.apache.catalina.core.ApplicationContext log
    信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2008-4-22 17:23:36 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextDestroyed()
    2008-4-22 17:23:36 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextDestroyed()
    2008-4-22 17:23:36 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextDestroyed()
    2008-4-22 17:23:36 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextDestroyed()
    --------------------------------------------------------------------------等待......
      

  3.   

    你的tomcat版本和jdk版本是多少
      

  4.   

    你的tomcat和jdk的版本是多少,会不会是版本的问题!
      

  5.   

    你的安装步骤是咋样的?还有你把tomcat里面有个叫什么***3.0.0(根据版本)的文件复制到eclipse的plugins下面 要不你就安装一个集成版
      

  6.   

    去我网站的文章里面看吧,里面有非常详细的tomcat+eclipce+myeclipce架构方法。。我就按那个自己架构成功的
    www.suturns.cn
      

  7.   

    可能是eclipse的配置问题。
    在eclipse中是否为Tomcat配置好JDK
      

  8.   

    Tomcat是5.5,jdk是1.5,
    安装步骤如下,先c盘安装了jdk,配置环境变量,然后c盘安装eclipse和tomcat,在eclipse里面,对tomcat进行配置。启动tomcat,新建一个web工程测试,但是无法访问。需要注意的是,改机器系统重做的,然后装了这些东西,就不能用。晚上,我又换了另一台没装过这些软件的机器(操作系统都是一个盘装得),装上jdk,配置环境变量,在dos下输入java,javac,jar等,都有相应信息,说明jdk安装成功了吧,然后安装eclipse和tomcat,装好后,没有对tomcat进行环境变量设置,只不过在eclipse里面添加了tomcat服务,开启tomcat,浏览器输入http://localhost:8080,有欢迎页面,新建web工程test,添加一个页面index.jsp,启动tomcat,输入http://localhost:8080/test/index.jsp,也可一正常显示。 非常奇怪的现象。之前说过系统重做,就是因为用了番茄花园的xp修复了原来系统,导致了我的eclipse里面的GBK字符集无法使用,在eclipse里面无法建立class,也无法打开原有工程里面的class,提示说不支持字符集GBK,做了很多修改都不行,还导致了一个原因就是,恢复后,taocat出现了以上无法显示的情况,多方查询没有解决,因此无奈之下找了一张原版的系统(改系统在另外两台机器上都能正常使用eclipse和tomcat)重装了,但是结果却是eclipse字符集好了,tomcat依然无法访问网页。 甚是奇怪。我的机器还装了IBM的WASD,DB2等,但是装到了D盘,并没有和tomcat一起装C盘,不应该是冲突了。
    继续等待.....................
      

  9.   

    只要设置环境变量JAVA_HOME,值为jdk根目录,就ok了
      

  10.   

    环境变量设置没问题的。这个是不是有什么提示:
    Background: 
    The server you are attempting to access has refused the connection with the gateway. This usually results from trying to connect to a service that is inactive on the server. 
    还是不能用啊,没有高手遇到过这种情况?
      

  11.   

    建议tomcat用解压缩的5.5~版本
    若要在eclipse中使用tomcat图标得先在eclipes中添加插件
    若果环境变量配置正确的话还出不来,那就奇怪了难道你的ie中病毒了?
      

  12.   

    “在dos下输入java,javac,jar等,都有相应信息”  你在自己机子上试了没有?
    可以肯定是环境变两问题
      

  13.   

    在本机器上写了helloWorld程序,javac和java都运行正常,结果正常。
    环境变量没有问题。问题算是解决了,不过没全部解决。
    在浏览器中输入http://localhost:8080无法打开,而我输入http://127.0.0.1:8080却正常。
    所以说问题解决了一部分,这是为什么呢!
      

  14.   

    不是windows?
    windows的hosts文件地址映射不是
    localhost 127.0.01 ?
      

  15.   

    我也遇到类似的这样的问题!
    我的是单独的运行TOMCAT是不行,不能运行,
    但是通过Myeclipse打开就可以.
    这是怎么回事啊?
    请高手啊