Skip to content

Tomcat deploy path considering target/classes instead of actual war folder #122

@marcelocastrillo

Description

@marcelocastrillo

Describe the bug
I'm deploying a java app that has a webapp folder.
Inside that webapp folder, we have a web-inf folder where we drop some files that we need in runtime.
Then in the app we access them via: BirtEngine.class.getProtectionDomain().getCodeSource().getLocation().getPath() (BirtEngine is a class of the app).
But the problem is that instead of getting path of the generated folder via maven, it takes as path /target/classes

Intellij & SmartTomcat Version (Help -> About copy & paste below)
IntelliJ IDEA 2023.3.3 (Community Edition)
Smarttomcat 4.7.2

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions