Hi all
I am trying to deploy my war file. So the building has been finished successfully.
But after deploying, when I am trying to start the process I am getting an error look like this
The process could not be started. loader constraint violation: when resolving method “org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;” the class loader org.apache.catalina.loader.ParallelWebappClassLoader @73a6e7f0 of the current class, org/slf4j/LoggerFactory, and the class loader java.net.URLClassLoader @5f9d02cb for the method’s defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature (org.slf4j.LoggerFactory is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @73a6e7f0, parent loader java.net.URLClassLoader @5f9d02cb; org.slf4j.impl.StaticLoggerBinder is in unnamed module of loader java.net.URLClassLoader @5f9d02cb, parent loader ‘app’)
And when second time I am clicking on Start button I am getting an error look like this
The process could not be started.
Could not initialize class org.camunda.connect.httpclient.HttpConnector
Here is my code
package org.camunda.sms.SendSMS;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.connect.Connectors;
import org.camunda.connect.httpclient.HttpConnector;
import org.camunda.connect.httpclient.HttpResponse;
public class SendSmsDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
// TODO Auto-generated method stub
try {
HttpConnector http = Connectors.getConnector(HttpConnector.ID);
HttpResponse response = http.createRequest().post().url("https://asdasdasd.com/api/send_sms").payload("").execute();
System.out.println(response.getResponseParameters().toString());
response.close();
} catch(Exception e) {
System.out.println(e.getMessage());
}
}
}
PLEASE help to solve this problem!