Skip to content
Advertisement

Error loading fcl file in servlet

I have Java Web application JSP/Servlet that works with jFuzzyLogic library which uses rules.fcl file which is located at WEB-INF/rules/rules.fcl. I m trying to load the rules.fcl file in a servlet file but when i try to execute the application web i got these errors :

JavaScript

Someone help me plz with it! Thanks.

Advertisement

Answer

Your code says you have got a very bad and amateur mistake, and it’s because the ctx is null.

make sure you are loading the required resource with init method in servlet, maybe like following.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement