Hello Friends,
I am trying to build a "Java service from server file" and I have been partially successful. I created a "hello world" Java .jar
file in NetBeans without any external jar libraries, wrapped a service flow around it, and executed the call successfully.
The problem is when I want to work with FileNet, for example, and add necessary libraries like petools.jar
and pe.jar
. In NetBeans, I build the application with those libraries imported, but once I try to call the Java service from a service flow in BAW, I get an error:
Caused by: java.lang.NoClassDefFoundError: com/filenet/api/core/Factory$Connection
at javaintegrationbawtest.CEConnection.establishConnection(CEConnection.java:31)
.
It is clear to me that the class was not found. I tried different settings in WAS to add those libraries — none helped.
How can I make the necessary libraries available to my Java .jar
server file?
Where to store dependencies on WAS and how to set it up?
Please refer to the images below for additional info.
NetBeans project builds successfully:

Builded jar is added as server file to my process application:

Java service from server file is created:

Finally, the call fails:

BR
Žarko