tech
Configure multiple log4j instances in different contexts
The problem:
We needed to use different log4j.properties file for each context.
We have one library (directory.jar) which resides in tomcat's shared lib that uses log4j. We also have three contexts (core, admin & user contexts) that will be using log4j for logging too.
Initially, we put the log4j library in tomcat's shared lib, and specify log4j.properties for each context's web.xml. But we found out that only one context is able to initialize the log4j properly. The other two contexts doesn't seem to be able to use log4j properly.
- Add new comment
- Read more
- 660 reads
Request Filtering module is configured to deny a request that exceeds request content length
It's been a while since I last wrote on this blog. Been busy with work + real life. Anyway, here's what I encountered a couple of days ago.
We were working on a module that would allow users to upload files to the server (the file is stored in SQL Server as VARBINARY). The maximum allowed file size to be uploaded was made configurable through web.config file. We set those to be 50mb. When we tried to upload a 36mb file, IIS7 gave us this error:
- Add new comment
- Read more
- 3842 reads
An error occurred while parsing EntityName. Line X, position Y.
So today I was at client's site providing Technical Support and finalizing Enhancement Project that was done for the past few months. One of the task was for me to develop a Windows Service, which will grab the user's updated profile from a table in SQL Server 2000 and submit them to a Web Service developed by another vendor. I am using SOAP in my Windows Service to communicate with the Web Service on the other side. Since SOAP is using an XML format in their request and response, I had to grab the data from the SQL Server and build a SOAP Request XML before sending it to the Web Service.
- Add new comment
- Read more
- 4051 reads
Remove Java Quick Starter from Firefox
This problem has actually happen quite a while for me. Everytime I plug in FirefoxPortable in my office PC, it will automatically install Java Quick Starter 1.0 extension on the first run. What annoy me the most is, this extension CANNOT be uninstalled from Firefox Extension menu, and it is NOT located in the extensions folder in Firefox Profile.
- Add new comment
- Read more
- 5484 reads
Recent comments
14 weeks 5 days ago
1 year 4 days ago
1 year 4 weeks ago