Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to change the target server after creating a Dynamic Web Project?
How to change the target server after creating a Dynamic Web Project? [message #207653] Tue, 29 January 2008 15:57 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I created a "Dynamic Web Project" using Apache Tomcat 6.0. Now I need to
change this project to run on Tomcat 5.5. How do I do that?

When I want to change Window => Pref's => Targeted Runtimes then only
Tomcat 6.0 is listed. If I check "Show all runtimes" I see Tomcat 5.5
but it is grayed/deactivated, i.e. I can not select it. The

When I right-click the project and select Run... => Run On Server... I
get a list containing both servers, but if I select Tomcat 5.5 here then
I get an error "The server does not support version 2.5 of the J2EE Web
module specification".

When I right-click the project and select Properties => Project Facets
I see "Dynamic Web Module version: 2.5". If I click the Modify
Project... button I get a dialog "Modify Project Facets". If I select
Dynamic Web Module => Version 2.4 here I get an error telling me "Cannot
change version of project facet Dynamic Web Module to 2.4".

So, how the heck do I change the target platform for this project such
that I can run it on Tomcat 5.5???

Michael
Re: How to change the target server after creating a Dynamic Web Project? [message #207694 is a reply to message #207653] Tue, 29 January 2008 17:36 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Michael Moser wrote:
> I created a "Dynamic Web Project" using Apache Tomcat 6.0. Now I need to
> change this project to run on Tomcat 5.5. How do I do that?
>
> When I want to change Window => Pref's => Targeted Runtimes then only
> Tomcat 6.0 is listed. If I check "Show all runtimes" I see Tomcat 5.5
> but it is grayed/deactivated, i.e. I can not select it. The
>
> When I right-click the project and select Run... => Run On Server... I
> get a list containing both servers, but if I select Tomcat 5.5 here then
> I get an error "The server does not support version 2.5 of the J2EE Web
> module specification".
>
> When I right-click the project and select Properties => Project Facets
> I see "Dynamic Web Module version: 2.5". If I click the Modify
> Project... button I get a dialog "Modify Project Facets". If I select
> Dynamic Web Module => Version 2.4 here I get an error telling me "Cannot
> change version of project facet Dynamic Web Module to 2.4".
>
> So, how the heck do I change the target platform for this project such
> that I can run it on Tomcat 5.5???
>
> Michael
>

I don't believe the "Dynamic Web Module" facet supports modification.
Since your current project specifies "2.5", you won't be able to set the
target runtime or deploy to Tomcat 5.5 since it only supports up through
version "2.4". I would recommend creating a new project with "2.4" as
the "Dynamic Web Module" facet, which choosing the Tomcat 5.5 runtime
would accomplish. If you plan to deploy on either, make sure the Java
facet is set for the lower of the versions your Tomcat 5.5 and Tomcat
6.0 are running with, if there happens to be a difference. Then copy
the content from the old project to the new one and port any web.xml
changes necessary.

Cheers,
Larry
Re: How to change the target server after creating a Dynamic Web Project? [message #207759 is a reply to message #207694] Wed, 30 January 2008 10:58 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C86337.758216B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Larry,
I considered your procedure a bit tedious and so I decided to set things =
straight "manually". Just in case anybody has to do the same ever - here =
is what I had to do:

In .classpath I changed:
<classpathentry exported=3D"true" kind=3D"con" =
path=3D" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tomc=
at.runtimeTarget/Apache Tomcat v6.0"/>
to:
<classpathentry exported=3D"true" kind=3D"con" =
path=3D" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tomc=
at.runtimeTarget/Apache Tomcat v5.5"/>
=20
In .settings/org.eclipse.jst.common.project.facet.core. I changed:
classpath.helper/org.eclipse.jst.server.core.container\:\:or g.eclipse.jst=
..server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ =
v6.0/owners=3Djst.web\:2.5
to:
classpath.helper/org.eclipse.jst.server.core.container\:\:or g.eclipse.jst=
..server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ =
v5.5/owners=3Djst.web\:2.4
And in .settings/org.eclipse.wst.common.project.facet.core.xml I =
changed:
<runtime name=3D"Apache Tomcat v6.0"/>
....
<installed facet=3D"jst.web" version=3D"2.5"/>
to:
<runtime name=3D"Apache Tomcat v5.5"/>
....
<installed facet=3D"jst.web" version=3D"2.4"/>

I am not sure whether ALL of these changes are really necessary, but I =
changed them all for consistency.

After that the project turned out to "Tomcat 5.5 compliant"!

Michael


Larry Isaacs wrote:
> I don't believe the "Dynamic Web Module" facet supports modification.
> Since your current project specifies "2.5", you won't be able to set
> the target runtime or deploy to Tomcat 5.5 since it only supports up
> through version "2.4". I would recommend creating a new project with
> "2.4" as the "Dynamic Web Module" facet, which choosing the Tomcat
> 5.5 runtime would accomplish. If you plan to deploy on either, make
> sure the Java facet is set for the lower of the versions your Tomcat
> 5.5 and Tomcat=20
> 6.0 are running with, if there happens to be a difference. Then copy
> the content from the old project to the new one and port any web.xml
> changes necessary.
>=20
> Cheers,
> Larry
------=_NextPart_000_0019_01C86337.758216B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><LINK href=3D"C:\Program Files\OE-QuoteFix\styles.css" =
rel=3Dstylesheet>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16595" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><SPAN class=3Dq0>Hi Larry,</SPAN></DIV>
<DIV><SPAN class=3Dq0>I considered your procedure a bit tedious and so I =
decided=20
to set things straight "manually". </SPAN><SPAN class=3Dq0>Just in case =
anybody=20
has to do the same ever - h</SPAN><SPAN class=3Dq0>ere is what I had to=20
do:</SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>In .classpath I changed:</SPAN></DIV>
<DIV><SPAN class=3Dq0>
<DIV><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT color=3D#3f7f7f=20
size=3D2>classpathentry </FONT><FONT color=3D#7f007f =
size=3D2>exported</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"true" </FONT><FONT =
color=3D#7f007f=20
size=3D2>kind</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"con"=20
</FONT><FONT color=3D#7f007f size=3D2>path</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff=20
size=3D2>" org.eclipse.jst.server.core.container/org.eclipse.jst.server .to=
mcat.runtimeTarget/Apache=20
Tomcat v6.0"</FONT><FONT color=3D#008080 size=3D2>/&gt;</FONT></DIV>
<DIV><FONT color=3D#008080 size=3D2>
<DIV><SPAN class=3Dq0>to:</SPAN></DIV></DIV></FONT></SPAN></DIV>
<DIV><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT color=3D#3f7f7f=20
size=3D2>classpathentry </FONT><FONT color=3D#7f007f =
size=3D2>exported</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"true" </FONT><FONT =
color=3D#7f007f=20
size=3D2>kind</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"con"=20
</FONT><FONT color=3D#7f007f size=3D2>path</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff=20
size=3D2>" org.eclipse.jst.server.core.container/org.eclipse.jst.server .to=
mcat.runtimeTarget/Apache=20
Tomcat v5.5"</FONT><FONT color=3D#008080 size=3D2>/&gt;</DIV></FONT>
<DIV><SPAN class=3Dq0><SPAN class=3Dq0>&nbsp;</DIV>
<DIV>
<DIV><SPAN=20
class=3Dq0>In&nbsp;</SPAN>.settings/org.eclipse.jst.common.project.facet.=
core. I=20
changed:<BR><FONT=20
size=3D2>classpath.helper/org.eclipse.jst.server.core.container\: </FONT><=
FONT=20
color=3D#2a00ff=20
size=3D2>\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ </FONT><=
FONT=20
size=3D2> </FONT><FONT color=3D#2a00ff size=3D2>Tomcat\</FONT><FONT =
size=3D2>=20
</FONT><FONT color=3D#2a00ff size=3D2>v6.0/owners</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff size=3D2>jst.web\:2.5<BR></FONT></SPAN></SPAN><SPAN =
class=3Dq0><SPAN=20
class=3Dq0><FONT size=3D2>to:</FONT><BR><FONT=20
size=3D2>classpath.helper/org.eclipse.jst.server.core.container\: <FONT=20
color=3D#2a00ff>\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ <=
/FONT>=20
<FONT color=3D#2a00ff>Tomcat\</FONT> <FONT=20
color=3D#2a00ff>v5.5/owners</FONT>=3D</FONT><FONT color=3D#2a00ff=20
size=3D2>jst.web\:2.4</FONT></SPAN></SPAN></DIV>
<P><SPAN class=3Dq0><SPAN class=3Dq0><SPAN class=3Dq0>And=20
in&nbsp;</SPAN>.settings/org.eclipse.wst.common.project.facet.core.xml I =

changed:<BR></SPAN></SPAN><SPAN class=3Dq0><FONT size=3D2><FONT =
color=3D#008080=20
size=3D2>&lt;</FONT><FONT color=3D#3f7f7f size=3D2>runtime </FONT><FONT =
color=3D#7f007f=20
size=3D2>name</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"Apache Tomcat=20
v6.0"</FONT><FONT color=3D#008080 size=3D2>/&gt;<BR></FONT><FONT =
color=3D#008080=20
size=3D2>...<BR></FONT><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT =
color=3D#3f7f7f=20
size=3D2>installed </FONT><FONT color=3D#7f007f =
size=3D2>facet</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"jst.web" </FONT><FONT =
color=3D#7f007f=20
size=3D2>version</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff=20
size=3D2>"2.5"</FONT><FONT color=3D#008080 =
size=3D2>/&gt;<BR></FONT></FONT><FONT=20
color=3D#008080 size=3D2><SPAN class=3Dq0>to:<BR></SPAN>&lt;</FONT><FONT =
color=3D#3f7f7f=20
size=3D2>runtime </FONT><FONT color=3D#7f007f size=3D2>name</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"Apache Tomcat =
v5.5"</FONT><FONT=20
color=3D#008080 size=3D2>/&gt;<BR></FONT><FONT color=3D#008080=20
size=3D2>...<BR></FONT><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT =
color=3D#3f7f7f=20
size=3D2>installed </FONT><FONT color=3D#7f007f =
size=3D2>facet</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"jst.web" </FONT><FONT =
color=3D#7f007f=20
size=3D2>version</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff=20
size=3D2>"2.4"</FONT><FONT color=3D#008080 =
size=3D2>/&gt;</P></DIV></FONT></SPAN>
<DIV><SPAN class=3Dq0>I am not sure whether ALL of these changes are =
really=20
necessary, but I changed them all for consistency.</SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>After that&nbsp;the project turned out to "Tomcat =
5.5=20
compliant"!</SPAN></DIV>
<DIV><SPAN class=3Dq0><FONT face=3DArial =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>Michael</SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>Larry Isaacs wrote:<BR></SPAN><SPAN =
class=3Dq1>&gt; I don't=20
believe the "Dynamic Web Module" facet supports modification.<BR>&gt; =
Since your=20
current project specifies "2.5", you won't be able to set<BR>&gt; the =
target=20
runtime or deploy to Tomcat 5.5 since it only supports up<BR>&gt; =
through=20
version "2.4".&nbsp; I would recommend creating a new project =
with<BR>&gt; "2.4"=20
as the "Dynamic Web Module" facet, which choosing the Tomcat<BR>&gt; 5.5 =
runtime=20
would accomplish.&nbsp; If you plan to deploy on either, make<BR>&gt; =
sure the=20
Java facet is set for the lower of the versions your Tomcat<BR>&gt; 5.5 =
and=20
Tomcat <BR>&gt; 6.0 are running with, if there happens to be a =
difference.&nbsp;=20
Then copy<BR>&gt; the content from the old project to the new one and =
port any=20
web.xml<BR>&gt; changes necessary.<BR>&gt; <BR>&gt; Cheers,<BR>&gt;=20
Larry</SPAN></DIV></BODY></HTML>

------=_NextPart_000_0019_01C86337.758216B0--
Re: How to change the target server after creating a Dynamic Web Project? [message #207778 is a reply to message #207759] Wed, 30 January 2008 13:31 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
This will fix the facet and target runtime of the project, but not its
content or related metadata. If you know the content didn't contain any
use of "2.5" features, then you are probably okay. I'm not aware of any
cached info under the ".metadata" folder of your workspace, but it's not
my area of expertise. At least make sure the content of your web.xml is
to "2.4" spec and not "2.5".

Cheers,
Larry

Michael Moser wrote:
> Hi Larry,
> I considered your procedure a bit tedious and so I decided to set things
> straight "manually". Just in case anybody has to do the same ever - here
> is what I had to do:
>
> In .classpath I changed:
> <classpathentry exported="true" kind="con"
> path=" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tomcat.runtimeTarget/Apache
> Tomcat v6.0"/>
> to:
> <classpathentry exported="true" kind="con"
> path=" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tomcat.runtimeTarget/Apache
> Tomcat v5.5"/>
>
> In .settings/org.eclipse.jst.common.project.facet.core. I changed:
> classpath.helper/org.eclipse.jst.server.core.container\:\:or g.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\
> Tomcat\ v6.0/owners=jst.web\:2.5
> to:
> classpath.helper/org.eclipse.jst.server.core.container\:\:or g.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\
> Tomcat\ v5.5/owners=jst.web\:2.4
>
> And in .settings/org.eclipse.wst.common.project.facet.core.xml I changed:
> <runtime name="Apache Tomcat v6.0"/>
> ...
> <installed facet="jst.web" version="2.5"/>
> to:
> <runtime name="Apache Tomcat v5.5"/>
> ...
> <installed facet="jst.web" version="2.4"/>
>
> I am not sure whether ALL of these changes are really necessary, but I
> changed them all for consistency.
>
> After that the project turned out to "Tomcat 5.5 compliant"!
>
> Michael
>
>
> Larry Isaacs wrote:
>> I don't believe the "Dynamic Web Module" facet supports modification.
>> Since your current project specifies "2.5", you won't be able to set
>> the target runtime or deploy to Tomcat 5.5 since it only supports up
>> through version "2.4". I would recommend creating a new project with
>> "2.4" as the "Dynamic Web Module" facet, which choosing the Tomcat
>> 5.5 runtime would accomplish. If you plan to deploy on either, make
>> sure the Java facet is set for the lower of the versions your Tomcat
>> 5.5 and Tomcat
>> 6.0 are running with, if there happens to be a difference. Then copy
>> the content from the old project to the new one and port any web.xml
>> changes necessary.
>>
>> Cheers,
>> Larry
Re: How to change the target server after creating a Dynamic Web Project? [message #207792 is a reply to message #207759] Wed, 30 January 2008 15:17 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

Don't forget to change the deployment descriptor(web.xml) header. There
is several places where the 2.5 is referecing to jee, but in the 2.4
cases it used to be j2ee. In addition the version number is also
referenced in the DD.

I second the comment from Larry. If you know the project doesn't use any
2.5 functionality you are probably okay with these changes.



"Michael Moser" <mmo@zurich.ibm.com> wrote in
news:fnpl93$5u2$1@build.eclipse.org:

> Hi Larry,
> I considered your procedure a bit tedious and so I decided to set
> things straight "manually". Just in case anybody has to do the same
> ever - here is what I had to do:
>
> In .classpath I changed:
> <classpathentry exported="true" kind="con"
> path=" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tom
c
> at.runtimeTarget/Apache Tomcat v6.0"/> to:
> <classpathentry exported="true" kind="con"
> path=" org.eclipse.jst.server.core.container/org.eclipse.jst.server .tom
c
> at.runtimeTarget/Apache Tomcat v5.5"/>
>
> In .settings/org.eclipse.jst.common.project.facet.core. I changed:
> classpath.helper/org.eclipse.jst.server.core.container\:
\:org.eclipse.j
> st.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\
> v6.0/owners=jst.web\:2.5 to:
> classpath.helper/org.eclipse.jst.server.core.container\:
\:org.eclipse.j
> st.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\
> v5.5/owners=jst.web\:2.4 And in
> .settings/org.eclipse.wst.common.project.facet.core.xml I changed:
> <runtime name="Apache Tomcat v6.0"/> ...
> <installed facet="jst.web" version="2.5"/>
> to:
> <runtime name="Apache Tomcat v5.5"/>
> ...
> <installed facet="jst.web" version="2.4"/>
>
> I am not sure whether ALL of these changes are really necessary, but I
> changed them all for consistency.
>
> After that the project turned out to "Tomcat 5.5 compliant"!
>
> Michael
>
>
> Larry Isaacs wrote:
>> I don't believe the "Dynamic Web Module" facet supports modification.
>> Since your current project specifies "2.5", you won't be able to set
>> the target runtime or deploy to Tomcat 5.5 since it only supports up
>> through version "2.4". I would recommend creating a new project with
>> "2.4" as the "Dynamic Web Module" facet, which choosing the Tomcat
>> 5.5 runtime would accomplish. If you plan to deploy on either, make
>> sure the Java facet is set for the lower of the versions your Tomcat
>> 5.5 and Tomcat
>> 6.0 are running with, if there happens to be a difference. Then copy
>> the content from the old project to the new one and port any web.xml
>> changes necessary.
>>
>> Cheers,
>> Larry
> ------=_NextPart_000_0019_01C86337.758216B0
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD><LINK href="C:\Program Files\OE-QuoteFix\styles.css"
> rel=stylesheet> <META http-equiv=Content-Type content="text/html;
> charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16595"
> name=GENERATOR> <STYLE></STYLE>
> </HEAD>
> <BODY>
> <DIV><SPAN class=q0>Hi Larry,</SPAN></DIV>
> <DIV><SPAN class=q0>I considered your procedure a bit tedious and so I
> decided to set things straight "manually". </SPAN><SPAN class=q0>Just
> in case anybody has to do the same ever - h</SPAN><SPAN class=q0>ere
> is what I had to do:</SPAN></DIV>
> <DIV><SPAN class=q0></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=q0>In .classpath I changed:</SPAN></DIV>
> <DIV><SPAN class=q0>
> <DIV><FONT color=#008080 size=2>&lt;</FONT><FONT color=#3f7f7f
> size=2>classpathentry </FONT><FONT color=#7f007f
> size=2>exported</FONT><FONT size=2>=</FONT><FONT color=#2a00ff
> size=2>"true" </FONT><FONT color=#7f007f size=2>kind</FONT><FONT
> size=2>=</FONT><FONT color=#2a00ff size=2>"con" </FONT><FONT
> color=#7f007f size=2>path</FONT><FONT size=2>=</FONT><FONT
> color=#2a00ff
> size=
2>" org.eclipse.jst.server.core.container/org.eclipse.jst.server .to
> mcat.runtimeTarget/Apache Tomcat v6.0"</FONT><FONT color=#008080
> size=2>/&gt;</FONT></DIV> <DIV><FONT color=#008080 size=2>
> <DIV><SPAN class=q0>to:</SPAN></DIV></DIV></FONT></SPAN></DIV>
> <DIV><FONT color=#008080 size=2>&lt;</FONT><FONT color=#3f7f7f
> size=2>classpathentry </FONT><FONT color=#7f007f
> size=2>exported</FONT><FONT size=2>=</FONT><FONT color=#2a00ff
> size=2>"true" </FONT><FONT color=#7f007f size=2>kind</FONT><FONT
> size=2>=</FONT><FONT color=#2a00ff size=2>"con" </FONT><FONT
> color=#7f007f size=2>path</FONT><FONT size=2>=</FONT><FONT
> color=#2a00ff
> size=
2>" org.eclipse.jst.server.core.container/org.eclipse.jst.server .to
> mcat.runtimeTarget/Apache Tomcat v5.5"</FONT><FONT color=#008080
> size=2>/&gt;</DIV></FONT> <DIV><SPAN class=q0><SPAN
> class=q0>&nbsp;</DIV> <DIV>
> <DIV><SPAN
> class=q0>In&nbsp;
</SPAN>.settings/org.eclipse.jst.common.project.facet.
> core. I changed:<BR><FONT
> size=2>classpath.helper/org.eclipse.jst.server.core.container\: </FONT>
<
> FONT color=#2a00ff
> size=2>\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ </FONT>
<
> FONT size=2> </FONT><FONT color=#2a00ff size=2>Tomcat\</FONT><FONT
> size=2> </FONT><FONT color=#2a00ff size=2>v6.0/owners</FONT><FONT
> size=2>=</FONT><FONT color=#2a00ff
> size=2>jst.web\:2.5<BR></FONT></SPAN></SPAN><SPAN class=q0><SPAN
> class=q0><FONT size=2>to:</FONT><BR><FONT
> size=2>classpath.helper/org.eclipse.jst.server.core.container\: <FONT
> color=#2a00ff>\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache
\<
> /FONT> <FONT color=#2a00ff>Tomcat\</FONT> <FONT
> color=#2a00ff>v5.5/owners</FONT>=</FONT><FONT color=#2a00ff
> size=2>jst.web\:2.4</FONT></SPAN></SPAN></DIV>
> <P><SPAN class=q0><SPAN class=q0><SPAN class=q0>And
> in&nbsp;</SPAN>.settings/org.eclipse.wst.common.project.facet.core.xml
> I changed:<BR></SPAN></SPAN><SPAN class=q0><FONT size=2><FONT
> color=#008080 size=2>&lt;</FONT><FONT color=#3f7f7f size=2>runtime
> </FONT><FONT color=#7f007f size=2>name</FONT><FONT
> size=2>=</FONT><FONT color=#2a00ff size=2>"Apache Tomcat
> v6.0"</FONT><FONT color=#008080 size=2>/&gt;<BR></FONT><FONT
> color=#008080 size=2>...<BR></FONT><FONT color=#008080
> size=2>&lt;</FONT><FONT color=#3f7f7f size=2>installed </FONT><FONT
> color=#7f007f size=2>facet</FONT><FONT size=2>=</FONT><FONT
> color=#2a00ff size=2>"jst.web" </FONT><FONT color=#7f007f
> size=2>version</FONT><FONT size=2>=</FONT><FONT color=#2a00ff
> size=2>"2.5"</FONT><FONT color=#008080
> size=2>/&gt;<BR></FONT></FONT><FONT color=#008080 size=2><SPAN
> class=q0>to:<BR></SPAN>&lt;</FONT><FONT color=#3f7f7f size=2>runtime
> </FONT><FONT color=#7f007f size=2>name</FONT><FONT
> size=2>=</FONT><FONT color=#2a00ff size=2>"Apache Tomcat
> v5.5"</FONT><FONT color=#008080 size=2>/&gt;<BR></FONT><FONT
> color=#008080 size=2>...<BR></FONT><FONT color=#008080
> size=2>&lt;</FONT><FONT color=#3f7f7f size=2>installed </FONT><FONT
> color=#7f007f size=2>facet</FONT><FONT size=2>=</FONT><FONT
> color=#2a00ff size=2>"jst.web" </FONT><FONT color=#7f007f
> size=2>version</FONT><FONT size=2>=</FONT><FONT color=#2a00ff
> size=2>"2.4"</FONT><FONT color=#008080
> size=2>/&gt;</P></DIV></FONT></SPAN> <DIV><SPAN class=q0>I am not sure
> whether ALL of these changes are really necessary, but I changed them
> all for consistency.</SPAN></DIV> <DIV><SPAN
> class=q0></SPAN>&nbsp;</DIV> <DIV><SPAN class=q0>After that&nbsp;the
> project turned out to "Tomcat 5.5 compliant"!</SPAN></DIV>
> <DIV><SPAN class=q0><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=q0>Michael</SPAN></DIV>
> <DIV><SPAN class=q0></SPAN><SPAN class=q0></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=q0></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=q0>Larry Isaacs wrote:<BR></SPAN><SPAN class=q1>&gt;
> I don't believe the "Dynamic Web Module" facet supports
> modification.<BR>&gt; Since your current project specifies "2.5", you
> won't be able to set<BR>&gt; the target runtime or deploy to Tomcat
> 5.5 since it only supports up<BR>&gt; through version "2.4".&nbsp; I
> would recommend creating a new project with<BR>&gt; "2.4" as the
> "Dynamic Web Module" facet, which choosing the Tomcat<BR>&gt; 5.5
> runtime would accomplish.&nbsp; If you plan to deploy on either,
> make<BR>&gt; sure the Java facet is set for the lower of the versions
> your Tomcat<BR>&gt; 5.5 and Tomcat <BR>&gt; 6.0 are running with, if
> there happens to be a difference.&nbsp; Then copy<BR>&gt; the content
> from the old project to the new one and port any web.xml<BR>&gt;
> changes necessary.<BR>&gt; <BR>&gt; Cheers,<BR>&gt;
> Larry</SPAN></DIV></BODY></HTML>
>
> ------=_NextPart_000_0019_01C86337.758216B0--


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: How to change the target server after creating a Dynamic Web Project? [message #208073 is a reply to message #207792] Mon, 04 February 2008 13:37 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Angel Vera wrote:
> Don't forget to change the deployment descriptor(web.xml) header.
> There is several places where the 2.5 is referecing to jee, but in
> the 2.4 cases it used to be j2ee. In addition the version number is
> also referenced in the DD.
>
> I second the comment from Larry. If you know the project doesn't use
> any
> 2.5 functionality you are probably okay with these changes.

ooops - indeed!
My web.xml's header still referenced misc. 2.5 and j2ee stuff. Strange
enough that didn't seem to cause any problem when automatically
deploying this project to the server, but I'm glad you made me aware!

Pardon my ignorance: what do you mean by "in the DD"?

Michael
Re: How to change the target server after creating a Dynamic Web Project? [message #208081 is a reply to message #208073] Mon, 04 February 2008 15:39 Go to previous message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

DD = Deployment Descriptor.

"Michael Moser" <mmo@zurich.ibm.com> wrote in news:fo74fa$40a$1
@build.eclipse.org:

> n by "in the DD"?
>


Regards,
--
Angel Vera
WTP Server Tools Developer
Previous Topic:CSS class Attribute within an HTML element
Next Topic:Re: JSF app no longer deploys class files
Goto Forum:
  


Current Time: Fri Apr 19 21:57:15 GMT 2024

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

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

Back to the top