Skip to content

Commit

Permalink
Fix the NoClassDefFoundError: jakarta/servlet/ServletConnection error
Browse files Browse the repository at this point in the history
  • Loading branch information
aowss committed Jan 3, 2024
1 parent 140edbf commit 54d4822
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions spring-boot/error-handling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<artifactId>spring-boot-starter-camunda</artifactId>
<version>${camunda.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PaymentProcessTest {

@Test
@DisplayName("Successful payment")
void success() throws Exception {
void success() {
var variables = Map.of(
"orderAmount", 60.0,
"orderReference", "Order-1",
Expand Down
2 changes: 1 addition & 1 deletion spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
<!-- <spring-boot.version>3.1.5</spring-boot.version>-->
<spring-boot.version>3.1.5</spring-boot.version>
</properties>

<modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<zeebe:input source="20" target="connectionTimeoutInSeconds" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<!-- <zeebe:header key="resultVariable" value="responseBody" /> -->
<zeebe:header key="resultExpression" value="={ exchangeRate: response.body.rate }" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.micasa.tutorial;

import com.github.tomakehurst.wiremock.common.Json;
import com.github.tomakehurst.wiremock.junit5.WireMockTest;
import com.micasa.tutorial.model.ExchangeRateRequest;
import com.micasa.tutorial.start.ZeebeController;
import io.camunda.zeebe.client.api.response.PublishMessageResponse;
import io.camunda.zeebe.process.test.assertions.BpmnAssert;
import io.camunda.zeebe.process.test.inspections.InspectionUtility;
import io.camunda.zeebe.process.test.inspections.model.InspectedProcessInstance;
Expand Down Expand Up @@ -52,7 +50,7 @@ void zeebeController() throws Exception {
)
);

PublishMessageResponse response = controller.startProcess(new ExchangeRateRequest("USD", "CAD", 1000));
controller.startProcess(new ExchangeRateRequest("USD", "CAD", 1000));

InspectedProcessInstance processInstance = InspectionUtility
.findProcessInstances()
Expand Down

0 comments on commit 54d4822

Please sign in to comment.