Monthly Archives: March 2014

Heroku Tips & Tricks

TODO TODO: merge in instructions from: aiconductor_execution-engine_workflow TODO: add keywords from web history packaging for heroku <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin</artifactId> <version>${appassembler-maven-plugin.version}</version> </dependency> … <build> <plugins> <!– Creates jar which could be easily launched from Heroku: http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/usage-program.html mvn package appassembler:assemble procfile: http://stackoverflow.com/questions/8060158/heroku-can-i-call-maven-from-procfile (uses … Continue reading

Posted in Uncategorized | Leave a comment

heroku error: Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.handler.AbstractHandler

Problem Heroku was throwing Exception: java.lang.ClassNotFoundException: org.eclipse.jetty.server.handler.AbstractHandler   Solution Need to add copy-dependencies to your pom (heroku instructions): <build> <plugins> <!– for heorku: https://devcenter.heroku.com/articles/getting-started-with-java –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals><goal>copy-dependencies</goal></goals> </execution> </executions> </plugin>     keywords   … Continue reading

Posted in Uncategorized | 3 Comments

Could not find artifact org.mongodb:casbah_2.10:jar:2.7.0-RC1 in oss-sonatype (https://oss.sonatype.org/content/repositories/releases/)

  Problem 1 When including casbah via maven: <dependency> <groupId>org.mongodb</groupId> <artifactId>casbah_2.10</artifactId> <version>2.7.0-RC1</version> <type>pom</type> </dependency> get the following error: [ERROR] Failed to execute goal on project … : Could not resolve dependencies for project … : Could not find artifact org.mongodb:casbah_2.10:jar:2.7.0-RC1 in … Continue reading

Posted in Uncategorized | Leave a comment

MongoLab Scala

Problem When using casbah to connect to mongo am getting the following exception: { “serverUsed” : “xxx.mongolab.com:xxx” , “code” : 18 , “ok” : 0.0 , “errmsg” : “auth fails”} com.mongodb.CommandFailureException: { “serverUsed” : “xxxx.mongolab.com:xxx” , “code” : 18 , … Continue reading

Posted in Uncategorized | Leave a comment