Commit 3cab684
springbootdemo-tomcat11: fix deploy directory name — axis2-json-api not axis2-json-api.war
When Tomcat deploys a directory named 'foo.war', it strips '.war' from WAR
FILES but NOT from directories — context path is '/axis2-json-api.war', not
'/axis2-json-api'. This caused all /axis2-json-api/* requests to be handled
by the ROOT context (which ran old code without the OpenAPI bypass), not by
the new app with OpenApiServlet.
Rename target/deploy/axis2-json-api.war to target/deploy/axis2-json-api in
all pom.xml antrun and maven-war-plugin webappDirectory references so the
deployed directory creates context path /axis2-json-api as intended.
Tested on Tomcat 11.0.20 + OpenJDK 21: /openapi.json, /openapi.yaml,
/swagger-ui all return 200; login returns Bearer token; testws protected
service returns OK with XSS-escaped output.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8fac90e commit 3cab684
1 file changed
Lines changed: 8 additions & 8 deletions
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
0 commit comments