[jboss-user] [Datasource Configuration] - Re: Upon deploy, JBoss gives me the following error
kts1021
do-not-reply at jboss.com
Mon Feb 7 09:31:49 EST 2011
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&containerType=14&container=2077]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110207/36217df1/attachment.html
More information about the jboss-user
mailing list