Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Setting vm-arugements or properties for a tomcat deploy(arguments or properties cannot be set for the deployed application)
Setting vm-arugements or properties for a tomcat deploy [message #540455] Wed, 16 June 2010 08:40 Go to next message
Kerstin  is currently offline Kerstin Friend
Messages: 3
Registered: June 2010
Junior Member
Hi!
I am trying to deploy my RAP application on a tomcat 6 webserver.
I followed the instructions of the RAP Online Help but I have still a problem with the properties.
The properties I put into vm-arguments in the Launch-Config when launching in Eclipse (e.g. com.xyz.abc.rmi.host=localhost)
cannot be found when I deploy it on the webserver. I already tried to add them to the launch.ini and also to the web.xml but nothing worked so far.

Does somebody know how to solve this issue?
Thanks in advance!
Re: Setting vm-arugements or properties for a tomcat deploy [message #540505 is a reply to message #540455] Wed, 16 June 2010 12:05 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Kerstin,

you can pass the properties when starting tomcat (if you're on Linux,
look at /etc/default/tomcat).

Here are some alternatives:
http://www.velocityreviews.com/forums/t144344-tomcat-5-0-set ting-system-properties-for-an-application.html

Regards,
Stefan.

Kerstin schrieb:
> Hi!
> I am trying to deploy my RAP application on a tomcat 6 webserver.
> I followed the instructions of the RAP Online Help but I have still a
> problem with the properties. The properties I put into vm-arguments in
> the Launch-Config when launching in Eclipse (e.g.
> com.xyz.abc.rmi.host=localhost)
> cannot be found when I deploy it on the webserver. I already tried to
> add them to the launch.ini and also to the web.xml but nothing worked so
> far.
>
> Does somebody know how to solve this issue?
> Thanks in advance!
Re: Setting vm-arugements or properties for a tomcat deploy [message #540546 is a reply to message #540505] Wed, 16 June 2010 13:46 Go to previous messageGo to next message
Kerstin  is currently offline Kerstin Friend
Messages: 3
Registered: June 2010
Junior Member
Stefan Röck wrote on Wed, 16 June 2010 08:05
Hi Kerstin,

you can pass the properties when starting tomcat (if you're on Linux,
look at /etc/default/tomcat).

Here are some alternatives:
http://www.velocityreviews.com/forums/t144344-tomcat-5-0-set ting-system-properties-for-an-application.html

Regards,
Stefan.



Hi Stefan, thanks for your advice.

I am not on linux and we also don´t want to use CATALINA_OPTS because more applications should run on that server.

Is there another opportunity for setting the properties so that they are accessible with System.getProperty()?
Using <env-entry> makes a lot of re-implementation necessary.


Re: Setting vm-arugements or properties for a tomcat deploy [message #540980 is a reply to message #540546] Thu, 17 June 2010 20:48 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Kerstin,

you can add system properties in your web.xml like this:

<init-param>
<param-name>commandline</param-name>
<param-value>-Dyour.parameter=value</param-value>
</init-param>

HTH, Ralf

Kerstin wrote:
> Stefan Röck wrote on Wed, 16 June 2010 08:05
>> Hi Kerstin,
>>
>> you can pass the properties when starting tomcat (if you're on Linux,
>> look at /etc/default/tomcat).
>>
>> Here are some alternatives:
>> http://www.velocityreviews.com/forums/t144344-tomcat-5-0-set
>> ting-system-properties-for-an-application.html
>>
>> Regards,
>> Stefan.
>
>
> Hi Stefan, thanks for your advice.
>
> I am not on linux and we also don´t want to use CATALINA_OPTS because
> more applications should run on that server.
>
> Is there another opportunity for setting the properties so that they are
> accessible with System.getProperty()?
> Using <env-entry> makes a lot of re-implementation necessary.
>
>
>
Re: Setting vm-arugements or properties for a tomcat deploy [message #541061 is a reply to message #540980] Fri, 18 June 2010 08:12 Go to previous message
Kerstin  is currently offline Kerstin Friend
Messages: 3
Registered: June 2010
Junior Member
Thank you Ralf,
that´s exactly what I was looking for!!
Solved my problem Smile
Previous Topic:UICallback broken in RAP 1.3 ?
Next Topic:User-based workbench save
Goto Forum:
  


Current Time: Fri Apr 26 07:46:44 GMT 2024

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

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

Back to the top