精华内容
下载资源
问答
  • eclipse Two or more Web modules defined in the configuration have the same context root 打开Tomcat的server.xml,里面eclipse自动生成的那个配置信息,确实不对 原因 由于我是复制的,所以里面的配置信息...

    问题描述

    我把一个项目复制了一份,然后Tomcat同时运行着两个项目的时候,就报错了

    eclipse Two or more Web modules defined in the configuration have the same context root 
    

    在这里插入图片描述
    打开Tomcat的server.xml,里面eclipse自动生成的那个配置信息,确实不对

    原因

    由于我是复制的,所以里面的配置信息没有改,自动运行到服务器的时候,导致配置信息一样。

    因为tomcat为项目建立服务器的配置出现错误。错误的文件为D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml,当你直接复制项目时项目当中D:\Test\test.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值没有改变而是原来项目的值。当把复制的项目再次加入tomcat的服务时就会造成以上错误。

    解决

    将服务器的server.xml当中新加入的错误Context删除,同时将项目目录下的,.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值改为新项目的名称,重新加入tomcat的服务,问题解决。

    <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
        <wb-module deploy-name="guoYouZiChanglc">
            <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
            <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
            <property name="context-root" value="guoYouZiChanglc"/>
            <property name="java-output-path" value="/guoYouZiChanglc/build/classes"/>
        </wb-module>
    </project-modules>
    

    如果不行,记得刷新一下项目目录,或者重启eclipse

    展开全文
  • tomcat发布和启动时报错,网上的解决方法基本上是在

    tomcat发布和启动时报错,网上的解决方法基本上是进入tomcat\webapps\conf文件夹,找到server.xml中,删除重复的工程部署,比如我的server.xml中出现了两条相关的记录:

    <Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>

    <Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>

    删除一条后在eclipse中启动server,仍会出现两条记录。之后将工程从server中移除,clean之后尝试仍然不行。后来想到我是通过eclipse启动server的,tomcat已经进行了注册,在工作区间(workspace)中果然又发现了一个server.xml,文件路径为:D:\Workspaces\JavaProject\Servers\Apache Tomcat v6.0_3.0-config\server.xml

    打开后删除其中的内容:

    <Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>

    就可以了。

     

    总结得到如果使用tomcat直接启动工程,出现上述问题需要修改tomcat\webapps\conf\server.xml,如果使用eclipse启动,就需要首先检查ecplise内部的配置信息了。

    展开全文
  • eclipse 错误:  two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to r
    eclipse 错误: 
    two or more web modules defined in the configuration have the same context  root(/项目名)。to start this server you will need to remove the duplicate(s) 

    产生原因: 因为tomcat为项目建立服务器的配置出现错误。错误的文件为D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml,当你直接复制项目时项目当中D:\Test\test\.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值没有改变而是原来项目的值。当把复制的项目再次加入tomcat的服务时就会造成以上错误。



    解决方案:将D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml当中新加入的错误Context删除,同时将D:\Test\test\.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值改为新项目的名称,重新加入tomcat的服务,问题解决。

    展开全文
  • 转自:... 错误: two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to r...

    转自:http://www.cnblogs.com/thomaskwan/archive/2012/05/27.html

    错误:

    two or more web modules defined in the configuration have the same context  root(/项目名)。to start this server you will need to remove the duplicate(s) 

    产生原因:

      因为tomcat为项目建立服务器的配置出现错误。错误的文件为D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml,当你直接复制项目时项目当中D:\Test\test\.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值没有改变而是原来项目的值。当把复制的项目再次加入tomcat的服务时就会造成以上错误。

    解决方案:

      将D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml当中新加入的错误Context删除,同时将D:\Test\test\.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值改为新项目的名称,重新加入tomcat的服务,问题解决。

    转载于:https://www.cnblogs.com/tv151579/archive/2013/06/04/3116951.html

    展开全文
  • tomcat中启动了两个项目,需要在tomcat 的server.xml 中将path去重
  • 被Eclipse中的Tomcat报错折磨得死去活来的我,终于决定留个文章以备未来自己重蹈覆辙的时候查看。。 产生原因: 因为tomcat为项目建立服务器的配置出现错误。 解决办法: 1....工作路径\Servers\Tomcat v7.0 Server...
  • two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to remove the duplicate(s)  产生原因: 因为tomcat为项目建立服务器...
  • up vote down votefavorite I have declared two LOG.i such as followings in my code: Log.i("pen", pen.toString); Log.i("book", book.toString);...Then I added these two filters to
  • web开发技术和技术分享Web improvement encompasses a gigantic arrangement of rules and procedures each site engineer should think about. Sometime in the past HTML5, CSS3, JavaScript, PHP, and MySQL were...
  • TheAdmin template is compatible with mobile devices and modern web browsers and provides all the necessities and a whole bunch more. The ease of customization and the combination of available content ...
  • 搭建git服务器web界面Image credit: Capri23auto @ Pixabay 图片来源:Capri23auto @ 介绍 (Introduction) This is the first in a multi-part series in which I will be building off the Foundational Concepts...
  • Oracle web tier——Oracle HTTP Server

    千次阅读 2014-05-01 22:53:26
    Oracle HTTP Server is the Web server component for Oracle Fusion Middleware. It provides a listener for Oracle WebLogic Server and the framework for hosting static pages, dynamic pages, and applicat
  • PurposeEstimated time to complete this lab: 25 minutesIn this exercise, you will learn how to use the Web Client Software Factory to create a Web client solution that you can use as the starting p
  • It makes the transition from data (analytics or machine learning) to a shiny app with minimal code and almost no requirement of learning and deploying web service frameworks (like Flask or Django)....
  • Web 站点提速的最佳实践(Best Practices for Speeding Up Your Web Site)
  • Web:Spring Web

    千次阅读 2020-05-26 23:17:43
    Getting Started Reference Documentation For further reference, please consider the following sections: Official Apache Maven documentation ...Spring Web Guides The following guides illustrate how t
  • Template : A container for one or more handlers. The template must be unique within the module and is associated with a specific path (emp/), which may or may not include parameters. Handler : A link ...
  • Best Practices for Speeding Up Your Web Site

    千次阅读 2010-10-21 10:58:00
    Best Practices for Speeding Up Your Web Site
  • SCSF - Part 1 Modules and Shells

    千次阅读 2013-10-18 14:31:24
    To do this I’m going to focus on one or two basic concepts in each article. There’s quite a lot of blogging about CAB/SCSF on the web, but I couldn’t find anything that gave me a quick, basic ...
  • flutter webWhen building cross-platform applications that can run on web, mobile and desktop, we often don’t need to access the underlying platform — we are either showing static data or we are ...
  • Index View on single page View as JSON View another version ▼ Edit on GitHub Table of Contents ECMAScript Modules Introduction Enabling package.json "type" field Package S...
  • Two example <web-application> elements are shown below. Edit or remove these elements as needed. To set the value of the <web-application> element to the default web-application context, use the ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 8,687
精华内容 3,474
关键字:

modulesmoreortwoweb