TIBCOSoftware / bw6-plugin-maven

Plug-in Code for Apache Maven and TIBCO ActiveMatrix BusinessWorks™
Other
65 stars 78 forks source link

LocXsdCacheService.getCache returned "null" when ear built with Maven on Linux #693

Closed dmassimi closed 1 year ago

dmassimi commented 1 year ago

Maven Plugin version: 2.9.2

Maven version: 3.6.3

Product : TIBCO ActiveMatrix Businessworks 6 O

Product version: 6.8.1

Component: Maven build plugin

Steps to reproduce the issue:

  1. Build application API_Exante_OP with maven on linux env
  2. Deploy on TEA the EAR generated
  3. Check the appnode log, see the error log [LocXsdCacheService.getCache] returned "null" and application stopped. Result on TEA "Start Failed"

Additional environment details if any:

Describe the results you received: 2023-01-20 09:40:37.343 ERROR [pool-16-thread-2] com.tibco.bw.thor.runtime.model.Constituent - The following error has occurred for “name: API_Exante_OP version: 1.0.2.qualifier bundle name: API_Exante_OP ” which needs to be resolved. 2023-01-20 09:40:37.343 ERROR [pool-16-thread-2] com.tibco.bw.thor.runtime.model.Constituent - TIBCO-BW-CORE-500102: Failed to install BW Module [API_Exante_OP:1.0.2.qualifier], DeploymentUnit [API_Exante_OP.application:1.0].

com.tibco.bx.core.faults.BxException: BX-600025: Create module failed for module [API_Exante_OP] version [1.0.2.qualifier] application [API_Exante_OP.application 1.0]. com.tibco.bx.core.faults.BxException: BX-600028: Adding definition failed for process [api_exante_op_avecsonde.Process]. [com.tibco.bw](http://com.tibco.bw/).core.runtime.schemaresolver.SchemaNotFoundException: TIBCO-BW-SCHEMA-RESOLVER-500101: Schema not found. Schema [namespace=http://xmlns.tibco.com/dataconversion/169a08c9-4542-481f-b75b-9fba7e8ba478, location=/Schemas/copybooks/Resources/API_Exante_OP_AvecSonde/Copybook_ZT1X.xsd, baseURI=bundleentry://606.fwk957387062/Processes/api_exante_op_avecsonde/Process.bwp] not found in cache for the BW Module [API_Exante_OP:1.0.2.qualifier]. The SchemaCacheService operation [LocXsdCacheService.getCache] returned “null”. 2023-01-20 09:40:37.874 INFO [pool-16-thread-2] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300008: Stopped BW Application [API_Exante_OP.application:1.0] **Describe the results you expected:** Application starts correctly **Additional information you deem important (e.g. issue happens only occasionally):** If the EAR is build on windows (with mvn clean install or export studio) the application starts correctly. If the EAR is build on linux (mvn clean install) the application goes in error. Attached [Archive.zip](https://github.com/TIBCOSoftware/bw6-plugin-maven/files/10477949/Archive.zip) with: - the BW681 code (export-bw) - ear generated with Windows Studio (exportStudio-API_Exante_OP.application_1.0.0.ear) - ear generated with Windows Maven (buildMavenWin-API_Exante_OP.application_1.0.2.ear) - ear generated with Linux Maven (buildMavenGitLinux-API_Exante_OP.application-1.0.2-20230112.171155-14.ear) The only ear not starting (when I deploy with TEA ) is the buildMavenGitLinux-API_Exante_OP.application-1.0.2-20230112.171155-14.ear.
dmassimi commented 1 year ago

We discovered the .gitignore into Schema folder was the issue. So when we committed code the schema (copybook xsd) was not committed and the xsd was missing in EAR. Removing .gitignore from Schema folder solved the issue.