Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo Tomcat and static web content context
Virgo Tomcat and static web content context [message #1386759] Fri, 20 June 2014 07:30 Go to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello all,

I would like to define some Tomcat context for my static web files - then I'll be able to modify them and test them without recompiling / redeploying my wars.

So I would like to add some context like this :

<Context docBase="<myDir>" path="/static" />

Unfortunately I found in documentation that context defining the document base directory are not supported in Virgo (https://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.0.M01/docs/virgo-user-guide/html/ch13s07.html).

So I would like to know what could be the blocking points of this feature and if you have any other tips to achieve my goals...

Regards,

Mathilde
Re: Virgo Tomcat and static web content context [message #1386994 is a reply to message #1386759] Mon, 23 June 2014 12:26 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
You have to use a watched repository https://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.2.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#concepts.virgo
Re: Virgo Tomcat and static web content context [message #1388318 is a reply to message #1386994] Thu, 26 June 2014 09:04 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello Violeta,

thank you for your answer. Unfortunately I don't understand how I can define a tomcat specific path by using watched repository and so access them through http request...

AFAIK css, js and other web static files can't be pushed into virgo repository as they are not virgo artifact (which are configuration (properties file), PAR, plan, and library only).

So I guess my initial question was unclear. Let me precise it. I've a WAR with JS, CSS and other web static files in the WEB-INF dir I want to externalize from this WAR in order to edit and then refresh my app without recompiling my WAR and redeploy it into Virgo to get the changes... For this case Tomcat context docBase is a good solution (http://www.moreofless.co.uk/static-content-web-pages-images-tomcat-outside-war/) but unfortunately it's not supported by Virgo currently.

So I'd like to know :
+ what are the blocking points to support this tomcat feature in Virgo (maybe can I implement a prototype feature on Virgo if you give me some inputs)
+ is there an alternative to externalize this kind of web static files and push some context path in tomcat with Virgo ?

Thank you
Re: Virgo Tomcat and static web content context [message #1389339 is a reply to message #1388318] Fri, 27 June 2014 17:09 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Can you try this one https://www.eclipse.org/forums/index.php/m/714680/?srch=http+alias+tomcat#msg_714680
Re: Virgo Tomcat and static web content context [message #1390519 is a reply to message #1389339] Sun, 29 June 2014 15:31 Go to previous message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hello,

work like a charm ! Smile

I make it work by adding a $VIRGO_HOME/configuration/Catalina/localhost/context.xml.default with :

<?xml version="1.0" encoding="UTF-8"?>
<Context aliases="/static=MY_PATH_TO_MY_STATIC_CONTENTS"/>

Thank you !
Previous Topic:registering servlet using httpService via blueprint declaration in Virgo
Next Topic:virgo tooling not suport eclipse 4.4 release
Goto Forum:
  


Current Time: Sat Dec 07 02:26:34 GMT 2024

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

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

Back to the top