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 / February 2007

Tip: Looking for answers? Try searching our database.

File not Writing in War File

Thread view: 
RigasMinho - 27 Feb 2007 15:47 GMT
Hello,
When I create a war file my application is only able to write to the
log file when i specifically tell its path at:
logfile=D:/Workspace/ldappassword/WebRoot/PasswordAdministration.log
(location is my physical computer)

The application is able to write to that log file when I specifically
tell its location.

However - when I create the war file of this application to deploy to
websphere I need to change around the directory of the logfile
SO
I've tried about every combination to make it write to the file:
logfile=/PasswordAdministration.log (reads but wont write)
logfile=PasswordAdministration.log (reads but wont write)
logfile=//PasswordAdministration.log (wont read or write)
logfile=////PasswordAdministration.log (wont read or write)

None of these work.

Another posibility would be to store the log file in a shared folder
off the network but I dont want to do that.  I want it to read and
write to the log file that is stored in the War file.
RigasMinho - 27 Feb 2007 17:00 GMT
> Hello,
> When I create a war file my application is only able to write to the
[quoted text clipped - 19 lines]
> off the network but I dont want to do that.  I want it to read and
> write to the log file that is stored in the War file.

ARggg I gave up and just put the darn log file in a shared folder
directory.

I just put the file in a shared folder and then made my app just read
the file from a separate folder instead of reading it from the war
file itself.


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



©2008 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.