Hi,
I am using NWDS for java application development.
I have added a new jar as per my requirement and when I create an instnace of the class MimeParser in a servlet it throws an below error
Details: Error [javax.servlet.ServletException: Failed to load :mime.xml], with root cause [com.bentofw.util.NoPropertyFileException: Failed to load :mime.xml].
I have placed this mime.xml file in WEBINF folder but still it throws below error
Can you please guide where should I place mime.xml in my web module.
/*****************************************************************/
private static MimeParser mime1=null;
public void init(ServletConfig cfg) throws ServletException {
super.init(cfg);
try{
mime1=MimeParser.getInstance();
}
catch(Exception ex){
ex.printStackTrace();
throw (new ServletException(ex));
}
/**********************************************************/