kts1021 [
http://community.jboss.org/people/kts1021] created the discussion
"Re: Upon deploy, JBoss gives me the following error"
To view the discussion, visit:
http://community.jboss.org/message/585969#585969
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/585969#585969]
Start a new discussion in Datasource Configuration at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]