Skip to content

Instantly share code, notes, and snippets.

View mraible's full-sized avatar

Matt Raible mraible

View GitHub Profile
@mraible
mraible / gist:1078716
Created July 12, 2011 19:06
JBoss 7 Fails to Deploy Ajax Login
12:42:01,651 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."ajax-login-1.0-SNAPSHOT.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ajax-login-1.0-SNAPSHOT.war".PARSE: Failed to process phase PARSE of deployment "ajax-login-1.0-SNAPSHOT.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to
tapestry-spring$ gradle install
The 'urls' property of the RepositoryHandler.mavenRepo() method is deprecated and will be removed in a future version of Gradle. You should use the 'url' property to define the core maven repository & the 'artifactUrls' property to define any additional artifact locations.
The ideaProject.javaVersion method is deprecated and will be removed in the next version of Gradle. You should use the idea.project.jdkName method instead.
<someIdeTask>.beforeConfigured is deprecated! Replaced by beforeMerged() method placed on the relevant model object of eclipse/idea.
As a starting point, refer to the dsl guide for IdeaProject or EclipseProject.
For example, ideaProject.beforeConfigured was changed to idea.project.ipr.beforeMerged
The ideaModule.scopes method is deprecated and will be removed in the next version of Gradle. You should use the idea.module.scopes method instead.
The SourceSet.getClassesDir() method is deprecated and will be removed in the next version of Gradle. You should us
@mraible
mraible / Workout1.scala
Created May 30, 2012 15:50
Migrating from Anorm in Play 1.x to Anorm in Play 2.x
// Play Scala 1.x
case class Workout(
id: Pk[Long],
var title: String, var description: String,
var duration: Double, distance: Double,
var postedAt: Date, var athleteId: Long
) {
def prevNext = {
@mraible
mraible / Workout1.scala
Created June 6, 2012 01:06
Workout.scala in Play 1.x vs. Play 2.x
package models
import java.util.Date
import play.db.anorm._
import play.db.anorm.defaults._
import play.db.anorm.SqlParser._
import play.data.validation.Annotations._
case class Workout(
@mraible
mraible / UnitTests1.scala
Created June 6, 2012 01:11
UnitTests.scala in Play 1.x vs. Play 2.x
import java.util.Date
import play.test._
import org.scalatest._
import org.scalatest.matchers._
class UnitTests extends UnitFlatSpec with ShouldMatchers with BeforeAndAfterEach {
import models._
import play.db.anorm._
@mraible
mraible / gist:4638499
Created January 25, 2013 22:25
Upgrading from Spring 3.2 to 3.2.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.564s
[INFO] Finished at: Fri Jan 25 15:19:11 MST 2013
[INFO] Final Memory: 20M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project appfuse-hibernate: Compilation failure: Compilation failure:
[ERROR] /Users/mraible/dev/appfuse/data/hibernate/src/main/java/org/appfuse/dao/hibernate/RoleDaoHibernate.java:[9,37] package org.springframework.stereotype does not exist
[ERROR] /Users/mraible/dev/appfuse/data/hibernate/src/main/java/org/appfuse/dao/hibernate/RoleDaoHibernate.java:[19,1] cannot find symbol
Index: web/jsf/src/main/webapp/ajax4jsf.xhtml
===================================================================
--- web/jsf/src/main/webapp/ajax4jsf.xhtml (revision 8bc0f169759087dd6a4e002d9cfc094afbf73623)
+++ web/jsf/src/main/webapp/ajax4jsf.xhtml (revision 8bc0f169759087dd6a4e002d9cfc094afbf73623)
@@ -1,23 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
- xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
- xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
-
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.SilentCssErrorHandler;
import com.gargoylesoftware.htmlunit.StringWebResponse;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HTMLParser;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;
@mraible
mraible / appfuse-loc.md
Last active December 14, 2015 05:09
Lines of code by web framework in AppFuse

JSF

  44 text files.
  44 unique files.                              
  16 files ignored.

  http://cloc.sourceforge.net v 1.56  T=0.5 s (56.0 files/s, 5640.0 lines/s)
  -------------------------------------------------------------------------------
  Language                     files          blank        comment           code

@mraible
mraible / GWT to Vaadin
Created March 8, 2013 01:48
What happens when you try to use Vaadin 7 as a "drop in replacement for GWT"
[INFO] Compiling module org.appfuse.webapp.MainModule
[INFO] Validating units:
[INFO] Ignored 12 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Resolving org.appfuse.webapp.client.application.ApplicationValidatorFactory.GwtValidator
[INFO] Found type 'org.appfuse.webapp.client.application.ApplicationValidatorFactory.GwtValidator'
[INFO] [ERROR] Annotation error: cannot resolve org.appfuse.webapp.client.ui.login.LoginView$LoginDetails
[INFO] java.lang.ClassNotFoundException: org.appfuse.webapp.client.ui.login.LoginView$LoginDetails
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)