my WSO2 Integration Studio flows come out it to production trought Enterpise Integrator 7.1.0 but i have problem to import one of my projects

huangapple go评论112阅读模式
英文:

my WSO2 Integration Studio flows come out it to production trought Enterpise Integrator 7.1.0 but i have problem to import one of my projects

问题

I use Integration Studio 8.0 和 Enterprise Integrator 7.1.0,并且我有两个项目流在 WSO2 Integration Studio 中,尝试将它们导入到 WSO2 Enterprise Integrator 环境以进行生产。首先,我有两个项目,第一个项目是基于 "Hello World" 的,它是一个提供 Web 服务的 API,在 JSON 输出格式中显示字符串 "Hello User",我将其导出为 ".CAR" 格式的 POM.XML 代码以导入到 Enterprise Integrator 环境,代码如下:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>wso2.sampleHelloWorld</groupId>
    <artifactId>HolaMundo</artifactId>
    <version>1.0.0-SNAPSHOT</version>
  </parent>
  <groupId>com.example</groupId>
  <artifactId>HM</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>carbon/application</packaging>
  <name>HM</name>
  <description>HM</description>
  <properties>
    <wso2.sampleHelloWorld.metadata_._HelloWorld_swagger>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.metadata_._HelloWorld_swagger>
    <wso2.sampleHelloWorld.api_._HelloWorld>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.api_._HelloWorld>
    <wso2.sampleHelloWorld.metadata_._HelloWorld_metadata>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.metadata_._HelloWorld_metadata>
    <artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,datasource/datasource=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,synapse/metadata=yaml,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
  </properties>
  <dependencies>
    <dependency>
      <groupId>wso2.sampleHelloWorld.api</groupId>
      <artifactId>HelloWorld</artifactId>
      <version>1.0.0</version>
      <type>xml</type>
    </dependency>
    <dependency>
      <groupId>wso2.sampleHelloWorld.metadata</groupId>
      <artifactId>HelloWorld_metadata</artifactId>
      <version>1.0.0</version>
      <type>yaml</type>
    </dependency>
    <dependency>
      <groupId>wso2.sampleHelloWorld.metadata</groupId>
      <artifactId>HelloWorld_swagger</artifactId>
      <version>1.0.0</version>
      <type>yaml</type>
    </dependency>
  </dependencies>
  <!-- 其他配置 -->
</project>

我生成了 CAR 文件以导入到 Enterprise Integrator 环境,右键单击我的项目,然后选择 "新建 -> Composite Exporter -> 选择我的 Configs 文件夹复选框" 并设置模块名称,然后单击完成。

然后,我将生成的 CAR 文件复制到以下目录:

/WSO2/wso2ei/7.1.0/micro-integrator/repository/deployment/server/carbonapps

接着,执行并启动 Enterprise Integrator 服务后,我进入仪表板的 API 部分,以检查我的 API 是否可用,我在 API NAME 行下面的单元格中看到了 HelloWorld API,如下图所示:

[![查看图像描述][1]][1]

当我使用 POSTMAN 测试我的 API 时,一切都正常,如下图所示:

[![查看图像描述][2]][2]

好的,但我还有另一个执行 MySQL 存储过程的 API,但当我按照前面的步骤将 CAR 文件导入到 Enterprise Integrator 环境以在生产中实施我的存储过程 API 时,存储过程 API 不会出现在 API 单元格中,应该出现在 HelloWorld API 的下面,但不会!不幸的是,无法显示我的存储过程 API。有人知道为什么不能在我的 Enterprise Integrator 仪表板中显示我的存储过程 API 吗?我使用以下 POM.XML 文件来导出我的 CAR 文件:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>wso2.sampleRESTDataService</groupId>
    <artifactId>StoredProcedure</artifactId>
    <version>1.0.0-SNAPSHOT</version>
  </parent>
  <groupId>wso2.sampleRESTDataService</groupId>
  <artifactId>StoredProcedureCompositeExporter</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>carbon/application</packaging>
  <name>StoredProcedureCompositeExporter</name>
  <description>StoredProcedureCompositeExporter</description>
  <properties>
    <com.example.dataservice_._RESTDataService>capp/DataServicesServer</com.example.dataservice_._RESTDataService>
    <artifact

<details>
<summary>英文:</summary>

i use Integration Studio 8.0 and Enterprise Integrator 7.1.0 and i have 2 projects flows in WSO2 Integration Studio and was try import to WSO2 Enterprise Integrator enviroment for take them to production. Well, then i have 2 projecs, the first project is &quot;Hello World&#168; based the which is an API that proportions an Web Service that show the string &quot;Hello User&quot; in JSON output format, the POM.XML code the which i export in format &quot;.CAR&quot; for import it toEnterprise Integrator envirotment is the next:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>wso2.sampleHelloWorld</groupId>
<artifactId>HolaMundo</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.example</groupId>
<artifactId>HM</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>carbon/application</packaging>
<name>HM</name>
<description>HM</description>
<properties>
<wso2.sampleHelloWorld.metadata_.HelloWorld_swagger>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.metadata.HelloWorld_swagger>
<wso2.sampleHelloWorld.api
.HelloWorld>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.api.HelloWorld>
<wso2.sampleHelloWorld.metadata
.HelloWorld_metadata>capp/EnterpriseServiceBus</wso2.sampleHelloWorld.metadata._HelloWorld_metadata>
<artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,datasource/datasource=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,synapse/metadata=yaml,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
</properties>
<dependencies>
<dependency>
<groupId>wso2.sampleHelloWorld.api</groupId>
<artifactId>HelloWorld</artifactId>
<version>1.0.0</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>wso2.sampleHelloWorld.metadata</groupId>
<artifactId>HelloWorld_metadata</artifactId>
<version>1.0.0</version>
<type>yaml</type>
</dependency>
<dependency>
<groupId>wso2.sampleHelloWorld.metadata</groupId>
<artifactId>HelloWorld_swagger</artifactId>
<version>1.0.0</version>
<type>yaml</type>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
<repository>
<id>wso2-maven2-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
<repository>
<id>wso2-nexus-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-maven2-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-nexus-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<buildcommands />
<projectnatures>
<projectnature>org.wso2.developerstudio.eclipse.distribution.project.nature</projectnature>
</projectnatures>
</configuration>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-plugin</artifactId>
<version>5.2.34</version>
<extensions>true</extensions>
<executions>
<execution>
<id>car</id>
<phase>package</phase>
<goals>
<goal>car</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<configuration />
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-deploy-plugin</artifactId>
<version>1.1.1</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<configuration>
<carbonServers>
<CarbonServer>
<trustStorePath>${basedir}/src/main/resources/security/wso2carbon.jks</trustStorePath>
<trustStorePassword>wso2carbon</trustStorePassword>
<trustStoreType>JKS</trustStoreType>
<serverUrl>https://localhost:9443</serverUrl>
<userName>admin</userName>
<password>admin</password>
<operation>deploy</operation>
</CarbonServer>
</carbonServers>
</configuration>
</plugin>
</plugins>
</build>
</project>

apps-fileview.texmex_20230525.01_p2
HM.xml
Mostrando HM.xml


I generate de CAR file to import in Enterprise Integrator environment doing righ click on my project  and then &quot;New -&gt; Composite Exporter -&gt; Click on my Configs folder checkbox&quot; and set  a Module Name and i go clic in finish.

Then i copy my generated CAR file to the next directory:

/WSO2/wso2ei/7.1.0/micro-integrator/repository/deployment/server/carbonapps

Then after execute and start my Enterprise Integrator services, i was entry to API sections of my dashboard for check that my API is avaible, i verified this at see my HelloWorld api in the cell below API NAME row, the next is a capture to this:
[![enter image description here][1]][1]

And when test mi API with POSTMAN i can doi correctly, the evidence is the next:
[![enter image description here][2]][2]


  [1]: https://i.stack.imgur.com/QcM34.png
  [2]: https://i.stack.imgur.com/iRzbT.png

Ok, well, but also have another API that execute a Store Procedure from MySQL but when i do the previous steps for import mi CAR file to the Enterprise Integrator enviroment to implements in production my Stored Procedure API dont appears in the API cells&#39;s when be suppossed that should apperas below the HelloWorld API but not! unnafortunaly dont can visualite. Anyone know becasue not can show mi Stored Procedure API in my Enterprise Integrator dashboard??? the POM.XML file that i use to export mi CAR file is the next:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>wso2.sampleRESTDataService</groupId>
<artifactId>StoredProcedure</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>wso2.sampleRESTDataService</groupId>
<artifactId>StoredProcedureCompositeExporter</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>carbon/application</packaging>
<name>StoredProcedureCompositeExporter</name>
<description>StoredProcedureCompositeExporter</description>
<properties>
<com.example.dataservice_.RESTDataService>capp/DataServicesServer</com.example.dataservice._RESTDataService>
<artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,datasource/datasource=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,synapse/metadata=yaml,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
</properties>
<dependencies>
<dependency>
<groupId>com.example.dataservice</groupId>
<artifactId>RESTDataService</artifactId>
<version>1.0.0</version>
<type>dbs</type>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
<repository>
<id>wso2-maven2-repository-1</id>
<url>http://dist.wso2.org/maven2</url>
</repository>
<repository>
<id>wso2-nexus-repository-1</id>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-maven2-repository-1</id>
<url>http://dist.wso2.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>wso2-nexus-repository-1</id>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<buildcommands />
<projectnatures>
<projectnature>org.wso2.developerstudio.eclipse.distribution.project.nature</projectnature>
</projectnatures>
</configuration>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-plugin</artifactId>
<version>5.2.34</version>
<extensions>true</extensions>
<executions>
<execution>
<id>car</id>
<phase>package</phase>
<goals>
<goal>car</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<configuration />
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-deploy-plugin</artifactId>
<version>1.1.1</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<configuration>
<carbonServers>
<CarbonServer>
<trustStorePath>${basedir}/src/main/resources/security/wso2carbon.jks</trustStorePath>
<trustStorePassword>wso2carbon</trustStorePassword>
<trustStoreType>JKS</trustStoreType>
<serverUrl>https://localhost:9443</serverUrl>
<userName>admin</userName>
<password>admin</password>
<operation>deploy</operation>
</CarbonServer>
</carbonServers>
</configuration>
</plugin>
</plugins>
</build>
</project>

apps-fileview.texmex_20230525.01_p2
SP.xml
Mostrando SP.xml


The steps for put my HelloWorld CAR file in the Enterprise Integrator enviroment are the same that i followed to put my Stored Procedure in Enterprise Integrator but mi Stored Procedure dont be can showed in my APIs section in the Dashboard, anyone believe known the causes for the which i can show my API correctly?? i believe that is relationed with my POM.XML file  but maybe be something else. 

In my Integration Studio IDE i can run the twos API correctly, the HelloWorld and my Procedured Store but in Enterprise Integrator only can run my Hello World API.

</details>


# 答案1
**得分**: 0

你有检查 repository/logs/wso2carbon.log 文件以确保 car 文件已正确部署吗?一些可能的情况是,如果数据库不可访问或所需的 JDBC 库不可用,它将无法部署。

<details>
<summary>英文:</summary>

Did you check the repository/logs/wso2carbon.log file to make sure the car file got deployed correctly? 
Some possible scenarios are if the DB is unreachable or the required JDBC libraries are not available, it will not get deployed.

</details>



huangapple
  • 本文由 发表于 2023年6月8日 09:52:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76428114.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定