Deployment troubleshooting » History » Version 4
Version 3 (Chris Cannam, 2014-02-26 01:49 PM) → Version 4/10 (Chris Cannam, 2014-02-26 01:49 PM)
h1. Deployment troubleshooting
h4. What versions of Java and Tomcat do I need?
I think either 6 or 7 would do (in both cases) but we tested with Java 7 and Tomcat 7.
h4. Can't find servlet-api.jar
This should appear in a Tomcat installation directory -- you need to make sure you build the webapp against the same version of the servlet API as you will be deploying it against (i.e the same Tomcat installation).
Sometimes this file is installed with a different name, e.g. on Ubuntu you may find it in /usr/share/java/tomcat-servlet-api-3.0.jar. You should rename it when you copy it.
h4. Tomcat manager URL asks for username and password, but I don't know what they are
The default roles are set up in a Tomcat config file, something like /etc/tomcat7/tomcat-users.xml. If no user is defined with the manager-gui role, you will need to add one, e.g. by adding to the middle of the file:
<pre>
<role rolename="manager-gui"/> &lt;role rolename="manager-gui"/&gt;
<role rolename="manager-script"/> &lt;role rolename="manager-script"/&gt;
<user &lt;user username="admin" password="admin" roles="manager-gui,manager-script"/> roles="manager-gui,manager-script"/&gt;
</pre>
But note that you should give the role a sensible password, not just admin.
h4. What versions of Java and Tomcat do I need?
I think either 6 or 7 would do (in both cases) but we tested with Java 7 and Tomcat 7.
h4. Can't find servlet-api.jar
This should appear in a Tomcat installation directory -- you need to make sure you build the webapp against the same version of the servlet API as you will be deploying it against (i.e the same Tomcat installation).
Sometimes this file is installed with a different name, e.g. on Ubuntu you may find it in /usr/share/java/tomcat-servlet-api-3.0.jar. You should rename it when you copy it.
h4. Tomcat manager URL asks for username and password, but I don't know what they are
The default roles are set up in a Tomcat config file, something like /etc/tomcat7/tomcat-users.xml. If no user is defined with the manager-gui role, you will need to add one, e.g. by adding to the middle of the file:
<pre>
<role rolename="manager-gui"/> &lt;role rolename="manager-gui"/&gt;
<role rolename="manager-script"/> &lt;role rolename="manager-script"/&gt;
<user &lt;user username="admin" password="admin" roles="manager-gui,manager-script"/> roles="manager-gui,manager-script"/&gt;
</pre>
But note that you should give the role a sensible password, not just admin.