bw6-plugin-maven icon indicating copy to clipboard operation
bw6-plugin-maven copied to clipboard

Java classes not found when running tests

Open kamasano opened this issue 4 years ago • 0 comments
trafficstars

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:

  1. Create a JabaGlobalInstance resource
  2. Create a java class called A, located in a package test, and attach it to the JavaGlobalInstance
  3. Create a process (timer and calprocess) and a direct subprocess
  4. The subprocess must contain a javaInvoke with reference to the JavaGlobalInstance
  5. Create a test file
  6. Goto the subprocess and add an assertion
  7. 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.

Template.zip

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):

kamasano avatar Feb 10 '21 17:02 kamasano