Put a tempoary fix to awsapi to workaround an issue with jetty/Spring integration limitation

This commit is contained in:
Kelven Yang 2013-01-28 17:45:16 -08:00
parent 8887f01b37
commit b5deb52fba
2 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,7 @@
</connectors>
<contextPath>/awsapi</contextPath>
<webXml>${basedir}/web/web.xml</webXml>
<webAppSourceDirectory>${basedir}/target/cloud-awsapi-${project.version}</webAppSourceDirectory>
<webAppSourceDirectory>${basedir}/target/generated-webapp</webAppSourceDirectory>
</configuration>
</plugin>
<plugin>

View File

@ -74,6 +74,7 @@ public class EC2MainServlet extends HttpServlet{
@DB
public void init( ServletConfig config ) throws ServletException {
try{
initComponent();
ConfigurationHelper.preConfigureConfigPathFromServletContext(config.getServletContext());
// check if API is enabled
String value = csDao.getConfigValue(ENABLE_EC2_API);