I make a project of web in JSP for displaying my mysql database in web. I used JSF, GlassFish server 4.1 and mysql-5.6.24 for my project. mysql is on port 3306 and GlassFish receives HTTP request on port 8080 but my project displays this error message to me in a web browser. "Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect."
1527 port is for Derby and i am using mysql which is on port 3306 why it shows me this port error with which mysql didn't any concern 1527 is for Derby.