Error while trying to use Java Module in 6.x

Error while trying to use Java Module in 6.x

book

Article ID: KB0077547

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 6.x

Description

When Java Module is used, a similar error can be observed.

ERROR [Job_Executor0] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-600026: Failed to start BW Application [JavaTest.application:1.0]. Reason: TIBCO-BW-FRWK-600053: Failed to initialize BW Component [ComponentProcess].
   <CausedBy> com.tibco.bw.core.runtime.api.BWEngineException: TIBCO-BW-CORE-500232: Failed to initialize BW Component [ComponentProcess], Application [JavaTest.application:1.0] due to activity initialization error.
   <CausedBy> com.tibco.bw.core.runtime.ActivityInitException: TIBCO-BW-CORE-500616: Failed to initialize the activity [JavaInvoke] in process [javatest.Process], module [JavaTest] due to activity lifecycle error.
   <CausedBy> com.tibco.bw.runtime.ActivityLifecycleFault: The Java class [javaPackage.MyClass] is not found in the classpath. Encountered ClassNotFoundException [java.lang.ClassNotFoundException: javaPackage.MyClass cannot be found by JavaTest_1.0.0.qualifier]..
   <CausedBy> java.lang.ClassNotFoundException: javaPackage.MyClass cannot be found by JavaTest_1.0.0.qualifier

Issue/Introduction

Error-while-trying-to-use-Java-Module-in-6-x

Environment

Windows

Resolution

The error above occurs when a Java module is created in the project but it has not been configured in the application module that is using the classes of the Java module.Go to "Application Module->Module Descriptors->Dependencies-> Required Modules" and add the Java module whose classes are being used in the Main Application Module.