Skip to content

Instantly share code, notes, and snippets.

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<tasks>
<property name="ringo.home" value="${basedir}/lib/ringojs"/>
<property name="webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/>
<property name="webinf.ringo" value="${basedir}/src/main/webapp/WEB-INF/ringojs"/>
<servlet>
<servlet-name>ringo</servlet-name>
<servlet-class>org.ringojs.jsgi.JsgiServlet</servlet-class>
<init-param>
<param-name>ringo-home</param-name>
<param-value>/WEB-INF/ringojs</param-value>
</init-param>
<init-param>
<param-name>module-path</param-name>
<param-value>app,packages,lib</param-value>
<servlet>
<servlet-name>ringo</servlet-name>
<servlet-class>org.ringojs.jsgi.JsgiServlet</servlet-class>
<init-param>
<param-name>ringo-home</param-name>
<param-value>/WEB-INF/ringojs</param-value>
</init-param>
<init-param>
<param-name>module-path</param-name>
<param-value>
-- actions.js
include('ringo/webapp/response');
exports.index = function (req) {
return skinResponse('skins/index.html', {
content: "عالم"
});
};
org.elasticsearch.transport.SendRequestTransportException: [indices/createIndex]
at org.elasticsearch.transport.RemoteTransportException.fillStack(RemoteTransportException.java:58)
at org.elasticsearch.transport.SendRequestTransportException.fillInStackTrace(SendRequestTransportException.java:34)
at java.lang.Throwable.<init>(Throwable.java:218)
at java.lang.Exception.<init>(Exception.java:59)
at java.lang.RuntimeException.<init>(RuntimeException.java:61)
at org.elasticsearch.ElasticSearchException.<init>(ElasticSearchException.java:46)
at org.elasticsearch.transport.TransportException.<init>(TransportException.java:34)
at org.elasticsearch.transport.RemoteTransportException.<init>(RemoteTransportException.java:39)
at org.elasticsearch.transport.SendRequestTransportException.<init>(SendRequestTransportException.java:30)
Jul 8, 2010 8:01:53 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.07/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib
Jul 8, 2010 8:01:54 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 8, 2010 8:01:54 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3782 ms
Jul 8, 2010 8:01:54 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 8, 2010 8:01:54 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
root@ec2-184-73-85-81:/usr/local/tomcat# cat logs/catalina.out
Oct 17, 2008 3:14:25 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.07/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib
Oct 17, 2008 3:14:25 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 17, 2008 3:14:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 867 ms
Oct 17, 2008 3:14:25 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 17, 2008 3:14:25 PM org.apache.catalina.core.StandardEngine start
java.lang.NullPointerException
at org.elasticsearch.common.Unicode.fromBytes(Unicode.java:71)
at org.elasticsearch.action.count.CountRequest.toString(CountRequest.java:321)
at org.mozilla.javascript.NativeJavaObject.getDefaultValue(NativeJavaObject.java:204)
at org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:790)
at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3848)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
at org.mozilla.javascript.gen.elastic_search_js_143._c_count_2(elastic/search.js:88)
at org.mozilla.javascript.gen.elastic_search_js_143.call(elastic/search.js)
@oravecz
oravecz / gist:709432
Created November 22, 2010 02:21
Patch to fix all but one test on Windows.
Index: test/ringo/utils/files_test.js
===================================================================
--- test/ringo/utils/files_test.js (revision c20dd50ab9e7fd0d6ce3bf53136f22eb13cda60b)
+++ test/ringo/utils/files_test.js (revision )
@@ -8,29 +8,35 @@
const FOO = 'foo';
exports.testResolveUri = function () {
- assert.strictEqual(PARENT + INVALID_CHILD, files.resolveUri(PARENT,
- INVALID_CHILD)); // Should work for both child notations.
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ringojs</groupId>
<artifactId>ringojs</artifactId>
<version>0.6.1</version>