wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Problem in Logging For My Website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Problem in Logging For My Website" Watch "Problem in Logging For My Website" New topic
Author

Problem in Logging For My Website

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

I have a problem for logging as for jeeping the applicationContext.xml file. I am using the MethodInterceptor for logging by intercepting each call to every method. I have to keep the applicationContext.xml file in "c:\". If i keep the file in my website path then it does not work. It throws "FileNotFoundException". I want to know how to use the file from web application path.

Regards,
Ujjwal B Soni
(+919898954428)


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Lisa Carter
Greenhorn

Joined: May 29, 2003
Posts: 25
You define where the applicationContext.xml file is located in the web.xml file. Check this file to see where you've told the application to look for the file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Logging For My Website
 
Similar Threads
log4j: right path for the log file
Class PathXml ApplicationContext
Context [/HibernateTest] startup failed due to previous errors
Path issue in glassfish 3.1.1 for applicationContext.xml (Spring framework)
How to define relative path in side java program for the following project structure?