Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

config directory under WEB-INF

Thread view: 
FCoue - 23 Jan 2006 11:03 GMT
Hello,

I have a webapp with config and logs directories under WEB-INF at the same
level that classes directory.
When I deploy a new version of my webapp, the config and logs directories
are erased by the new one included in my app.war.
What the best solution to keep directories included in a webapp under
WEB-INF ?
For instance, the solution I have is to save and restore old directories
after having deploy the new version of the webapp.
Is it advised to manage a config directory, log directory outside WEB-INF or
is-it possible to deploy partially a webapp (only classes) ?
And how to do ? using EAR file ?

Thanks for ideas.

F. Coue
Raymond DeCampo - 23 Jan 2006 15:36 GMT
> Hello,
>
> I have a webapp with config and logs directories under WEB-INF at the same
> level that classes directory.
> When I deploy a new version of my webapp, the config and logs directories
> are erased by the new one included in my app.war.

This is acceptable behavior from an application server.  Remember, the
server isn't even obligated to exploded your war file into a directory.

> What the best solution to keep directories included in a webapp under
> WEB-INF ?

Don't keep files that will change while the application runs under the
WAR file's exploded directory.

> For instance, the solution I have is to save and restore old directories
> after having deploy the new version of the webapp.
> Is it advised to manage a config directory, log directory outside WEB-INF or
> is-it possible to deploy partially a webapp (only classes) ?

That would depend on the application server.

> And how to do ? using EAR file ?

Same issues with EAR files.

HTH,
Ray

Signature

This signature intentionally left blank.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.