Thank you so much! It was my stupidity. Now the project is up and running. However, it gives me this error:
[CODE]
private Context context = null;
private DataSource datasource = null;
public void init() throws ServletException {
super.init();
try {
context = new InitialContext();
datasource = (DataSource) context.lookup("java:/comp/env/jdbc/MySqlDS");
} catch (Exception e) {
e.printStackTrace();
}
}
[/CODE]
I am really new to DataSource but Taste CF engine in Mahout requires a datasource.
The code above gives me the following error:
22:23:53,062 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/_____].[RecommendServlet]] Servlet.service() for servlet RecommendServlet threw exception: java.lang.IllegalArgumentException: dataSource is null or empty
Is something the wrong?