Play - com.mysql.jdbc.Driver driver not found


Problem:

Configuration error

Driver not found: [com.mysql.jdbc.Driver]
In /Users/guybrushtreepwood/git/Play/assessment-joel/conf/application.conf:33
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`
#
db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost:3306/play_assessment_db"
db.default.user=play_user
db.default.password="Pl@y"
db.default.logStatements=true

Solution:

  1. Add libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.21" to build.sb located in the root of your project
  2. Run "sh activator clean" (MACOS)
  3. Run "sh activator dependencies (MACOS)

Wordpress, Hostmonster - 403 permission denied wp-admin install.php


Problem:

403 Permission Denied
You do not have permission for this request /wp-admin/install.php


Solution 1:

Are you using an FTP application to manage your new Wordpress files? If so, try to use CPanel instead.


Solution 2:

  1. Backup your .htaccess (rename it to .htaccess.old 
  2. Replace its contents with the default configuration:

Options +FollowSymLinks
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Heroku - Java HTTP 500 connection refused

Problem:

   HTTP ERROR 500
   Problem accessing /header.jsp. Reason: Connection refused
 
   Caused by:java.net.ConnectException: Connection refused at   java.net.PlainSocketImpl.socketConnect

Solution:

   Check that there are no calls hardcoded connections to localhost (JSP imports, etc)

Java, Spring, Javascript: errorThrown SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Problema:
errorThrown SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Solucion:
JSON esta esperando por lo menos un array vacio, un objecto tipo String (return new String()) no es suficiente.

@RequestMapping("/xxx")
public @ResponseBody String[] xxx(HttpServletRequest request, @RequestParam("xxxx") String xxx) {
            (...)
            return new String[]{""};
        }
}