bw6-plugin-maven
bw6-plugin-maven copied to clipboard
Java classes not found when running tests
Maven Plugin version: 2.8.0
Maven version: 3.6.3
Product : Either of TIBCO ActiveMatrix Businessworks 6.7.0
Product version:
Component: Either of Maven Eclipse Plugin or Maven build plugin
Steps to reproduce the issue:
- Create a JabaGlobalInstance resource
- Create a java class called A, located in a package test, and attach it to the JavaGlobalInstance
- Create a process (timer and calprocess) and a direct subprocess
- The subprocess must contain a javaInvoke with reference to the JavaGlobalInstance
- Create a test file
- Goto the subprocess and add an assertion
- Save and run process as: mvn clean initialize site package
Additional environment details if any:
Describe the results you received: <CausedBy> com.tibco.bw.sharedresource.java.runtime.exceptions.JavaGloabalSharedResourceException: TIBCO-BW-SR-JAVA-500006: The Java class [test.A] is not found in the classpath. Encountered ClassNotFoundException [java.lang.ClassNotFoundException: test.A cannot be found by Test_1.0.0.qualifier].. [INFO]
In test mode, JavaGlobalInstance never sees the referenced class. It seems not to be in the classpath. But test result seems to be OK if no tested processes contain a JavaGlobalInstance. But if one tested process contains a JavaGlobalInstance, tests fail with the above error.
This error occurs also without JavaGlobalInstance. When using a JavaInvoke, the referenced java class is not found during tests.
Describe the results you expected: No classpath errors. Tests OK as long as assertions are OK.
Additional information you deem important (e.g. issue happens only occasionally):