Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.softwaretools > #167

Re: Eclipse: running on server error: "Multiple Contexts have a path of ..."

Newsgroups comp.lang.java.softwaretools
Date 2012-10-01 03:02 -0700
References <1301502b-e617-47d8-8a8d-43e5ef5980e7@c4g2000hsg.googlegroups.com> <8c9684b5-8995-4287-9174-f69415cf473d@q78g2000hsh.googlegroups.com> <2bf3f66b-6245-4195-ad9d-8a9044c41388@d4g2000prg.googlegroups.com> <33966b06-8d73-43f5-9136-b7d6838fe505@s12g2000prg.googlegroups.com>
Message-ID <37823114-5d83-46f3-bc99-0e1f5ecf1561@googlegroups.com> (permalink)
Subject Re: Eclipse: running on server error: "Multiple Contexts have a path of ..."
From tryasta@gmail.com

Show all headers | View raw


El sábado, 22 de marzo de 2008 08:13:57 UTC+1, feit...@gmail.com  escribió:
> On 3月3日, 下午5时31分, kenniskrij...@gmail.com wrote:
> > On 14 feb, 15:19, xlucio.fla...@gmail.com wrote:
> >
> >
> >
> >
> >
> > > On 4 fev, 12:31, Woland <thewol...@gmail.com> wrote:
> >
> > > > Hi all!
> >
> > > > I'm having a problem running my web project on server (Tomcat 5.5 or
> > > > Tomcat 6.0) from Eclipse IDE 3.3 WST.
> > > > Whenever I try to run my project on server, during the publishing
> > > > process I get the following error:
> >
> > > > Multiple Contexts have a path of "/Project_Name"
> >
> > > > I've tried many thing to solve it including making a new workspace
> > > > directory.
> >
> > > > Any ideas?
> >
> > > Hello
> >
> > > Try to rename the Project / Properties / WebProject Settings to
> > > Project_name2 for example.
> > > Works fine for me.
> >
> > > Now why this $#%#*# happen, I simplily don't know!!!
> >
> > Actually it's really simple. The server.xml file is corrupted by
> > Eclipse!!! How it happens I don't know, there could be many reasons
> > internal to Eclipse WST guts. So, like I found out many times with
> > Eclipse, don't be afraid to do some XML file surgery.
> >
> > Open the corrupted server.xml file by selecting it in Eclipse.
> > Do a search for the particular path ( /Project_Name ) ...
> > notice how there are multiple Context tags using the same path? Remove
> > the unwanted ones and live will be good yet again.
> >
> > No thanks, just making the programmer world a better place
> >
> > Daniel Gressmann- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
> 
> Thank you!
> I met this problem then I goole it
> find you method, and take a try. Now it can work!
> Thank you !!!^_^

The corruption of the server.xml file is done by the Server´s plugin. Every time the war is Added (for example, if you remove and add it again) Eclipse creates a new Context tag in the server.xml file.

Back to comp.lang.java.softwaretools | Previous | Next | Find similar | Unroll thread


Thread

Re: Eclipse: running on server error: "Multiple Contexts have a path  of ..." tryasta@gmail.com - 2012-10-01 03:02 -0700

csiph-web