IBM Support

CWLAG0300E- Class path of launchClient tool must include required artifacts library

Troubleshooting


Problem

When you use the launchClient tool to invoke an application client to call a business process application that is running on WebSphere Process Server, you cannot get the business object from the business process instances. For example, when you use the following command: WPS_HOME\bin\launchClient yourEnterpriseArchive.ear -CCclasspath=WPS_HOME\ProcessChoreographer\client\bpe137650.jar;WPS_HOME\ProcessChoreographer\client\task137650.jar the application client has the following code: BusinessFlowManager bfm = ......; PIID piid = ......; ClientObjectWrapper input = bfm.getInputMessage(piid); DataObject inputMessage = (DataObject)input.getObject(); //failed code

Symptom

You might see the CWLAG0300E error on the console:

0000000f  W UOW=null source=ArtifactLoader class=com.ibm.ws.al.locator.CLLocator method=index org=null prod=null component=null thread=[Thread-1]                                      
This classloader contains bad files , please check file: /tmp/WSTMPCC27159.tmp/YourApp.jar (A file or directory in the path name does not exist.)                                        

0000000f  E UOW=null source=ArtifactLoader class=com.ibm.ws.al.locator.RemoteWebsphereLocator method=seekAppInCell (String) org=null prod=null component=null thread=[Thread-1]          

CWLAG0300E: Artifactloader was not able to find the application YourApp in the same cell. The error is java.security.PrivilegedActionException: com.ibm.websphere.management.exception.InvalidAdminClientTypeException

Cause

The application client requires artifacts that include interface and business object definition files. However, the launchClient Java™ virtual machine cannot load the files.

Resolving The Problem

Export all artifacts (interface and business object definition files) that are required by the application client from the business process application to a Java™ archive (JAR) file, and add the JAR file to the launchClient class path. For example:
WPS_HOME\bin\launchClient yourEnterpriseArchive.ear -CCclasspath=WPS_HOME\ProcessChoreographer\client\bpe137650.jar;WPS_HOME\ProcessChoreographer\client\task137650.jar;Library.jar

[{"Product":{"code":"SSQH9M","label":"WebSphere Process Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Artifact Loader\/Resolver","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"6.2;6.1.2;6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

WebSphere Process Server;WPS

Document Information

Modified date:
15 June 2018

UID

swg21397978