mirror of https://github.com/apache/cloudstack.git
more change to fix awsapi deployment with maven and jetty and Spring
This commit is contained in:
parent
526bb01b04
commit
3c75d53f2f
|
|
@ -302,6 +302,9 @@
|
|||
<resource>
|
||||
<directory>../utils/conf/</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/resource/AmazonEC2</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class CloudStackConfigurationDaoImpl extends GenericDaoBase<CloudStackCon
|
|||
@DB
|
||||
public String getConfigValue(String name) {
|
||||
NameSearch.and("name", NameSearch.entity().getName(), SearchCriteria.Op.EQ);
|
||||
Transaction txn = Transaction.currentTxn();
|
||||
Transaction txn = Transaction.open("cloud", Transaction.CLOUD_DB, true);
|
||||
try {
|
||||
txn.start();
|
||||
SearchCriteria<CloudStackConfigurationVO> sc = NameSearch.create();
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ public class EC2RestServlet extends HttpServlet {
|
|||
if (installedPath == null) installedPath = System.getProperty("catalina.home");
|
||||
String webappPath = config.getServletContext().getRealPath("/");
|
||||
//pathToKeystore = new String( installedPath + File.separator + "webapps" + File.separator + webappName + File.separator + "WEB-INF" + File.separator + "classes" + File.separator + keystore );
|
||||
pathToKeystore = new String( webappPath + "WEB-INF" + File.separator + "classes" + File.separator + keystore );
|
||||
pathToKeystore = new String( webappPath + File.separator + "\\WEB-INF" + File.separator + "classes" + File.separator + keystore );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -206,8 +206,6 @@ public class ServiceProvider extends ManagerBase {
|
|||
if(logger.isInfoEnabled())
|
||||
logger.info("Initializing ServiceProvider...");
|
||||
|
||||
Transaction txn = Transaction.open(Transaction.AWSAPI_DB);
|
||||
//txn.close();
|
||||
|
||||
File file = ConfigurationHelper.findConfigurationFile("log4j-cloud.xml");
|
||||
if(file != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue