开发者

Beginner servlet deployment question: how to make third-party library access files in .war?

开发者 https://www.devze.com 2023-02-01 02:28 出处:网络
I get \"Error opening ... file ... (No such file or directory)\". However I do开发者_开发问答 not control the file access - a third-party library is trying to open a file in the .war.

I get "Error opening ... file ... (No such file or directory)". However I do开发者_开发问答 not control the file access - a third-party library is trying to open a file in the .war.

It works fine when using an open directory structure on my own computer.

My question is: is normal file access supposed to work within a .war? If not, should I just deploy a directory instead of a .war? Or is there a better way?

Am using glassfish.


.war file should be unpacked by your (application) server, so your third-party lib should operate with files from unpacked .war.

0

精彩评论

暂无评论...
验证码 换一张
取 消