Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » launch configurations in java ee project can't be saved in the project
launch configurations in java ee project can't be saved in the project [message #1007918] Fri, 08 February 2013 08:12 Go to next message
Palmer Eldritch is currently offline Palmer EldritchFriend
Messages: 40
Registered: February 2011
Member
Namely I have the servers launches but not the app launcher - details here :

http://stackoverflow.com/questions/13103550/eclipse-launch-configuration-for-web-project

- should I report a bug or am I missing something obvious ?


eclipse-kepler JEE
Win7 x64
Re: launch configurations in java ee project can't be saved in the project [message #1008087 is a reply to message #1007918] Fri, 08 February 2013 20:49 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 2/8/2013 3:12 AM, Palmer Eldritch wrote:
> Namely I have the servers launches but not the app launcher - details
> here :
>
> http://stackoverflow.com/questions/13103550/eclipse-launch-configuration-for-web-project
>
>
> - should I report a bug or am I missing something obvious ?

Server launches are "different". The launch is created/regenerated
based on your server configuration each time you start the server. Some
pieces of an existing launch are preserved, such as VM Arguments, but
otherwise the launch gets replaced each time the server is started. As
a result, moving the launch file to an alternate location isn't
supported. It always ends up under "org.eclipse.debug.core\.launches".

Cheers,
Larry
Re: launch configurations in java ee project can't be saved in the project [message #1008117 is a reply to message #1008087] Sat, 09 February 2013 09:58 Go to previous messageGo to next message
Palmer Eldritch is currently offline Palmer EldritchFriend
Messages: 40
Registered: February 2011
Member
Larry Isaacs wrote on Fri, 08 February 2013 15:49
Server launches are "different". The launch is created/regenerated
based on your server configuration each time you start the server. Some
pieces of an existing launch are preserved, such as VM Arguments, but
otherwise the launch gets replaced each time the server is started. As
a result, moving the launch file to an alternate location isn't
supported. It always ends up under "org.eclipse.debug.core\.launches".

Cheers,
Larry
A ha - thank you very much - could be that some of it is exported though - qualifies for an enhancement imo

Could you please point the relevant part in the docs to me ?

Thanks Smile


EDIT : if you feel like answering the question in SO with the relevant quote from the docs please do


eclipse-kepler JEE
Win7 x64

[Updated on: Sat, 09 February 2013 09:59]

Report message to a moderator

Re: launch configurations in java ee project can't be saved in the project [message #1008272 is a reply to message #1008117] Mon, 11 February 2013 14:41 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 2/9/2013 4:58 AM, Palmer Eldritch wrote:
> Larry Isaacs wrote on Fri, 08 February 2013 15:49
>> Server launches are "different". The launch is created/regenerated
>> based on your server configuration each time you start the server.
>> Some pieces of an existing launch are preserved, such as VM Arguments,
>> but otherwise the launch gets replaced each time the server is
>> started. As a result, moving the launch file to an alternate location
>> isn't supported. It always ends up under
>> "org.eclipse.debug.core\.launches".
>>
>> Cheers,
>> Larry
> A ha - thank you very much - could be that some of it is exported though
> - qualifies for an enhancement imo
>
> Could you please point the relevant part in the docs to me ?
>
> Thanks :)
>

I can point you to source code for the Tomcat support, but otherwise,
I'm not aware that it appears in documentation anywhere.

Cheers,
Larry
Re: launch configurations in java ee project can't be saved in the project [message #1009094 is a reply to message #1008272] Thu, 14 February 2013 12:26 Go to previous messageGo to next message
Palmer Eldritch is currently offline Palmer EldritchFriend
Messages: 40
Registered: February 2011
Member
Larry Isaacs wrote on Mon, 11 February 2013 09:41


I can point you to source code for the Tomcat support, but otherwise,
I'm not aware that it appears in documentation anywhere.

Cheers,
Larry
Thanks that'd be nice - I meant the Eclipse docs though - this info should be there


eclipse-kepler JEE
Win7 x64
Re: launch configurations in java ee project can't be saved in the project [message #1009687 is a reply to message #1009094] Fri, 15 February 2013 14:23 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 2/14/2013 7:26 AM, Palmer Eldritch wrote:
> Larry Isaacs wrote on Mon, 11 February 2013 09:41
>> I can point you to source code for the Tomcat support, but otherwise,
>> I'm not aware that it appears in documentation anywhere.
>>
>> Cheers,
>> Larry
> Thanks that'd be nice - I meant the Eclipse docs though - this info
> should be there
>

In the class
org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour, there
is a method called setupLaunchConfiguration(). This method is
responsible for ensuring that the launch configuration has Tomcat
settings accurate per server configuration persisted outside of what is
persisted for the launch configuration. For example, it overwrites
certain VM Argument settings, such as "catalina.home", to ensure it is
up to date. It also tries to preserve other VM Arguments from the
launch configuration which the user might set. This is one example of
how a server launch is more than just the settings stored in the
".launch" file. There are probably others.

You can view the TomcatServerBehaviour source in Git[1], or pull it into
your workspace using File->Import.

Cheers,
Larry

[1]
http://git.eclipse.org/c/servertools/webtools.servertools.git/tree/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServerBehaviour.java
Re: launch configurations in java ee project can't be saved in the project [message #1010087 is a reply to message #1007918] Sat, 16 February 2013 13:52 Go to previous message
Palmer Eldritch is currently offline Palmer EldritchFriend
Messages: 40
Registered: February 2011
Member
Thanks indeed !

I actually wanted to peek at the launch as the project was not behaving correctly when exported to war and run directly on tomcat 7.0.32 while it run correctly via eclipse

I hope I will be able to get at something

Thanks again


eclipse-kepler JEE
Win7 x64
Previous Topic:Apache Geronimo - Eclipse Indigo- JAXWS deployment problem
Next Topic:Problem with WST p2 metadata?
Goto Forum:
  


Current Time: Tue Apr 23 16:12:24 GMT 2024

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

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

Back to the top