You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Got your point. This happens because the plugin is trying to collect the class path from different folders (e.g. the Maven output folder) and virtually mount them to WEB-INF/lib or WEB-INF/classes. Since the output folders usually have a higher priority, you could get the target/classes as the result.
But sadly, I didn't come with a solution for this.
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
The text was updated successfully, but these errors were encountered: