This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Auth extends Controller { | |
@With(RolesAction.class) | |
@Target({ElementType.TYPE, ElementType.METHOD}) | |
@Retention(RetentionPolicy.RUNTIME) | |
public @interface MinRole { | |
Role value() default Role.Admin; | |
} | |
public static class RolesAction extends Action<MinRole> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
import models.User; | |
import models.User.Role; | |
import play.mvc.Action; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import models.QueueElement; | |
import play.*; | |
import play.mvc.*; | |
import views.html.*; | |
public class Application extends Controller { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] play - Listening for HTTP on port 9000... | |
(Server started, use Ctrl+D to stop and go back to the console...) | |
[info] Compiling 32 Scala sources and 28 Java sources to /Users/danielberndt/Dropbox/eclipse-workspace/playproject/target/scala-2.9.1/classes... | |
java.lang.RuntimeException: java.lang.ClassNotFoundException: models.Video | |
at com.avaje.ebean.enhance.asm.ClassWriter.getCommonSuperClass(ClassWriter.java:1284) | |
at com.avaje.ebean.enhance.asm.ClassWriter.getMergedType(ClassWriter.java:1244) | |
at com.avaje.ebean.enhance.asm.Frame.merge(Frame.java:1373) | |
at com.avaje.ebean.enhance.asm.Frame.merge(Frame.java:1280) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Server started, use Ctrl+D to stop and go back to the console...) | |
[info] Compiling 35 Scala sources and 31 Java sources to /Users/danielberndt/Dropbox/workspace/humboldt3.0/target/scala-2.9.1/classes... | |
java.lang.RuntimeException: java.lang.ClassNotFoundException: models.HierarchyElement$HierarchyTreeElement | |
at com.avaje.ebean.enhance.asm.ClassWriter.getCommonSuperClass(ClassWriter.java:1284) | |
at com.avaje.ebean.enhance.asm.ClassWriter.getMergedType(ClassWriter.java:1244) | |
at com.avaje.ebean.enhance.asm.Frame.merge(Frame.java:1373) | |
at com.avaje.ebean.enhance.asm.Frame.merge(Frame.java:1280) | |
at com.avaje.ebean.enhance.asm.MethodWriter.visitMaxs(MethodWriter.java:1270) | |
at com.avaje.ebean.enhance.asm.ClassReader.accept(ClassReader.java:1447) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] play - Listening for HTTP on port 9000... | |
(Server started, use Ctrl+D to stop and go back to the console...) | |
[info] play - database [default] connected at jdbc:mysql://127.0.0.1/humboldt | |
[error] c.a.e.s.d.BeanDescriptorManager - Error in deployment | |
javax.persistence.PersistenceException: java.lang.IllegalStateException: Class [class play.db.ebean.Model] is enhanced and [class models.Suit] is not - (you can not mix!!) | |
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1546) ~[ebean-2.7.3.jar:na] | |
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1204) ~[ebean-2.7.3.jar:na] | |
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1124) ~[ebean-2.7.3.jar:na] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "project" | |
val appVersion = "1.0" | |
val appDependencies = Seq( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "myproject" | |
val appVersion = "1.0" | |
val appDependencies = Seq( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:28:24 xuggler_repo(master|✔) % ant ivy-retrieve | |
Buildfile: /opt/xuggler_repo/build.xml | |
ivy-init: | |
[echo] Initing ivy from /opt/xuggler_repo/mk/buildtools/lib/ivy-2.2.0.jar | |
[echo] Ivy task loaded: /opt/xuggler_repo/mk/buildtools/lib/ivy-2.2.0.jar | |
[echo] Ivy settings file set: /opt/xuggler_repo/mk/buildtools/ivysettings.xml | |
ivy-retrieve: | |
[mkdir] Created dir: /opt/xuggler_repo/build/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import models.Model; | |
import models.User; | |
import play.api.templates.Html; | |
import play.data.Form; | |
import play.mvc.Controller; | |
import play.mvc.Result; | |
public abstract class ControllerAgent<T extends Model, F1, F2> { |
OlderNewer