googlearchive / acre Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/acre
License: Apache License 2.0
Automatically exported from code.google.com/p/acre
License: Apache License 2.0
Acre (A Crash of Rhinos Evaluating) ----------------------------------- Acre is a server-side Javascript platform for implementing web applications easily. It was designed to facilitate the development of applications that make use of the data provided by Freebase.com, though it is a capable platform for generic web application development. Applications are generally implemented using the Acre templating language, which is a variation of Mjt (http://mjtemplate.org). It's also possible to implement applications directly in Javascript, which is preferable for APIs that return JSON results. Traditionally, Acre stores the meta-data and source required to find and run applications using the APIs provided by freebase.com. The retrieval mechanism for discovering source and meta data is pluggable, and thus easily extensible. This release includes a method that uses the local file system to find and run applications, as well as the more traditional freebase.com implementation. Building Acre ------------- Acre requires you to have a Java Developer's Kit installed (version 5 or greater) and Apache Ant. (basically, 'java', 'javac' and 'ant' need to be present in your path). All the libraries that Acre requires to build and to run are already shipped with it. To build, simply type ./acre build Running Acre ------------ To run acre, simply type: ./acre run and then look at: http://127.0.0.1:8115/acre/status in your browser. If everything looks alright, congratulations, you have Acre running! By default, Acre gets data and source code from sandbox-freebase.com. If you want it to get data and source code from the main freebase.com site run it like this: ./acre -c freebase run Developing Acre apps residing on your local disk ------------------------------------------------ Acre will look for your local acre apps in the 'webapp/WEB-INF/scripts' directory. Here's a simple example: Your app is called: foo Put the files in: webapp/WEB-INF/scripts/foo/ Point your browser at: http://foo.dev.acre.localhost:8115/ Acre by default is configured to expect your apps to be responding to *.dev.acre.localhost:8115 domains. To make this work, you will need to configure a hostname for each app you're working on to tell your computer it should route the requests to those domains to Acre. The simplest way to do this is by adding the following to your /etc/hosts file: 127.0.0.1 foo.dev.acre.localhost (unfortunately, you can't use wildcards in /etc/hosts so you have to add a new line for each app you want your local acre to serve) I you want to use a different base URL (for example, once you deploy Acre on your own server), update 'ACRE_HOST_BASE' in your 'config/project.local.conf' file, and restart Acre. You can use subdirectories for different versions of your apps, staging, etc. The directory structure is the same as the namespace path in freebase.com, so if you want acre to serve: http://foo.bar.dev.acre.localhost:8115/index you would create the directory 'webapp/WEB-INF/scripts/bar/foo' and place a file named 'index.<ext>' in it. Acre uses the extension to determine what mechanism to use to run the file. By default Acre will serve the file as raw text unless certain extensions are used: .mjt will treat the file as an Acre template .sjs will treat the file as a server-side Javascript file .mql will treat the file as a MQL Query .{png, jpg, gif} will serve the file as binary with the appropriate mime-type Example apps ------------ Some simple example applications are included in this distribution. Example 1: Hello World The files can be found at: webapp/WEB-INF/scripts/examples/helloworld Add this line to your /etc/hosts: 127.0.0.1 helloworld.examples.dev.acre.localhost Point your browser at: http://helloworld.examples.dev.acre.localhost:8115/ - o - Thank you for your interest. The Acre Development Team
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Aug 2010 at 4:22
I followed the steps here:
http://code.google.com/p/acre/wiki/AcreGettingStarted, but pointing my browser
to http://localhost:8115/acre/status giving me these error:
Starting 'acre:exported' mounted at '*.dev.acre.localhost' over
'www.sandbox-freebase.com'
15:57:07.874 [ org.mortbay.log] Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
(0ms)
15:57:07.881 [ org.mortbay.log] Initializing context: '/' from
'/Users/zjong/Desktop/acre-2.0.0/webapp' (7ms)
15:57:08.101 [ org.mortbay.log] Starting autoreloading scanner...
(220ms)
15:57:08.130 [ org.mortbay.log] jetty-6.1.11 (29ms)
15:57:08.517 [ org.mortbay.log] Started [email protected]:8115
(0ms)
15:57:13.806 [ acre.request.start] {client.ip=127.0.0.1,
Http.req.hdr=Host: localhost:8115
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4
Cache-Control: max-age=0
Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png
,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
, Http.url=http://localhost:8115/acre/status, Level=DEBUG, Http.req.method=GET}
(5289ms)
15:57:13.806 [..re.request.generate.tid]
acre;zjong-mbp;2010-08-30T15:57:13Z;20;1 (0ms)
15:57:13.806 [ acre.request.url] localhost:8115/acre/status (0ms)
15:57:13.888 [..e.acre.supervisor.watch] Schedule killer for Acre-1
[1283126264816 ms] (82ms)
15:57:13.900 [..re.acre.supervisor.kill] Killing Acre-1 at
org.mozilla.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:210)
(12ms)
15:57:13.902 [..e.acre.supervisor.watch] Release killer for Acre-1 (2ms)
15:57:13.903 [ org.mortbay.log] Error for /acre/status (1ms)
com.metaweb.acre.util.exceptions.AcreThreadDeath
at com.metaweb.acre.util.Supervisor.kill(Supervisor.java:121)
at com.metaweb.acre.util.Supervisor$ThreadKillerTask.run(Supervisor.java:56)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
15:57:13.960 [ acre.request.start] {client.ip=127.0.0.1,
Http.req.hdr=Host: localhost:8115
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
, Http.url=http://localhost:8115/favicon.ico, Level=DEBUG, Http.req.method=GET}
(57ms)
15:57:13.960 [..re.request.generate.tid]
acre;zjong-mbp;2010-08-30T15:57:13Z;20;2 (0ms)
15:57:13.961 [ acre.request.url] localhost:8115/favicon.ico (1ms)
15:57:13.966 [..e.acre.supervisor.watch] Schedule killer for Acre-1
[1283126264962 ms] (5ms)
15:57:14.000 [..re.acre.supervisor.kill] Killing Acre-1 at
java.lang.System.arraycopy(Native Method) (34ms)
15:57:14.002 [..e.acre.supervisor.watch] Release killer for Acre-1 (2ms)
15:57:14.002 [ org.mortbay.log] Error for /favicon.ico (0ms)
com.metaweb.acre.util.exceptions.AcreThreadDeath
at com.metaweb.acre.util.Supervisor.kill(Supervisor.java:121)
at com.metaweb.acre.util.Supervisor$ThreadKillerTask.run(Supervisor.java:56)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Original issue reported on code.google.com by [email protected]
on 30 Aug 2010 at 7:58
If you make frequent requests to the same address, being able to reuse
TIME_WAIT sockets save on socket creation/teardown time and number of open
connections/file handles.
Original issue reported on code.google.com by [email protected]
on 19 Jun 2012 at 6:55
Attachments:
When extracting with winrar:
! C:\Documents and Settings\doconnor.VALEX\My
Documents\Downloads\acre-2.0.0.tar.gz: Cannot open
\home\alexbl\acre\_data\acre\static (acre-2.0.0\webapp\WEB-INF\static -->
\home\alexbl\acre\_data\acre\static)
! C:\Documents and Settings\doconnor.VALEX\My
Documents\Downloads\acre-2.0.0.tar.gz: Symbolic link points to missing file
Original issue reported on code.google.com by [email protected]
on 5 Sep 2010 at 11:19
What steps will reproduce the problem?
1. Download Acre from SVN
2. Build & Deploy to AppEngine
3. View live AppEngine Application
What is the expected output? What do you see instead?
I've followed all the (quite limited) documentation, but I cannot get Acre to
do anything at all when I deploy to AppEngine. In my logs, I see
Uncaught exception from servlet java.lang.NoClassDefFoundError: Could not initialize class com.google.acre.script.HostEnv at com.google.acre.servlet.
Not sure what I'm doing wrong. I feel like the instructions left some crucial
steps out.
Original issue reported on code.google.com by [email protected]
on 2 Nov 2010 at 2:34
On the Wiki page http://code.google.com/p/acre/wiki/GettingStarted?tm=6, step
one should reference the url http://acre.googlecode.com/svn/trunk/ not
http://acre.googlecode.com/svn/stable/
Original issue reported on code.google.com by [email protected]
on 7 Jun 2011 at 3:50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.