activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r961095 - in /activemq/sandbox/activemq-apollo-actor: ./ activemq-web/ activemq-web/src/ activemq-web/src/main/ activemq-web/src/main/resources/ activemq-web/src/main/scala/ activemq-web/src/main/scala/org/ activemq-web/src/main/scala/org/f...
Date Wed, 07 Jul 2010 03:52:56 GMT
Author: chirino
Date: Wed Jul  7 03:52:55 2010
New Revision: 961095

URL: http://svn.apache.org/viewvc?rev=961095&view=rev
Log:
adding initial web module based on the scalate bookstore example

Added:
    activemq/sandbox/activemq-apollo-actor/activemq-web/
    activemq/sandbox/activemq-apollo-actor/activemq-web/pom.xml
    activemq/sandbox/activemq-apollo-actor/activemq-web/run   (with props)
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/logback.xml
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/ServletContextListener.scala
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/Book.scala
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/BookResource.scala
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/Bookstore.scala
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/DefaultRepresentations.scala
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/BookResource.index.ssp
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/Bookstore.index.ssp
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/web.xml
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/
    activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/SampleTest.scala
Modified:
    activemq/sandbox/activemq-apollo-actor/pom.xml

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/pom.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/pom.xml?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/pom.xml (added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/pom.xml Wed Jul  7 03:52:55 2010
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.activemq</groupId>
+    <artifactId>activemq-project</artifactId>
+    <version>6.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.activemq</groupId>
+  <artifactId>activemq-web</artifactId>
+  <packaging>war</packaging>
+  <version>6.0-SNAPSHOT</version>
+
+  <name>ActiveMQ :: Web</name>
+
+  <properties>
+    <jetty-port>8080</jetty-port>
+    <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
+    <scalate-editor>${env.SCALATE_EDITOR}</scalate-editor>
+    <scalate-workdir>${basedir}/target/_scalate</scalate-workdir>
+  </properties>
+
+  <dependencies>
+    
+    <dependency>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>activemq-broker</artifactId>
+      <version>6.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>activemq-jaxb</artifactId>
+      <version>6.0-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.fusesource.scalate</groupId>
+      <artifactId>scalate-war</artifactId>
+      <version>${scalate-version}</version>
+      <type>war</type>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.fusesource.scalate</groupId>
+      <artifactId>scalate-guice</artifactId>
+      <version>${scalate-version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>${servlet-api-version}</version>
+      <scope>provided</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.codehaus.jackson</groupId>
+      <artifactId>jackson-jaxrs</artifactId>
+      <version>1.3.2</version>
+    </dependency>
+
+    <!-- testing -->
+    <dependency>
+      <groupId>org.fusesource.scalate</groupId>
+      <artifactId>scalate-test</artifactId>
+      <version>${scalate-version}</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <forkMode>once</forkMode>
+          <!-- these settings are mandatory to avoid SureFire giving a bogus system property
to the web container -->
+          <useSystemClassLoader>false</useSystemClassLoader>
+          <useManifestOnlyJar>false</useManifestOnlyJar>
+          <includes>
+            <include>**/*Test.*</include>
+          </includes>
+          <excludes>
+            <exclude>**/QueuesTest.*</exclude>
+            <exclude>**/htmlunit/**.*</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+      </plugin>
+
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>jetty-maven-plugin</artifactId>
+        <version>${jetty-plugin-version}</version>
+        <configuration>
+          <webAppConfig>
+            <contextPath>/</contextPath>
+          </webAppConfig>
+          <systemProperties>
+            <systemProperty>
+              <name>scalate.editor</name>
+              <value>${scalate-editor}</value>
+            </systemProperty>
+            <systemProperty>
+              <name>scalate.temp.workingdir</name>
+              <value>true</value>
+            </systemProperty>
+            <systemProperty>
+              <name>scalate-workdir</name>
+              <value>${scalate-workdir}</value>
+            </systemProperty>
+          </systemProperties>
+          <scanIntervalSeconds>0</scanIntervalSeconds>
+        </configuration>
+      </plugin>
+
+    </plugins>
+  </build>
+  
+  <profiles>
+    <profile>
+      <id>precompile</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.fusesource.scalate</groupId>
+            <artifactId>maven-scalate-plugin</artifactId>
+            <version>${scalate-version}</version>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>precompile</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles> 
+   
+</project>
+

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/run
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/run?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/run (added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/run Wed Jul  7 03:52:55 2010
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+echo
+echo Running the web application with JRebel so we can hot-reload code changes
+echo
+echo In another shell run the following command:
+echo "    mvn scala:cc"
+echo
+echo Using JRebel home directory of $JREBEL_HOME
+MAVEN_OPTS="-noverify -javaagent:$JREBEL_HOME/jrebel.jar" 
+mvn -Dscalate.temp.workingdir=true $* jetty:run
+

Propchange: activemq/sandbox/activemq-apollo-actor/activemq-web/run
------------------------------------------------------------------------------
    svn:executable = *

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/logback.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/logback.xml?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/logback.xml (added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/resources/logback.xml Wed
Jul  7 03:52:55 2010
@@ -0,0 +1,29 @@
+<configuration scan="true">
+  <!-- TODO in production mode disable the scan -->
+
+  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+    <File>target/application.log</File>
+    <Append>true</Append>
+
+    <layout class="ch.qos.logback.classic.PatternLayout">
+      <Pattern>%-4relative [%thread] %-5level %logger{40} - %msg%n</Pattern>
+    </layout>
+  </appender>
+
+
+  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+    <layout class="ch.qos.logback.classic.PatternLayout">
+      <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
+    </layout>
+  </appender>
+
+<!--
+  <logger name="org.fusesource.scalate" level="DEBUG" />
+-->
+
+  <root level="info">
+    <appender-ref ref="FILE" />
+    <appender-ref ref="STDOUT" />
+  </root>
+
+</configuration>
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/ServletContextListener.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/ServletContextListener.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/ServletContextListener.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/ServletContextListener.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,27 @@
+package org.fusesource.scalate.samples.bookstore
+
+import _root_.com.google.inject.Guice
+import _root_.com.google.inject.servlet.GuiceServletContextListener
+import _root_.org.fusesource.scalate.guice.ScalateModule
+
+/**
+ * A servlet context listener which registers
+ * <a href="http://code.google.com/p/google-guice/wiki/Servlets">Guice Servlet</a>
+ *
+ * @version $Revision : 1.1 $
+ */
+
+class ServletContextListener extends GuiceServletContextListener {
+
+  def getInjector = Guice.createInjector(new ScalateModule() {
+
+    // TODO add some custom provider methods here
+    // which can then be injected into resources or templates
+    //
+    // @Provides def createSomething = new MyThing()
+
+    // lets add any package names which contain JAXRS resources
+    // https://jersey.dev.java.net/issues/show_bug.cgi?id=485
+    override def resourcePackageNames = "org.fusesource.scalate.samples.bookstore.resources"
:: super.resourcePackageNames
+  })
+}

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/Book.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/Book.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/Book.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/model/Book.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,6 @@
+package org.fusesource.scalate.samples.bookstore.model
+
+/**
+ * @version $Revision: 1.1 $
+ */
+case class Book(id: String, title: String, author: String)
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/BookResource.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/BookResource.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/BookResource.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/BookResource.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,11 @@
+package org.fusesource.scalate.samples.bookstore.resources
+
+import org.fusesource.scalate.samples.bookstore.model.Book
+import org.fusesource.scalate.rest.{Container, ElementResource}
+
+/**
+ * @version $Revision : 1.1 $
+ */
+class BookResource(val book: Book, val container: Container[String, Book])
+        extends ElementResource[String, Book](book, container) with DefaultRepresentations
{
+}
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/Bookstore.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/Bookstore.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/Bookstore.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/Bookstore.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,20 @@
+package org.fusesource.scalate.samples.bookstore.resources
+
+import org.fusesource.scalate.samples.bookstore.model.Book
+import org.fusesource.scalate.rest.{MapContainer, ContainerResource}
+import java.lang.String
+import javax.ws.rs.{Path}
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@Path("/")
+class Bookstore extends ContainerResource[String,Book,BookResource] with DefaultRepresentations
{
+  val container = new MapContainer[String,Book]() {
+    def key(book: Book) = book.id
+
+    put(Book("item1", "Title1", "Author1"), Book("item2", "Title2", "Author2"))
+  }
+
+  def createChild(e: Book) = new BookResource(e, container)
+}
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/DefaultRepresentations.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/DefaultRepresentations.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/DefaultRepresentations.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/scala/org/fusesource/scalate/samples/bookstore/resources/DefaultRepresentations.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,16 @@
+package org.fusesource.scalate.samples.bookstore.resources
+
+import com.sun.jersey.api.view.ImplicitProduces
+import javax.ws.rs.Produces
+import javax.ws.rs.core.MediaType
+
+/**
+ * Defines the default representations to be used on resources
+ *
+ * @version $Revision: 1.1 $
+ */
+@ImplicitProduces(Array("text/html;qs=5"))
+@Produces(Array("application/xml","text/xml", "application/json"))
+trait DefaultRepresentations {
+
+}
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/BookResource.index.ssp
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/BookResource.index.ssp?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/BookResource.index.ssp
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/BookResource.index.ssp
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@ val it: BookResource %>
+<% import it.book._ %>
+<html>
+<body>
+<h1>Book ${title}</h1>
+
+<ul>
+  <li>Title: <b>${title}</b></li>
+  <li>by: <b>${author}</b></li>
+  <li>id: <b>${id}</b></li>
+</ul>
+<p>
+
+
+
+</p>
+
+</body>
+</html>
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/Bookstore.index.ssp
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/Bookstore.index.ssp?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/Bookstore.index.ssp
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/org/fusesource/scalate/samples/bookstore/resources/Bookstore.index.ssp
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@ val it: Bookstore %>
+<html>
+<body>
+<h1>Bookstore</h1>
+
+<h2>Items</h2>
+
+<ul>
+  <li><a href="id/item1">Item1</a></li>
+  <li><a href="id/item2">Item2</a></li>
+</ul>
+
+</body>
+</html>
\ No newline at end of file

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/web.xml?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/web.xml (added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/main/webapp/WEB-INF/web.xml Wed
Jul  7 03:52:55 2010
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	version="2.5">
+
+  <display-name>Bookstore</display-name>
+
+  <description>
+    Bookstore Sample
+  </description>
+
+  <listener>
+    <listener-class>org.fusesource.scalate.samples.bookstore.ServletContextListener</listener-class>
+  </listener>
+
+  <filter>
+    <filter-name>guiceFilter</filter-name>
+    <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>guiceFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+  <error-page>
+    <error-code>500</error-code>
+    <location>/WEB-INF/errors/scalate/500.scaml</location>
+  </error-page>
+
+</web-app>

Added: activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/SampleTest.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/SampleTest.scala?rev=961095&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/SampleTest.scala
(added)
+++ activemq/sandbox/activemq-apollo-actor/activemq-web/src/test/scala/org/fusesource/scalate/sample/SampleTest.scala
Wed Jul  7 03:52:55 2010
@@ -0,0 +1,23 @@
+package org.fusesource.scalate.sample
+
+import org.junit.runner.RunWith
+import org.scalatest.junit.JUnitRunner
+import org.scalatest.{FunSuite}
+
+import org.fusesource.scalate.test._
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@RunWith(classOf[JUnitRunner])
+class SampleTest extends FunSuite with WebServerMixin with WebDriverMixin {
+
+  test("home page") {
+    webDriver.get(rootUrl)
+    pageContains("Bookstore")
+  }
+
+  testPageContains("id/item1", "Title1", "Author1", "item1")
+  testPageContains("id/item2", "Title2", "Author2", "item2")
+
+}
\ No newline at end of file

Modified: activemq/sandbox/activemq-apollo-actor/pom.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/pom.xml?rev=961095&r1=961094&r2=961095&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/pom.xml (original)
+++ activemq/sandbox/activemq-apollo-actor/pom.xml Wed Jul  7 03:52:55 2010
@@ -92,7 +92,13 @@
     <hawtdispatch-version>1.0-SNAPSHOT</hawtdispatch-version>
     <hawtdb-version>1.1-SNAPSHOT</hawtdb-version>
     <hawtbuf-version>1.0-SNAPSHOT</hawtbuf-version>
-
+    
+    <jetty-version>6.1.22</jetty-version>
+    <jetty-plugin-version>7.0.1.v20091125</jetty-plugin-version>
+    <scalate-version>1.1-SNAPSHOT</scalate-version>
+    <servlet-api-version>2.5</servlet-api-version>
+    <jackson-version>1.3.2</jackson-version>
+    
     <scala-version>2.8.0.Beta1</scala-version>
     <scalatest-version>1.0.1-for-scala-2.8.0.Beta1-RC7-with-test-interfaces-0.3-SNAPSHOT</scalatest-version>
     <scala-plugin-version>2.9.1</scala-plugin-version>



Mime
View raw message