After much digging, I have the solution for this error.
For Apache/Tomcat5.5 under Ubuntu Linux 7.10, the following line needs to be added to the policy file 04webapps.policy (for the default policy setting for all webapps) in order for the UploadFilter to work:
This makes sense to have a
read and write permission since you are allowing uploads. All Tomcat 5.5 policy files can be found at:
/usr/share/tomcat5.5/conf/policy.d
Next, you need to stop Tomcat if you haven't already:
sudo /etc/init.d/tomcat5.5 stop
Then, you have to run:
sudo /usr/share/tomcat5.5/bin/catalina start -security
Finally, Start-Up Tomcat:
sudo /etc/init.d/tomcat5.5 stop
If you run into problems such as "JAVA_HOME not found" be sure to add the following line to your /etc/environment file:
The above line assumes you have Java6 installed using:
sudo apt-get install sun-java6-jdk sun-java6-jre
If you need to figure out where your JAVA_HOME is located,
you should try typing:
update-java-alternatives -l
Good Luck!