cancel
Showing results for 
Search instead for 
Did you mean: 

Java classes not getting deployed with bar file throwing class not found exception

vaibhavmaniar
Champ in-the-making
Champ in-the-making
Hi guys,

I'm deploying the .bar file on activiti explorer (this .bar file is generated through eclipse activiti plugin) and i had used service task in my process and attached a class with it.
But the bar file which is getting generated does not contains the java class so after deploying it when i'm running its throwing "Class Not Found Exception".
So please help me in deploying java classes with it.

bpmn service task:
<serviceTask id="validateUserCredentials_servicetask" name="Validate User Credentials" activiti:class="org.happiestminds.travelManagement.services.impl.ValidateUserCredentialsImpl"></serviceTask>

Java class:
Here ValidateUserCredentials Interface has extended JavaDelegate Interface.
public class ValidateUserCredentialsImpl implements ValidateUserCredentials {

   /* (non-Javadoc)
    * @see org.activiti.engine.delegate.JavaDelegate#execute(org.activiti.engine.delegate.DelegateExecution)
    */
   @Override
   public void execute(DelegateExecution execution) throws Exception {
      
      
   }
}

Error:
could not instantiate class packageName.ValidateUserCredentialsImpl 


Vaibhav
2 REPLIES 2

vaibhavmaniar
Champ in-the-making
Champ in-the-making
Hi guys,
Plz reply on it.
*help* *HELP*

frederikherema1
Star Contributor
Star Contributor
Deploying class-files inside a BAR-file doesn't work. The userguide explicitally states this, so please consult the userguide before asking questions like this:

Note

Java classes present in the business archive will not be added to the classpath. All custom classes used in process definitions in the business archive (for example Java service tasks or event listener implementations) should be present on the activiti-engine's classpath in order to run the processes.