Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » My application is started twice!
My application is started twice! [message #153074] Wed, 21 December 2005 08:34 Go to next message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-YqMhxXMl/CSZfTBI1s1H
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I recently jumped to WTP 1.0 RC5.
Since the file structure changed, I recreated my project. It has 4
utility projects depending on it.
The new project took twice the time to start. I first thought it is
something to do with a new deployment procedure, but I noticed later
that the application actually startes twice!
I used debug to determine why this is happening, but there is no other
explanation. The same servlets are instanced twice and go through the
same instantiation protocol (init). At shutdown, they are both destroyed
in the same manner.

Any sollution to this problem?

Thank you.

--=-YqMhxXMl/CSZfTBI1s1H
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
I recently jumped to WTP 1.0 RC5. <BR>
Since the file structure changed, I recreated my project. It has 4 utility projects depending on it.<BR>
The new project took twice the time to start. I first thought it is something to do with a new deployment procedure, but I noticed later that the application actually startes twice!<BR>
I used debug to determine why this is happening, but there is no other explanation. The same servlets are instanced twice and go through the same instantiation protocol (init). At shutdown, they are both destroyed in the same manner.<BR>
<BR>
Any sollution to this problem?<BR>
<BR>
Thank you.
</BODY>
</HTML>

--=-YqMhxXMl/CSZfTBI1s1H--
Re: My application is started twice! [message #153104 is a reply to message #153074] Wed, 21 December 2005 10:23 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Aleksandar Pecanov wrote:
> something to do with a new deployment procedure, but I noticed later
> that the application actually startes twice!

I'll presume you are using TomCat.

Feels like you have the context listed twice in the running TC
configuration. One entry maybe coming from your global server.xml and
the other created by Eclipse.

Check your base $CATALINA_HOME/config/server.xml has no <Context ...>
entries in it. This file is copied to the TC instance and I'm not sure
if they are edited out of it or not.

If you change your global server.xml file, then delete the TC instance
in the server tab and start over.


Darryl
Re: My application is started twice! [message #153252 is a reply to message #153104] Thu, 22 December 2005 01:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-sK9hQohnphYFoi9NmM49
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

This is a good hint.
I removed server.xml and replaced it with an older version that doesn't
contain the context element.
I recreated the server definition inside Eclipse. There is only one
context element now in the server.xml inside the eclipse instance of
Tomcat, and none in $CATALINA_HOME/config/server.xml.

However, nothing is changed when I run the server. The application still
runs twice.
What did I do wrong?


On Wed, 2005-12-21 at 10:23 +0000, Darryl L. Miles wrote:

> Aleksandar Pecanov wrote:
> > something to do with a new deployment procedure, but I noticed later
> > that the application actually startes twice!
>
> I'll presume you are using TomCat.
>
> Feels like you have the context listed twice in the running TC
> configuration. One entry maybe coming from your global server.xml and
> the other created by Eclipse.
>
> Check your base $CATALINA_HOME/config/server.xml has no <Context ...>
> entries in it. This file is copied to the TC instance and I'm not sure
> if they are edited out of it or not.
>
> If you change your global server.xml file, then delete the TC instance
> in the server tab and start over.
>
>
> Darryl

--=-sK9hQohnphYFoi9NmM49
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
This is a good hint.<BR>
I removed server.xml and replaced it with an older version that doesn't contain the context element.<BR>
I recreated the server definition inside Eclipse. There is only one context element now in the server.xml inside the eclipse instance of Tomcat, and none in $CATALINA_HOME/config/server.xml.<BR>
<BR>
However, nothing is changed when I run the server. The application still runs twice.<BR>
What did I do wrong?<BR>
<BR>
<BR>
On Wed, 2005-12-21 at 10:23 +0000, Darryl L. Miles wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Aleksandar Pecanov wrote:</FONT>
<FONT COLOR="#000000">&gt; something to do with a new deployment procedure, but I noticed later </FONT>
<FONT COLOR="#000000">&gt; that the application actually startes twice!</FONT>

<FONT COLOR="#000000">I'll presume you are using TomCat.</FONT>

<FONT COLOR="#000000">Feels like you have the context listed twice in the running TC </FONT>
<FONT COLOR="#000000">configuration. One entry maybe coming from your global server.xml and </FONT>
<FONT COLOR="#000000">the other created by Eclipse.</FONT>

<FONT COLOR="#000000">Check your base $CATALINA_HOME/config/server.xml has no &lt;Context ...&gt; </FONT>
<FONT COLOR="#000000">entries in it. This file is copied to the TC instance and I'm not sure </FONT>
<FONT COLOR="#000000">if they are edited out of it or not.</FONT>

<FONT COLOR="#000000">If you change your global server.xml file, then delete the TC instance </FONT>
<FONT COLOR="#000000">in the server tab and start over.</FONT>


<FONT COLOR="#000000">Darryl</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-sK9hQohnphYFoi9NmM49--
Re: My application is started twice! [message #153275 is a reply to message #153252] Thu, 22 December 2005 02:45 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Aleksandar Pecanov wrote:
> I removed server.xml and replaced it with an older version that doesn't
> contain the context element.
> I recreated the server definition inside Eclipse. There is only one
> context element now in the server.xml inside the eclipse instance of
> Tomcat, and none in $CATALINA_HOME/config/server.xml.

So it did contain a <Context ...> entry before ? and the one inside the
eclipse instance of TC contained two before ?


So is there only a single <Context ..> entry in the server.xml inside
the eclipse instance of TC ? What is the path on your computer to that
file ?

Are you running in the workspace or inside the webapps directory of the
TC distro.

If in the distro do you have a file
$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml ? If you have an
XML file here what happens if you move it into /tmp (out the way) and
again delete server tools TC instance and start over ?

Still having problems ? Do you have a META-INF/context.xml in your
project ? What happens if you move that out the way too, and start over ?


Darryl
Re: My application is started twice! [message #153283 is a reply to message #153275] Thu, 22 December 2005 04:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-iPMR/8Cszf3mxA8U2+Bc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2005-12-22 at 02:45 +0000, Darryl L. Miles wrote:

> Aleksandar Pecanov wrote:
> > I removed server.xml and replaced it with an older version that doesn't
> > contain the context element.
> > I recreated the server definition inside Eclipse. There is only one
> > context element now in the server.xml inside the eclipse instance of
> > Tomcat, and none in $CATALINA_HOME/config/server.xml.
>
> So it did contain a <Context ...> entry before ? and the one inside the
> eclipse instance of TC contained two before ?
>

It contained on context in server.xml in eclipse and the same one in
CATALINA_HOME/conf/server.xml.
Now it contains one in eclipse, and none in
CATALINA_HOME/conf/server.xml.

>
> So is there only a single <Context ..> entry in the server.xml inside
> the eclipse instance of TC ? What is the path on your computer to that
> file ?

Here it is:

workspace/Servers/Tomcat v5.5 Server @ localhost-config/server.xml

> Are you running in the workspace or inside the webapps directory of the
> TC distro.
>

I'm running in the workspace.

> If in the distro do you have a file
> $CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml ? If you have an
> XML file here what happens if you move it into /tmp (out the way) and
> again delete server tools TC instance and start over ?
>

Did that already, nothing changes.

> Still having problems ? Do you have a META-INF/context.xml in your
> project ? What happens if you move that out the way too, and start over ?
>

Yes I do, and I'm not removing it. Only one resource is set in there.
Nothing else.
That is not the reason for the application to run twice.

>
> Darryl

--=-iPMR/8Cszf3mxA8U2+Bc
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
On Thu, 2005-12-22 at 02:45 +0000, Darryl L. Miles wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Aleksandar Pecanov wrote:</FONT>
<FONT COLOR="#000000">&gt; I removed server.xml and replaced it with an older version that doesn't </FONT>
<FONT COLOR="#000000">&gt; contain the context element.</FONT>
<FONT COLOR="#000000">&gt; I recreated the server definition inside Eclipse. There is only one </FONT>
<FONT COLOR="#000000">&gt; context element now in the server.xml inside the eclipse instance of </FONT>
<FONT COLOR="#000000">&gt; Tomcat, and none in $CATALINA_HOME/config/server.xml.</FONT>

<FONT COLOR="#000000">So it did contain a &lt;Context ...&gt; entry before ? and the one inside the </FONT>
<FONT COLOR="#000000">eclipse instance of TC contained two before ?</FONT>

</PRE>
</BLOCKQUOTE>
It contained on context in server.xml in eclipse and the same one in CATALINA_HOME/conf/server.xml.<BR>
Now it contains one in eclipse, and none in CATALINA_HOME/conf/server.xml.
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">So is there only a single &lt;Context ..&gt; entry in the server.xml inside </FONT>
<FONT COLOR="#000000">the eclipse instance of TC ? What is the path on your computer to that </FONT>
<FONT COLOR="#000000">file ?</FONT>
</PRE>
</BLOCKQUOTE>
Here it is:
<PRE>
workspace/Servers/Tomcat v5.5 Server @ localhost-config/server.xml
</PRE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Are you running in the workspace or inside the webapps directory of the </FONT>
<FONT COLOR="#000000">TC distro.</FONT>

</PRE>
</BLOCKQUOTE>
I'm running in the workspace.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">If in the distro do you have a file </FONT>
<FONT COLOR="#000000">$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml ? If you have an </FONT>
<FONT COLOR="#000000">XML file here what happens if you move it into /tmp (out the way) and </FONT>
<FONT COLOR="#000000">again delete server tools TC instance and start over ?</FONT>

</PRE>
</BLOCKQUOTE>
Did that already, nothing changes.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Still having problems ? Do you have a META-INF/context.xml in your </FONT>
<FONT COLOR="#000000">project ? What happens if you move that out the way too, and start over ?</FONT>

</PRE>
</BLOCKQUOTE>
Yes I do, and I'm not removing it. Only one resource is set in there. Nothing else.<BR>
That is not the reason for the application to run twice.
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">Darryl</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-iPMR/8Cszf3mxA8U2+Bc--
Re: My application is started twice! [message #153340 is a reply to message #153283] Thu, 22 December 2005 18:04 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Aleksandar Pecanov wrote:
>>So is there only a single <Context ..> entry in the server.xml inside
>>the eclipse instance of TC ? What is the path on your computer to that
>>file ?
>>
> Here it is:
>
> workspace/Servers/Tomcat v5.5 Server @ localhost-config/server.xml

Okay I whats the absolute file path on the system to that file ? I'm on
Unix so:


My distro is at /opt/apache-tomcat-5.5.14 which puts my global config at:

"/opt/apache-tomcat-5.5.14/conf/server.xml"


My workspace is in ~dlm/workspace which puts the Eclipse TC config at:

" /home/dlm/workspace/.metadata/.plugins/org.eclipse.wst.serve r.core/tmp0/conf/server.xml "


>>If in the distro do you have a file
>>$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml ? If you have an
>>XML file here what happens if you move it into /tmp (out the way) and
>>again delete server tools TC instance and start over ?
>>
> Did that already, nothing changes.

You did as in the file existed ( and you removed it ) or
you did check that location ( and the file was never there ) ?


>>Still having problems ? Do you have a META-INF/context.xml in your
>>project ? What happens if you move that out the way too, and start over ?
>>
> Yes I do, and I'm not removing it. Only one resource is set in there.
> Nothing else.
> That is not the reason for the application to run twice.

My line of thought here is that: If you are running TC out of
/opt/apache-tomcat-5.5.14/... (because you have to setting "Run modules
directly from workspace" unticked) then if you have a
META-INF/context.xml TC will copy that file into
$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml (if you have write
access there) and Eclipse will also add a context to server.xml itself.
This results in the possibility of two <Context ...> entries being
visible to the running TC server.

So if you wont remove META-INF/context.xml (at least just to rule it out
of being the cause of your double web-app startup) then I can't help you
much more.


Darryl
Re: My application is started twice! [message #153420 is a reply to message #153340] Fri, 23 December 2005 00:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-I9z8TTAnlC6qYD5T9dFw
Content-Type: multipart/alternative; boundary="=-rQCIp8nmo11nfbC1G/Uo"


--=-rQCIp8nmo11nfbC1G/Uo
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2005-12-22 at 18:04 +0000, Darryl L. Miles wrote:

> Aleksandar Pecanov wrote:
> >>So is there only a single <Context ..> entry in the server.xml inside
> >>the eclipse instance of TC ? What is the path on your computer to that
> >>file ?
> >>
> > Here it is:
> >
> > workspace/Servers/Tomcat v5.5 Server @ localhost-config/server.xml
>
> Okay I whats the absolute file path on the system to that file ? I'm on
> Unix so:
>
>
> My distro is at /opt/apache-tomcat-5.5.14 which puts my global config at:
>
> "/opt/apache-tomcat-5.5.14/conf/server.xml"
>

I use Linux :). The location is:
/server/jakarta-tomcat/conf/server.xml

>
> My workspace is in ~dlm/workspace which puts the Eclipse TC config at:
>
> " /home/dlm/workspace/.metadata/.plugins/org.eclipse.wst.serve r.core/tmp0/conf/server.xml "
>
> >>If in the distro do you have a file
> >>$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml ? If you have an
> >>XML file here what happens if you move it into /tmp (out the way) and
> >>again delete server tools TC instance and start over ?
> >>
> > Did that already, nothing changes.
>
> You did as in the file existed ( and you removed it ) or
> you did check that location ( and the file was never there ) ?
>

There wasn't any xml that originates from the web application, but I
removed all of them anyway.
Didn't affect Tomcat.

>
> >>Still having problems ? Do you have a META-INF/context.xml in your
> >>project ? What happens if you move that out the way too, and start over ?
> >>
> > Yes I do, and I'm not removing it. Only one resource is set in there.
> > Nothing else.
> > That is not the reason for the application to run twice.
>
> My line of thought here is that: If you are running TC out of
> /opt/apache-tomcat-5.5.14/... (because you have to setting "Run modules
> directly from workspace" unticked) then if you have a
> META-INF/context.xml TC will copy that file into
> $CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml (if you have write
> access there) and Eclipse will also add a context to server.xml itself.
> This results in the possibility of two <Context ...> entries being
> visible to the running TC server.
>

I am running tomcat from my workspace. However, there is no copy of
META-INF/context.xml
inside /server/jakarta-tomcat/conf/Catalina/localhost.
I am aware that context.xml in addition to workspace defined tomcat
instance make two context definitions overall, but the context.xml is
key to running my application since I use it to obtain a JCR repository
instance.

My biggest problem is that this worked fine until 1.0RC's (RC3 was the
first one I tried). Also, when I deploy my applications WAR manually to
a clean tomcat instance (one placed into /server/jakarta-tomcat-5.5.9,
different from the one in /server/jakarta-tomcat) everything works fine
again.
Pardon my disbelief and unwilling to remove context.xml for the sake of
testing, but the point is that removing it won't solve my problem.
That's why I avoided it.


Thank you
Aleksandar


> So if you wont remove META-INF/context.xml (at least just to rule it out
> of being the cause of your double web-app startup) then I can't help you
> much more.
>
>
> Darryl



--=-rQCIp8nmo11nfbC1G/Uo
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
On Thu, 2005-12-22 at 18:04 +0000, Darryl L. Miles wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Aleksandar Pecanov wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt;So is there only a single &lt;Context ..&gt; entry in the server.xml inside </FONT>
<FONT COLOR="#000000">&gt;&gt;the eclipse instance of TC ? What is the path on your computer to that </FONT>
<FONT COLOR="#000000">&gt;&gt;file ?</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt; Here it is:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; workspace/Servers/Tomcat v5.5 Server @ localhost-config/server.xml</FONT>

<FONT COLOR="#000000">Okay I whats the absolute file path on the system to that file ? I'm on </FONT>
<FONT COLOR="#000000">Unix so:</FONT>


<FONT COLOR="#000000">My distro is at /opt/apache-tomcat-5.5.14 which puts my global config at:</FONT>

<FONT COLOR="#000000"> &quot;/opt/apache-tomcat-5.5.14/conf/server.xml&quot ; </FONT>

</PRE>
</BLOCKQUOTE>
I use Linux <IMG SRC="cid:1135297359.8455.0.camel@aleksandar" ALIGN="middle" ALT=":)" BORDER="0">. The location is:<BR>
/server/jakarta-tomcat/conf/server.xml
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">My workspace is in ~dlm/workspace which puts the Eclipse TC config at:</FONT>

<FONT COLOR="#000000"> &quot;/home/dlm/workspace/.metadata/.plugins/org.eclipse .wst.server.core/tmp0/conf/server.xml&quot; </FONT>

<FONT COLOR="#000000">&gt;&gt;If in the distro do you have a file </FONT>
<FONT COLOR="#000000"> &gt;&gt;$CATALINA_{BASE,HOME}/conf/Catalina/localhos t/*.xml ? If you have an </FONT>
<FONT COLOR="#000000">&gt;&gt;XML file here what happens if you move it into /tmp (out the way) and </FONT>
<FONT COLOR="#000000">&gt;&gt;again delete server tools TC instance and start over ?</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt; Did that already, nothing changes.</FONT>

<FONT COLOR="#000000">You did as in the file existed ( and you removed it ) or</FONT>
<FONT COLOR="#000000">you did check that location ( and the file was never there ) ?</FONT>

</PRE>
</BLOCKQUOTE>
There wasn't any xml that originates from the web application, but I removed all of them anyway.<BR>
Didn't affect Tomcat.
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">&gt;&gt;Still having problems ? Do you have a META-INF/context.xml in your </FONT>
<FONT COLOR="#000000">&gt;&gt;project ? What happens if you move that out the way too, and start over ?</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt; Yes I do, and I'm not removing it. Only one resource is set in there. </FONT>
<FONT COLOR="#000000">&gt; Nothing else.</FONT>
<FONT COLOR="#000000">&gt; That is not the reason for the application to run twice.</FONT>

<FONT COLOR="#000000">My line of thought here is that: If you are running TC out of </FONT>
<FONT COLOR="#000000">/opt/apache-tomcat-5.5.14/... (because you have to setting &quot;Run modules </FONT>
<FONT COLOR="#000000">directly from workspace&quot; unticked) then if you have a </FONT>
<FONT COLOR="#000000">META-INF/context.xml TC will copy that file into </FONT>
<FONT COLOR="#000000">$CATALINA_{BASE,HOME}/conf/Catalina/localhost/*.xml (if you have write </FONT>
<FONT COLOR="#000000">access there) and Eclipse will also add a context to server.xml itself. </FONT>
<FONT COLOR="#000000"> This results in the possibility of two &lt;Context ...&gt; entries being </FONT>
<FONT COLOR="#000000">visible to the running TC server.</FONT>

</PRE>
</BLOCKQUOTE>
I am running tomcat from my workspace. However, there is no copy of META-INF/context.xml inside /server/jakarta-tomcat/conf/Catalina/localhost. <BR>
I am aware that context.xml in addition to workspace defined tomcat instance make two context definitions overall, but the context.xml is<BR>
key to running my application since I use it to obtain a JCR repository instance.<BR>
<BR>
My biggest problem is that this worked fine until 1.0RC's (RC3 was the first one I tried). Also, when I deploy my applications WAR manually to a clean tomcat instance (one placed into /server/jakarta-tomcat-5.5.9, different from the one in /server/jakarta-tomcat) everything works fine again.<BR>
Pardon my disbelief and unwilling to remove context.xml for the sake of testing, but the point is that removing it won't solve my problem. That's why I avoided it.<BR>
<BR>
<BR>
Thank you<BR>
Aleksandar<BR>

<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">So if you wont remove META-INF/context.xml (at least just to rule it out </FONT>
<FONT COLOR="#000000">of being the cause of your double web-app startup) then I can't help you </FONT>
<FONT COLOR="#000000">much more.</FONT>


<FONT COLOR="#000000">Darryl</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>

--=-rQCIp8nmo11nfbC1G/Uo--

--=-I9z8TTAnlC6qYD5T9dFw
Content-ID: <1135297359.8455.0.camel@aleksandar>
Content-Disposition: attachment; filename=smiley-3.png
Content-Type: image/png; name=smiley-3.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC+klEQVR42n2T bUjVdxTHP/+H69Xd
a2VWlFe69rzthZJUoxeNOWoFGxEhYRRFmZSVW2u9ab2KejWE1qDNBkEQhS82 VoiaZkVPmoWaKNM5
mA+opbd771//997//T/+epHBarEPHA6Hc84XDnwP/JcwcBS4AVgzcR04ONN7 C+md+pcPCz44dPLA
arZs/gg1UABuGkvvp7X1Iad+itE/YtUAle8TuH26sujzqq/LkJQsnOQQVmIA SVJQMhehZORiJwc5
d76FH2pf3gY2Aigzy7+eObqmtOqbXbjGGHZqCM+eQpJ9AHhWFCc5CAjWf1KA kppc+qg3vRCol4Fw
0aqcisOVW3HTE7hmBElSKD/5GFkNMhH1KDvegST78CwNSfZxeM88VuYrh4Cw AuxqvxL6MnPuWiy9
H1kNUPH9fZofDKPpHn8/z+Z6Yw8JK5stX5VhRO6h+OfiV3WaHxtPVKAwmF+K qXUDMkgqZ0+UoKcE
P57/GXOqh46ODqrPXUQfufb6YOGxJOQD2CaHQnnlAJ4zDXggHBYvK6ap6Rau +RIz1k7djd+YHrqM
pXUC4KQnWTRPAdiuRqNRkFQG/omRNJOsKVQw408xtS4QDsI10AaqEY6O8Fzq 70fJy3XI8gsA5HTa
rBdOkvwFKj39EWrr/sJzEnj29OvsphGugfBsLlwbZnjcYN36LxiLuADtMtCU etFAcE4ee8s+pbHV
YtOemwhHx3MSaPEY3X9OUnqsk5a2OMeP7KC3t4u+3gRALUC4cEW2eN62Q4ze 3SAiz74TDxvOiI+X
BcTsoCoyfJKYn6OKmrMbxGRnlXhyJSSqv80Vq0KSAFa+ceKl0wcK9lfsW42T GsE/pxhfcDmKfz6e
FUPg4iRH6Ov6g9EJh1t341xusWuAyn9b+c7BrbklJ8oDZGTOQpL9ePY08SmD pCEwbcHwuE370yku
Nlj3gM/e90yXliyU9+8sCVJYlEUgU8IwBZruMThm83uzxsAYV4Hd/A9h4BjQ BthAFOgDLgDF7w6/
ArI6YJ0eTQeGAAAAAElFTkSuQmCC


--=-I9z8TTAnlC6qYD5T9dFw--
Re: My application is started twice! [message #153773 is a reply to message #153074] Mon, 26 December 2005 18:42 Go to previous message
Eclipse UserFriend
Originally posted by: tobias.nospam.com

Im seeing this problem aswell, and ive been able to reproduce it in a
predictable manner. Im using a fresh install of the latest Tomcat/Eclipse
3.1.1/WTP1.0.

In my test setup i create projects and add a simple listener that prints
START on startup and STOP on shutdown. By creating projects with different
context roots ive found two bugs(?).

Every time i have a context root other than the name of the project, which
is the default in the wizard, the application prints START twice during
startup and STOP twice on shutdown.

In my projects im developing the default application for the server and
need an empty context root. This is not possible since WTP automatically
sets the context root to the name of the project if i leave it blank. To
prevent this behaviour i used / instead. This triggered a second bug, or a
Tomcat behaviour im unaware of. While starting up i get the following
printout: START STOP START.

In both situations ive checked server.xml in the tmp-directory (the one
buried withing .metadata) and it contains a single <Context> -tag. My
tomcat installation is brand new and there are no <Context>-tags in its
server.xml. And there are no context.xml's in its conf/Catalina/localhost/
directory.
Previous Topic:WEB-INF/lib contents no longer automatically added to build path
Next Topic:How to use JBoss-4.0.3 in WTP-1.0
Goto Forum:
  


Current Time: Tue Apr 23 17:29:23 GMT 2024

Powered by FUDForum. Page generated in 0.03455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top