Error: Could not locate configuration file in default-jasen-config.xml
Status: Inactive
Brought to you by:
jasonpolites
Hi,
I'm using Jasen and get the following error:
"Could not locate configuration file in default-jasen-config.xml"
can you please help me?
i'm using the following code:
public class jASEN {
private static final JasenScanner m_JasenScanner = JasenConnection.getInstance();
private static class JasenConnection {
private static JasenScanner m_jasenScanner;
protected JasenConnection() {
try {
JasenScanner.getInstance().init();
ErrorHandlerBroker.getInstance().setErrorHandler(new EmptyErrorHandler());
m_jasenScanner = JasenScanner.getInstance();
} catch (JasenException ex) {
Console.PrintException("JASEN Connection error", ex);
}
}
public static JasenScanner getInstance() {
if (null == m_jasenScanner) {
new JasenConnection();
}
return m_jasenScanner;
}
}
public static double GetSpamScore(MimeMessage mm) {
double jASEN_score = -1;
try {
if (m_JasenScanner != null) {
JasenScanResult result = m_JasenScanner.scan(mm);
jASEN_score = result.getProbability();
}
} catch (JasenException ex) {
Console.PrintException("Error getting Jasen score", ex);
}
return jASEN_score;
}
}
I tried the following simple code too, but get the same error.
public class jASEN {
}