02-24-2011 04:26 AM - edited 02-24-2011 04:47 AM
I'm having a hard time installing Push SDK sample apps in a remote machine. I'm trying a manual installation of Tomcat. The machine runs Linux Red Hat.
The error I get is:
tWebApplicationContext()] - Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'registerListeners' defined in class path resource [sample-push-initiator-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransa ctionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
It looks like a problem with the JDBC connector, but I don't know how to solve it. Among the things I've already done are:
Tomcat's initial page seem to be working fine in https://machine_ip:8080/
But there are errors with the BB apps:
Internal Server Error: Sorry, we are unable to properly process your request at this time. Please contact a system administrator to investigate the problem by examining the logs.
Does anyone have any idea of what is going on? I would greatly appretiate some help
Solved! Go to Solution.
02-24-2011 06:15 AM
I could finally solve this problem. MySQL was not allowing the connection from JDBC. I've
had to remove the line:
in MySQL configuration file ( /etc/my.cnf ) and now the sample apps seem to be working ok.
I still cannot subscribe the client though, but that's a different story...