From 566c5e5fb59dcebe73b1fcc32364bf8417c0ed08 Mon Sep 17 00:00:00 2001 From: mharindu Date: Thu, 12 May 2016 22:02:47 +0530 Subject: [PATCH] fixed issues in API publishing --- .../api_templates/velocity_template.xml | 3 ++- modules/distribution/src/assembly/bin.xml | 13 +++++++++++++ .../src/repository/conf/api-manager.xml | 6 +++--- .../src/repository/conf/identity/identity.xml | 4 ++-- modules/p2-profile-gen/pom.xml | 7 +++++++ 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/modules/distribution/src/api-resources/api_templates/velocity_template.xml b/modules/distribution/src/api-resources/api_templates/velocity_template.xml index a3d2d0a8..c484f5f2 100644 --- a/modules/distribution/src/api-resources/api_templates/velocity_template.xml +++ b/modules/distribution/src/api-resources/api_templates/velocity_template.xml @@ -329,7 +329,6 @@ #end - ## check and set response caching #if($responseCacheEnabled) @@ -343,6 +342,7 @@ #if($handlers.size() > 0) #foreach($handler in $handlers) +#if($handler.className != 'org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageHandler') #if($handler.hasProperties()) #set ($map = $handler.getProperties() ) @@ -352,6 +352,7 @@ #end #end +#end #end #end diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index fd1d311a..294727a4 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -489,6 +489,13 @@ jagg/jagg.jag + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/api-publisher/ + + ${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/api-publisher + + @@ -510,6 +517,12 @@ src/api-resources/synapse-configs/default/sequences ${pom.artifactId}-${pom.version}/repository/resources/apim-synapse-config/ + + + src/api-resources/synapse-configs/default/sequences + ${pom.artifactId}-${pom.version}/repository/deployment/server/server/synapse-configs/default/sequences + + src/api-resources/api_templates ${pom.artifactId}-${pom.version}/repository/resources/api_templates diff --git a/modules/distribution/src/repository/conf/api-manager.xml b/modules/distribution/src/repository/conf/api-manager.xml index 3e51cb89..22635c5e 100755 --- a/modules/distribution/src/repository/conf/api-manager.xml +++ b/modules/distribution/src/repository/conf/api-manager.xml @@ -26,7 +26,7 @@ jdbc/WSO2AM_DB - None + Synapse @@ -310,12 +310,12 @@ -ThriftServerHost - Allows to configure a hostname for the thrift server. It uses the carbon hostname by default. --> - ThriftClient + WSClient 10397 10000 10397 - true + false