Why does the loading of a POSModel file not work from inside the WEB-INF folder?
问题 I'm using Spring MVC for my web project. I placed the model files inside the WEB-INF directory String taggerModelPath = "/WEB-INF/lib/en-pos-maxent.bin"; String chunkerModelPath = "/WEB-INF/lib/en-chunker.bin"; POSModel model = new POSModelLoader() .load(new File(servletContext.getResource(taggerModelPath).toURI().getPath())); This worked Windows environment. However when I deployed it on my remote Linux server I got an error HTTP Status 500 - Request processing failed; nested exception is