Skip to content

Instantly share code, notes, and snippets.

@robinsk
Last active August 29, 2015 13:58
Show Gist options
  • Save robinsk/10358839 to your computer and use it in GitHub Desktop.
Save robinsk/10358839 to your computer and use it in GitHub Desktop.
<%@ val it: no.ok.prk.adm.brukerinfo.Bruker %>
<tr onclick="location = '<%= uri("/bruker/" + it.brukernavn) %>'">
<td><a href="<%= uri("/bruker/" + it.brukernavn) %>"><%= it.brukernavn %></a></td>
<td><%= it.fornavn %> <%= it.etternavn %></td>
<td><%= it.epost %></td>
<td><%= it.brukertypeFormatert %></td>
<td><%= it.organisasjonNavn %></td>
</tr>
[ERROR] Failed to execute goal org.fusesource.scalate:maven-scalate-plugin_2.10:1.6.1:precompile (default) on project prk-adm-gui-webapp: Unexpected failure. no.ok.prk.adm.brukerinfo.$_scalate_$Bruker_sokeresultat_ssp -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fusesource.scalate:maven-scalate-plugin_2.10:1.6.1:precompile (default) on project prk-adm-gui-webapp: Unexpected failure.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unexpected failure.
at org.fusesource.scalate.maven.PrecompileMojo.execute(PrecompileMojo.java:121)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.fusesource.scalate.TemplateException: no.ok.prk.adm.brukerinfo.$_scalate_$Bruker_sokeresultat_ssp
at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:780)
at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:778)
at org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:699)
at org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:419)
at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:413)
at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:483)
at org.fusesource.scalate.support.Precompiler.execute(Precompiler.scala:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.fusesource.scalate.maven.PrecompileMojoSupport.apply(PrecompileMojoSupport.scala:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.fusesource.scalate.maven.PrecompileMojo.execute(PrecompileMojo.java:112)
... 21 more
Caused by: java.lang.InstantiationException: no.ok.prk.adm.brukerinfo.$_scalate_$Bruker_sokeresultat_ssp
at java.lang.Class.newInstance(Class.java:359)
at org.fusesource.scalate.TemplateEngine.loadCompiledTemplate(TemplateEngine.scala:900)
at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:768)
... 37 more
/* NOTE this file is autogenerated by Scalate : see http://scalate.fusesource.org/ */
package no.ok.prk.adm.brukerinfo
import _root_.scala.collection.JavaConversions._
import _root_.org.fusesource.scalate.support.TemplateConversions._
import _root_.org.fusesource.scalate.util.Measurements._
object $_scalate_$Bruker_sokeresultat_ssp {
def $_scalate_$render($_scalate_$_context: _root_.org.fusesource.scalate.RenderContext): Unit = {
;{
implicit val context: org.scalatra.scalate.ScalatraRenderContext = $_scalate_$_context.attribute("context")
import context._
val it = attribute[_root_.no.ok.prk.adm.brukerinfo.Bruker]("it")
import it._
;{
val it: no.ok.prk.adm.brukerinfo.Bruker = $_scalate_$_context.attribute("it")
$_scalate_$_context << ( "\n<tr onclick=\"location = '" );
$_scalate_$_context <<< ( uri("/bruker/" + it.brukernavn)
);
$_scalate_$_context << ( "'\">\n <td><a href=\"" );
$_scalate_$_context <<< ( uri("/bruker/" + it.brukernavn)
);
$_scalate_$_context << ( "\">" );
$_scalate_$_context <<< ( it.brukernavn
);
$_scalate_$_context << ( "</a></td>\n <td>" );
$_scalate_$_context <<< ( it.fornavn
);
$_scalate_$_context << ( " " );
$_scalate_$_context <<< ( it.etternavn
);
$_scalate_$_context << ( "</td>\n <td>" );
$_scalate_$_context <<< ( it.epost
);
$_scalate_$_context << ( "</td>\n <td>" );
$_scalate_$_context <<< ( it.brukertypeFormatert
);
$_scalate_$_context << ( "</td>\n <td>" );
$_scalate_$_context <<< ( it.organisasjonNavn
);
$_scalate_$_context << ( "</td>\n</tr>" );
}
}
}
}
class $_scalate_$Bruker_sokeresultat_ssp extends _root_.org.fusesource.scalate.Template {
def render(context: _root_.org.fusesource.scalate.RenderContext): Unit = $_scalate_$Bruker_sokeresultat_ssp.$_scalate_$render(context)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment