You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Extract the content of gitiles-war-1.0-SNAPSHOT.war file to
<tomcat_dir>/webapps/gitiles/
2. Edit <tomcat_dir>/webapps/gitiles/WEB-INF/web.xml, change param value of
init param "configPath" to the path of gitiles config file.
3. Start up tomcat, visit http://<server>:<port>/gitiles/
HTTP 500
javax.servlet.ServletException: gitiles.baseGitUrl not set
com.google.gitiles.GitilesFilter.getBaseGitUrl(GitilesFilter.java:416)
com.google.gitiles.GitilesFilter.setDefaultUrls(GitilesFilter.java:333)
com.google.gitiles.GitilesFilter.setDefaultFields(GitilesFilter.java:301)
com.google.gitiles.GitilesFilter.init(GitilesFilter.java:198)
com.google.gitiles.GitilesServlet.init(GitilesServlet.java:73)
...
The problem is in com.google.gitiles.GitilesConfig
public static File defaultFile(FilterConfig filterConfig) {
String configPath = System.getProperty(PROPERTY_NAME, DEFAULT_PATH); //configPath will never be null
if (configPath == null && filterConfig != null) {
configPath = filterConfig.getInitParameter(FILTER_CONFIG_PARAM); //this line will never be reached
}
return new File(configPath);
}
Original issue reported on code.google.com by langm...@gmail.com on 27 Feb 2014 at 3:35
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
langm...@gmail.com
on 27 Feb 2014 at 3:35The text was updated successfully, but these errors were encountered: