Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » WAR deployment (on Tomcat): How to add additional resources?
WAR deployment (on Tomcat): How to add additional resources? [message #91686] Wed, 04 June 2008 08:31 Go to next message
Reinhold Bentele is currently offline Reinhold BenteleFriend
Messages: 16
Registered: July 2009
Junior Member
Hi all,

I have successfully deployed my application to Tomcat following the
tutorial from Elias. I deviated only in two things:
1. closed the javax.servlet project
2. added the org.eclipse.update.configurator plug-in to the Plug-ins
list of the feature.

My problem now is that I have to add some additional resources that
don't reside in the plug-ins, e.g. my custom html body file (body.html)
from the branding extension, a css file (theme.css) from the themes
extension and a conf-directory containing the configuration files of my
application.

The first attempt was to add them to the Build Configuration but in this
case the files are copied into the /features/xx.myapp.feature directory
and my application can't access them.

The second attempt was adding the files to the templates directory of
the feature. The build script copies the files to the correct place and
so the WAR contains the files. But when I deploy the WAR in Tomcat these
files are missing in the /Catalina/localhost/myapp/eclipse directory
where my application expects them to be.

Can anybody help me?

Reinhold
Re: WAR deployment (on Tomcat): How to add additional resources? [message #91813 is a reply to message #91686] Wed, 04 June 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Reinhold,

I am not quite sure what you mean. If you refer to resources that
are used/referenced by extensions, then they need to redise in the
plug-in.
In oder to have them packaged into the plug-in jar during the build,
you need to adjust the build.properties file.

HTH
Rüdiger


Reinhold Bentele wrote:
> Hi all,
>
> I have successfully deployed my application to Tomcat following the
> tutorial from Elias. I deviated only in two things:
> 1. closed the javax.servlet project
> 2. added the org.eclipse.update.configurator plug-in to the Plug-ins
> list of the feature.
>
> My problem now is that I have to add some additional resources that
> don't reside in the plug-ins, e.g. my custom html body file (body.html)
> from the branding extension, a css file (theme.css) from the themes
> extension and a conf-directory containing the configuration files of my
> application.
>
> The first attempt was to add them to the Build Configuration but in this
> case the files are copied into the /features/xx.myapp.feature directory
> and my application can't access them.
>
> The second attempt was adding the files to the templates directory of
> the feature. The build script copies the files to the correct place and
> so the WAR contains the files. But when I deploy the WAR in Tomcat these
> files are missing in the /Catalina/localhost/myapp/eclipse directory
> where my application expects them to be.
>
> Can anybody help me?
>
> Reinhold
Re: WAR deployment (on Tomcat): How to add additional resources? [message #92146 is a reply to message #91813] Fri, 06 June 2008 14:34 Go to previous message
Reinhold Bentele is currently offline Reinhold BenteleFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Rüdiger,

Rüdiger Herrmann wrote:
> I am not quite sure what you mean. If you refer to resources that are
> used/referenced by extensions, then they need to redise in the plug-in.

Thank you for your answer.

In my RCP application the configuration directory containing some
configuration files is outside of the plugins so that it can be stored
for example in the users home directory.
The location of this directory is set as a VM parameter at startup and
read via System#getProperty.

In the meantime I figured out that system properties can't be set for a
single application in tomcat at all.

So I have my conf directory now inside the /eclipse/configuration and
hard coded the path. This way it works.


Bye - Reinhold.
Previous Topic:Problem with the Uploader widget when deployed in tomcat
Next Topic:Preference pages don't show up at second time
Goto Forum:
  


Current Time: Sat Apr 27 04:50:41 GMT 2024

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

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

Back to the top