Skip to content

Instantly share code, notes, and snippets.

HTTP Status 500 - Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
type Exception report
message Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
description The server encountered an internal error that prevented it from fulfilling this request.
exception
root@cnocgrant-OptiPlex-380:/media/DATA/CORENETT/mifosx/mifosx/mifosng-provider# gradle clean tomcatRunWar
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "configFile" on "task ':tomcatStop'", value: "/media/DATA/CORENETT/m...".
Deprecated dynamic property: "httpPort" on "task ':tomcatStop'", value: "8080".
Deprecated dynamic property: "httpsPort" on "task ':tomcatStop'", value: "8443".
Deprecated dynamic property: "enableSSL" on "task ':tomcatStop'", value: "true".
:clean
:compileJava
/media/DATA/CORENETT/mifosx/mifosx/mifosng-provider/src/test/java/org/mifosplatform/portfolio/loanaccount/DecliningBalanceMethodLoanScheduleGeneratorTest.java:6: package org.junit does not exist
import org.junit.Before;
@amichaelgrant
amichaelgrant / gist:4412492
Created December 30, 2012 11:52
Accessing Expressjs sessions in with signed cookies nowjs
r
@amichaelgrant
amichaelgrant / gist:3965350
Created October 27, 2012 17:07 — forked from svmehta/gist:3835969
mongoose atomicity question
// add comment function
function addComment(req, res) {
PostModel.findById(req.params.postId, function (err, foundPost) {
if(err) {
return handleError(err)
}
var commentObj = {
user: req.session.userId,
@amichaelgrant
amichaelgrant / gist:3926833
Created October 21, 2012 12:17 — forked from drinchev/gist:2266544
Integrate NowJS with Express and Passport
var express = require('express')
, passport = require('passport')
, sessionStore = new express.session.MemoryStore()
, app = module.exports = express.createServer()
, nowjs = require('now');
app.configure( function () {
app.use(express.bodyParser());
@amichaelgrant
amichaelgrant / storeImgInMongoWithMongoose.js
Created October 16, 2012 18:04 — forked from aheckmann/storeImgInMongoWithMongoose.js
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path
@amichaelgrant
amichaelgrant / app.js
Created October 10, 2012 14:16 — forked from mrnugget/app.js
node.js, express.js and socket.io — basic server/client communication via interface
var io = require('socket.io');
var express = require('express');
var app = express.createServer();
var server = app.listen(8080);
var ioServer = io.listen(server);
app.get('/', function (req, res) {
res.sendfile(__dirname + '/index.html');
});
@amichaelgrant
amichaelgrant / echo.cxx
Created October 3, 2012 19:23 — forked from koblas/echo.cxx
libev c++ echo server
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <ev++.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <resolv.h>
#include <errno.h>
#include <list>
@amichaelgrant
amichaelgrant / server.js
Created September 22, 2012 13:57 — forked from atian25/server.js
socket.io + express session
//express3.0
var express = require('express');
var app = express();
app.set('port', 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
//session & cookie
http://seanstechnologyblog.blogspot.com/2010/09/kannel-configuration-file.html