The first problem I had with this app was setting the tmp directory and I eventually used:
<param-name>uploadpath</param-name>
<param-value>tmp</param-value>
And created that directory under:
mkdir /usr/share/tomcat6/webapps/ba/webapp/WEB-INF/tmp
chmod 777 /usr/share/tomcat6/webapps/ba/webapp/WEB-INF/tmp
While trying to get a test version of this running I got the following error.
HTTP Status 500 –
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Could not initialize class jcifs.Config org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:636)
Being a tomcat newbie I decided to (do the wrong thing and) set TOMCAT6_SECURITY=no
vi /etc/default/tomcat6
Restarting tomcat6 brought the application up so I can test it. I could then set about configuring it with:
vi /usr/share/tomcat6/webapps/ba/webapp/WEB-INF/web.xml
The right thing would probably be to give the jar permissions.

