Building Exhibit3 (staged) for Dummies

275 views
Skip to first unread message

Ted

unread,
Dec 10, 2011, 1:09:05 AM12/10/11
to SIMILE Widgets
Greetings

My record numbers are several thousand, so it's Staged for me!

But I must admit that the build instructions (https://github.com/
zepheira/backstage/wiki/Building-backstage) are totally beyond me.
Perhaps this is because I am used to downloading 'complete'
applications from github rather than 'building' my own. It certainly
wasn't helped by this sentence "You will need a JVM installed with
appropriate enviornment settings (JAVA_HOME, etc) along with Maven 2.x
+. You will also need Babel as well as SIMILE Butterfly. Butterfly
should be installed in a peer directory to Backstage...".

Seriously, I 'thought' I knew a thing or two but clearly I've been
kidding myself. Is there no-one else in the Group who is similarly
challenged?

Would someone who has successfully completed the build be prepared to
reduce the build instructions to words of one syllable so that I can
do my own build?

I would be eternally grateful.

TIA

Ted

ma...@coactus.com

unread,
Dec 12, 2011, 1:57:16 PM12/12/11
to simile-...@googlegroups.com
On Sat, Dec 10, 2011 at 1:09 AM, Ted <tedbe...@gmail.com> wrote:
> Greetings

Hi Ted,

>
> My record numbers are several thousand, so it's Staged for me!
>
> But I must admit that the build instructions (https://github.com/
> zepheira/backstage/wiki/Building-backstage) are totally beyond me.
> Perhaps this is because I am used to downloading 'complete'
> applications from github rather than 'building' my own. It certainly
> wasn't helped by this sentence "You will need a JVM installed with
> appropriate enviornment settings (JAVA_HOME, etc) along with Maven 2.x
> +. You will also need Babel as well as SIMILE Butterfly. Butterfly
> should be installed in a peer directory to Backstage...".
>
> Seriously, I 'thought' I knew a thing or two but clearly I've been
> kidding myself. Is there no-one else in the Group who is similarly
> challenged?

It sounds like the issue here is that you're expecting that it will be
as easy to deploy a Staged exhibit as it will a Scripted one. While I
think we've done a pretty good job at ensuring that the *authoring*
experience is consistent between the two (and with Exhibit 2), there's
no escaping the fact that the Backstage is a long-running software
component that requires separate installation, configuration, ongoing
maintenance, and generally, a skill set quite different than the one
needed to author an exhibit.

I would suggest that if you're not able to follow those build
instructions, that you probably shouldn't be attempting to run your
own production Backstage instance. Perhaps you know somebody who can
help you set it up? Failing that, you might have to wait until
somebody decides to offer Staged exhibit hosting.

I'm sorry if this isn't the answer you were looking for, but thanks
for bringing it to our attention. I'll be updating that Wiki page
shortly to add a disclaimer similar to the above.

Mark.

Drew

unread,
Dec 12, 2011, 5:14:17 PM12/12/11
to SIMILE Widgets
I wonder, is there any chance this could be an 'image' which could be
installed on the Amazon cloud? (EC2, I think)

Sorry if I've got the terms/ideas wrong here... thinking out loud here.

Ted

unread,
Dec 12, 2011, 9:37:47 PM12/12/11
to SIMILE Widgets
Thanks for those thoughts, Mark.

Are you familiar with the expression "red rag to a bull"?

Regards

Ted

On Dec 12, 1:57 pm, "m...@coactus.com" <m...@coactus.com> wrote:

Ted

unread,
Dec 13, 2011, 9:08:21 AM12/13/11
to SIMILE Widgets
Greetings allSuccess!! It can be done, even by someone who probably
shouldn't be attempting to run their own production Backstage instance
or is so friendless that they mistakenly thought that the mail group
was an OK place to ask for help/directions. In any event, I've
completed an install of Staged and I'm running the Sweden Europea demo/
sample (or at least it appears to me that I am).
I had suspected that git/github was the missing link, and a few hours
research and Googling got me going. Maven, Ant and Backstage are still
"black-boxes" to me, but thanks to Google I figured out how/where to
download and install them. The rest was trial and error; Total time
investment on this occasion = , say, 6-8 hours.
It may never go into production, but at least I have installed the
development server and I will not die wondering whether or not I
should have persevered with Staged. It was hit-and-miss and not
without problems but it can be done with some creative and persistent
Googling. It seems that Scripted will suit only very small data sets,
and Staged will suit only veerry large sets, and any in-betweeners may
suit themselves.I am sorry if that is not the answer that the Exhibit3
Team was looking for.
Regards
Ted

On Dec 13, 5:57 am, "m...@coactus.com" <m...@coactus.com> wrote:

Kihara Absolomon

unread,
Dec 13, 2011, 10:45:29 AM12/13/11
to simile-...@googlegroups.com
Hi Ted, all,

Congratulations on getting it to work. Maybe you should document the
steps you took to get it to work. Untill there is better
documentation that will make newbies take the least time to have it
working, the uptake of exhibit-staged will still be low.

On another unrelated question, i am getting a 'NetworkError 500,
internal server
error-http://localhost:8181/backstage/exhibit-session/', i know its a
path issue but i cant figure out where to place the folder, and what
should be in that folder! Anyone with any ideas?

Kihara

> --
> You received this message because you are subscribed to the Google Groups
> "SIMILE Widgets" group.
> To post to this group, send email to simile-...@googlegroups.com.
> To unsubscribe from this group, send email to
> simile-widget...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simile-widgets?hl=en.
>
>

--
Sent from my mobile device

Kihara Absolomon :: Software Developer :: Movert Technologies :: +254 733
567 797 :: +254 726 567 797 :: http://soloincc.movert.co.ke/
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning." – Rick Cook

ma...@coactus.com

unread,
Dec 13, 2011, 11:52:51 AM12/13/11
to simile-...@googlegroups.com
I'm glad you got it working Ted, and I apologize that you took offense
at my response.

Would you care to share the links you used to learn what you needed to
know? I'd be happy to put those on the Wiki, so that others could
benefit from your experience.

Note that as you use your server and add more data and exhibits, it's
possible you will run out of memory. When Java programs like Backstage
are run, they are pre-configured to use up to a maximum amount of
memory (more or less). You can increase this by adjusting the value
of the MXMEM variable in the "backstage" startup script.

Mark.

Mark Baker

unread,
Dec 13, 2011, 11:53:11 AM12/13/11
to simile-...@googlegroups.com
On Tue, Dec 13, 2011 at 10:45 AM, Kihara Absolomon <solo...@gmail.com> wrote:
> Hi Ted, all,
>
> Congratulations on getting it to work. Maybe you should document the
> steps you took to get it to work. Untill there is  better
> documentation that will make newbies take the least time to have it
> working, the uptake of exhibit-staged will still be low.
>
> On another unrelated question, i am getting a 'NetworkError 500,
> internal server
> error-http://localhost:8181/backstage/exhibit-session/', i know its a
> path issue but i cant figure out where to place the folder, and what
> should be in that folder! Anyone with any ideas?

Hi Kihara. This question has come up before, and I made an attempt to
answer it on the Wiki;

https://github.com/zepheira/backstage/wiki/Authoring (at the bottom)

If that doesn't explain it, I'd be happy to accept any suggestions you
might have.

Thanks.

Mark.

Ryan Lee

unread,
Dec 13, 2011, 5:53:43 PM12/13/11
to simile-...@googlegroups.com

That's a great idea, I like it. For Amazon EC2, that would be an Amazon
Machine Image (AMI). Backstage runs on Butterfly, which is already
suited to run on Google App Engine, so that's another possible avenue to
explore.

I don't have time to look into these right now, but if someone wants to
run with the idea of building less developer-oriented options, that
would be an awesome contribution. I've put up an issue in the tracker.

https://github.com/zepheira/backstage/issues/28

Kihara Absolomon

unread,
Dec 14, 2011, 2:12:38 AM12/14/11
to simile-...@googlegroups.com
Hi all,

Just to answer my question for the future guys who might have this problem.

It seems that exhibit requires the json file that contains the data to be kind of pre-processed. Since backstage is accessed via a jetty server and the actual application via another web server, the link to the data file should be a valid URL, either accessed via jetty or the application server.

In short, <link href='http://localhost/playground/avid/data.js' type='application/json' rel='exhibit/data' />". The link in red should be a valid url.

I hope this will save someone in the future

Regards
Kihara

ma...@coactus.com

unread,
Dec 14, 2011, 9:59:10 AM12/14/11
to simile-...@googlegroups.com
On Wed, Dec 14, 2011 at 2:12 AM, Kihara Absolomon <solo...@gmail.com> wrote:
> Hi all,
>
> Just to answer my question for the future guys who might have this problem.
>
> It seems that exhibit requires the json file that contains the data to be
> kind of pre-processed. Since backstage is accessed via a jetty server and
> the actual application via another web server, the link to the data file
> should be a valid URL, either accessed via jetty or the application server.
>
> In short, <link href='http://localhost/playground/avid/data.js'
> type='application/json' rel='exhibit/data' />". The link in red should be a
> valid url.
>
> I hope this will save someone in the future

Hi Kihara. What you've got there is a scripted exhibit - backstage is
not being used at all.

When creating a staged exhibit, the exhibit data URL needs to be the
one returned in the Location header on the 201 response that results
from the POST request that uploads the data.

Mark.

Kihara Absolomon

unread,
Dec 14, 2011, 10:12:26 AM12/14/11
to simile-...@googlegroups.com
Thanks Mark,

Yeah, discovered that the hard way. I guess reading documentation is at times important :-)

btw, do you have the staged demo(Sweden Europeana) instance running on a local machine? I am running into a js error "TypeError: this.getRegistry().getID is not a function" on Line 369 of backstage.js using the current github snapshot and I want to be sure its not me seeing things!

Regards
Kihara



Mark.

charles peguiron

unread,
Jul 16, 2012, 9:27:22 AM7/16/12
to simile-...@googlegroups.com
Hello,

I read differents topics speaking about the same problem : Build the backstage, but I don't find any answer to my case. So here is my problem:

I built the backstage in a Linux environnement and it work very well. Congratulation to the team! But now I need to build it under Windows...for my work...

I'm trying to build the Backstage under windows so I followed the wiki (https://github.com/zepheira/backstage/wiki/Building-backstage).

The step "Get the source" is ok but for one think: the butterfly source code does not contain "butterfly.bat" like explained in the following topic:
https://groups.google.com/forum/?fromgroups#!topic/simile-widgets/EyHhhOGZyzQ
I found a butterfly.bat file

The step "Build" look good... I have no error returned.

To know if the backstage was well deployed I found a tips in the following topic:
https://groups.google.com/forum/#!searchin/simile-widgets/backstage/simile-widgets/0LqCmHofxzM/4LLu0noWW5gJ
But when I enter http://localhost:8181/backstage/data/disk in my browser, the 404 error is returned.

When I launch "backstage.bat" there is some path problem.
The paths mentionned point at:
- log4j.properties
- butterfly.properties
- modules
- butterfly
and modules.properties

After that, I tried to launch butterfly alone and here again I have a path problem: "e3src\butterfly\src\main\webapp does not exist".

I'm a bit lost and I don't know if my problem come from backstage or butterfly.
I don't find help for butterfly so I'm pretty lost with that stuff.

Here Ted seems have to been able to build the Backstage (Linux/Windows??). Is there a documentation about it?
If not, I'm ready to write a documentation about the build under Windows but I really need help to understand where is the problem.

Best regards,

Charles

Ryan Lee

unread,
Jul 17, 2012, 1:48:40 PM7/17/12
to simile-...@googlegroups.com
Hi Charles,

Thanks for your offer, the current group of developers involved with
Backstage is definitely short on utilizing Windows machines to help move
things along in that environment. Unfortunately, it sounds like what we
really need is a Windows-based developer to be part of the picture, at
least for the batch files.

On 2012-07-16 06:27 , charles peguiron wrote:
> Hello,
>
> I read differents topics speaking about the same problem : Build the
> backstage, but I don't find any answer to my case. So here is my problem:
>
> I built the backstage in a Linux environnement and it work very well.
> Congratulation to the team! But now I need to build it under Windows...for
> my work...
>
> I'm trying to build the Backstage under windows so I followed the wiki (
> https://github.com/zepheira/backstage/wiki/Building-backstage).
>
> The step "Get the source" is ok but for one think: the butterfly source
> code does not contain "butterfly.bat" like explained in the following topic:
> https://groups.google.com/forum/?fromgroups#!topic/simile-widgets/EyHhhOGZyzQ
> I found a butterfly.bat file

It probably doesn't work with the latest Butterfly. Someone basically
needs to adapt the shell script

https://code.google.com/p/simile-butterfly/source/browse/trunk/butterfly

to Windows. The Google Refine refine.bat might be of assistance

https://code.google.com/p/google-refine/source/browse/trunk/refine.bat

> The step "Build" look good... I have no error returned.
>
> To know if the backstage was well deployed I found a tips in the following
> topic:
> https://groups.google.com/forum/#!searchin/simile-widgets/backstage/simile-widgets/0LqCmHofxzM/4LLu0noWW5gJ
> But when I enter http://localhost:8181/backstage/data/disk in my browser,
> the 404 error is returned.
>
> When I launch "backstage.bat" there is some path problem.
> The paths mentionned point at:
> - log4j.properties
> - butterfly.properties
> - modules
> - butterfly
> and modules.properties

It's probable that file's out of date, too.

> After that, I tried to launch butterfly alone and here again I have a path
> problem: "e3src\butterfly\src\main\webapp does not exist".
>
> I'm a bit lost and I don't know if my problem come from backstage or
> butterfly.
> I don't find help for butterfly so I'm pretty lost with that stuff.

I'm afraid Butterfly doesn't have much documentation. Ideally you
shouldn't have to know anything about it to deploy Backstage.

> Here Ted seems have to been able to build the Backstage (Linux/Windows??).
> Is there a documentation about it?

Yes, if anybody's managed to do well with Backstage on Windows, it would
be good to hear from you how you managed.

charles peguiron

unread,
Jul 18, 2012, 3:42:37 AM7/18/12
to simile-...@googlegroups.com
Hello,

Thank you Ryan for your answer.
It's right that I'm not a Windows developper but I'm a bit stubborn so I'll try again with your tips in a few moment.
Right now I'm working on Exhibit Scripted for a short-term solution to do my work. But I'll try again the installation and let you know if I find some solutions.
By the time if anybody have some tips I'll be glad to share with him.

Best regards,

Charles

charles peguiron

unread,
Jul 19, 2012, 4:31:22 AM7/19/12
to simile-...@googlegroups.com
Hello,

I have make a forward step!
Now butterfly is working well.
I changed the pom.xml file (in the base directory of butterfly) and I added the jetty plugin with some configuration:

<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <configuration>
            <webAppSourceDirectory>${basedir}/main/webapp</webAppSourceDirectory>
            <classesDirectory>${basedir}/main/target</classesDirectory>
        </configuration>
 </plugin>

The problem was that, by default, jetty searches the webapp's directory in the path "${basedir}/src/main/webapp" and that does not match with the actual architecture of my butterfly.
Same problem with the classes directory...

So with this change, butterfly is working well.

Now I'm trying to do the same with backstage but I'm not sure of the architecture of the project.
I suppose that the webapp to point to is the butterfly web app.

-------> Is that right? Because I don't find any webapp's directory in the backstage.

I'm not sure of what must be the classes directory...

If I try to build the backstage using the butterfly's webapp and butterfly's classes, the bash return an error (see picture in attachment).
It looks like there is some problem with the mounting modules step but I'm not sure to understand what is expected here.
-------> Is this the link with the backstage modules?

I feel I'm closer of the solution but I need better understand the way backstage and butterfly works together.
-------> Is there a documentation or can somebody give me a quick explanation please?

Thanks in advance,

Charles
ConsoleBugCharles.png

Ryan Lee

unread,
Aug 22, 2012, 8:54:22 PM8/22/12
to simile-...@googlegroups.com
On 2012-07-19 01:31 , charles peguiron wrote:
> Hello,
>
> I have make a forward step!
> Now butterfly is working well.
> I changed the pom.xml file (in the base directory of butterfly) and I added
> the jetty plugin with some configuration:
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <configuration>
>
> <webAppSourceDirectory>${basedir}/main/webapp</webAppSourceDirectory>
> <classesDirectory>${basedir}/main/target</classesDirectory>
> </configuration>
> </plugin>
>
> The problem was that, by default, jetty searches the webapp's directory in
> the path "${basedir}/src/main/webapp" and that does not match with the
> actual architecture of my butterfly.
> Same problem with the classes directory...
>
> So with this change, butterfly is working well.

This may have moved you forward, but modifying a pom.xml that works on
other operating systems is unlikely to be a working solution. As I
noted in my last, someone needs to write an entirely new butterfly.bat
based on the current shell script. The error you fixed this way would
be fixed more correctly by using a working batch file.

> Now I'm trying to do the same with backstage but I'm not sure of the
> architecture of the project.
> I suppose that the webapp to point to is the butterfly web app.
>
> -------> Is that right? Because I don't find any webapp's directory in the
> backstage.
>
> I'm not sure of what must be the classes directory...
>
> If I try to build the backstage using the butterfly's webapp and
> butterfly's classes, the bash return an error (see picture in attachment).
> It looks like there is some problem with the mounting modules step but I'm
> not sure to understand what is expected here.
> -------> Is this the link with the backstage modules?
>
> I feel I'm closer of the solution but I need better understand the way
> backstage and butterfly works together.
> -------> Is there a documentation or can somebody give me a quick
> explanation please?

Using old batch files isn't truly bringing you closer. They really need
to be written anew.

Honestly, without an interested development party operating primarily on
Windows who can get into Butterfly, or at least translate shell to
batch, it seems more useful to drop the backstage.bat entirely instead
of carrying on as if it works.

Christina Christodoulakis

unread,
Jun 17, 2013, 2:29:54 PM6/17/13
to simile-...@googlegroups.com
Hello Charles, 
I am also trying to build Exhibit Staged on Linux. I was following instructions no problem on the wiki (https://github.com/zepheira/backstage/wiki/Building-backstage). Steps in green were executed successfully: 
Get the source;

$ mkdir ~/e3src && cd ~/e3src
Build;

$ cd babel && mvn install
$ cd ../butterfly && mvn install && ant build
$ cd ../exhibit3/scripted && ant dist
 
The final step, 
 cd ../../backstage && mvn package
gives me the following message:

Missing:
----------
1) edu.mit.simile:babel-engine:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=edu.mit.simile -DartifactId=babel-engine -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Is this a problem you had? I have not been successful following instructions, I would appreciate any feedback.. I found http://simile.mit.edu/maven/edu/mit/simile/babel-engine/1.0-SNAPSHOT/ but I'm unsure what to do now.

many thanks,
Christina

charles peguiron

unread,
Jun 18, 2013, 7:27:20 AM6/18/13
to simile-...@googlegroups.com

Hello Christina,
I had made this installation one year ago during my internship. So many mounths and other installations past...
I'm sorry, I don't remember have any problem during my installation under ubuntu. I just followed step by step the wiki.
I suggest you to make only one action per command ligne :

cd babel
mvn install

It can look stupid but sometime....

Hope you will find the solution.

Kind regards,
Charles

--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/uCrkHJMNJXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widget...@googlegroups.com.

To post to this group, send email to simile-...@googlegroups.com.

Christina Christodoulakis

unread,
Jun 18, 2013, 12:20:19 PM6/18/13
to simile-...@googlegroups.com
Dear Charles,
thank you for your quick reply, solution or not. If I figure out what was wrong, I will post it here.
Best regards,
Christina
--
Christina Christodoulakis
Graduate Student
Dept. of Computer Science
University of Toronto
Ontario, Canada

Brice Sommacal

unread,
Sep 18, 2013, 11:45:08 AM9/18/13
to simile-...@googlegroups.com
Hi everyone,

I have made few steps forward to get Exhibit staged working in my environment (windows).
I would like to share 2 issues that I'm currently facing. Any advices would be greatly appreciated. 
 

When lauching backstage, I have a error message : "No transaction manager found"  - see logs in [1]
> Is it required? if yes, do you know a good tuto to add it?

Then, when I want to upload a file using curl, I have got the following : 
curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json  http://localhost:8181/backstage/data/disk
curl: (7) Failed connect to localhost:8181; No error

> Does it mean that my backstage is not running properly? 

Thanks for your time, 
BR, 


Brice


[1] Logs from backstage: 
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
edu.mit.simile:backstage-main:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugi
n is missing. @ edu.mit.simile:backstage-container:1.0-SNAPSHOT, D:\projets\SEAM
LESS\Exhibit\Exhibit3-Staged\e3src\backstage\pom.xml, line 50, column 11
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
edu.mit.simile:backstage-container:pom:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugi
n is missing. @ line 50, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] SIMILE Backstage
[INFO] SIMILE Backstage Main Module
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SIMILE Backstage 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.26:run (default-cli) @ backstage-container >>>

[INFO]
[INFO] <<< maven-jetty-plugin:6.1.26:run (default-cli) @ backstage-container <<<

[INFO]
[INFO] --- maven-jetty-plugin:6.1.26:run (default-cli) @ backstage-container ---

[INFO] Configuring Jetty for project: SIMILE Backstage
[INFO] Webapp source directory = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3s
rc\butterfly\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfly\mai
n\target
2013-09-18 16:49:02.492:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /backstage-container
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfl
y\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butt
erfly\main\webapp
[INFO] Starting jetty 6.1.26 ...
2013-09-18 16:49:02.610:INFO::jetty-6.1.26
2013-09-18 16:49:03.228:INFO::No Transaction manager found - if your webapp requ
ires one, please configure one.
16:49:04.007 [backstage                ] Starting backstage ... (0ms)
16:49:04.008 [backstage                ] Properties loaded from D:\projets\SEAML
ESS\Exhibit\Exhibit3-Staged\e3src\backstage\butterfly.properties (1ms)
16:49:04.127 [backstage                ] > process properties (119ms)
16:49:04.128 [backstage                ]  Butterfly home: \projets\SEAMLESS\Exhi
bit\Exhibit3-Staged\e3src\backstage\..\butterfly (1ms)
16:49:04.130 [backstage                ]  Default zone is: 'main' (2ms)
16:49:04.131 [backstage                ] < process properties (1ms)
16:49:04.132 [backstage                ] > load modules (1ms)
16:49:04.150 [backstage                ] < load modules (18ms)
16:49:04.151 [backstage                ] > create modules (1ms)
16:49:04.305 [backstage                ] < create modules (154ms)
16:49:04.306 [backstage                ] > load module wirings (1ms)
16:49:04.307 [backstage                ]  Loaded module wirings from: D:\projets
\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\backstage\modules.properties (1ms)
16:49:04.309 [backstage                ] < load module wirings (2ms)
16:49:04.310 [backstage                ] > wire modules (1ms)
16:49:04.311 [backstage                ]  mounting modules (1ms)
16:49:04.312 [backstage                ]  No mount point defined for module 'mod
ern', mounting to '/modules/modern' (1ms)
16:49:04.321 [backstage                ]  No mount point defined for module 'les
s-examples', mounting to '/modules/less-examples' (9ms)
16:49:04.323 [backstage                ]  No mount point defined for module 'ext
ended-examples', mounting to '/modules/extended-examples' (2ms)
16:49:04.324 [backstage                ]  No mount point defined for module 'exa
mples', mounting to '/modules/examples' (1ms)
16:49:04.326 [backstage                ]  No mount point defined for module 'jqu
ery', mounting to '/modules/jquery' (2ms)
16:49:04.327 [backstage                ]  No mount point defined for module 'cla
ssic', mounting to '/modules/classic' (1ms)
 


2013/6/18 Christina Christodoulakis <cchrist...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.

Mark Baker

unread,
Sep 18, 2013, 1:00:58 PM9/18/13
to simile-...@googlegroups.com
Hi Brice,

On Wed, Sep 18, 2013 at 11:45 AM, Brice Sommacal
<brice.s...@gmail.com> wrote:
> Hi everyone,
>
> I have made few steps forward to get Exhibit staged working in my
> environment (windows).
> I would like to share 2 issues that I'm currently facing. Any advices would
> be greatly appreciated.
>
>
> When lauching backstage, I have a error message : "No transaction manager
> found" - see logs in [1]
>> Is it required? if yes, do you know a good tuto to add it?

IIRC, a transaction manager isn't required and this message is always present.

> Then, when I want to upload a file using curl, I have got the following :
> curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json
> http://localhost:8181/backstage/data/disk
> curl: (7) Failed connect to localhost:8181; No error
>
>> Does it mean that my backstage is not running properly?

That's right. curl is unable to connect which can only mean that
Backstage failed to start, or else you changed the port it used in the
configuration.

I'm afraid I can't be of much help as I don't use Windows, but if I
were you I'd look to resolve this problem in the log, which I don't
recall ever seeing;

Brice Sommacal

unread,
Sep 23, 2013, 11:15:45 AM9/23/13
to simile-...@googlegroups.com
Hi Mark,

Thank you for your reply. 
I have moved forward, but I did not figure out yet why the .json are not loaded inside backstage (i'm still having HTTP 404 responses). 

From the console, I am able to see that Backstage has been launched and that Jetty is waiting for connections: 
[INFO] --- maven-jetty-plugin:6.1.26:run (default-cli) @ backstage-container ---
[INFO] Configuring Jetty for project: SIMILE Backstage
[INFO] Webapp source directory = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfly\main\we
bapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfly\main\target
2013-09-23 16:55:33.398:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /backstage-container
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfly\main\webapp\WEB-IN
F\web.xml
[INFO] Webapp directory = D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged\e3src\butterfly\main\webapp
[INFO] Starting jetty 6.1.26 ...
2013-09-23 16:55:33.466:INFO::jetty-6.1.26
2013-09-23 16:55:33.562:INFO::No Transaction manager found - if your webapp requires one, please con
figure one.
16:55:33.816 [backstage                ] Starting backstage ... (0ms)
16:55:33.816 [backstage                ] Properties loaded from D:\projets\SEAMLESS\Exhibit\Exhibit3
-Staged\e3src\backstage\butterfly.properties (0ms)
16:55:33.817 [backstage                ] > init (1ms)
16:55:33.817 [backstage                ]  > initialize classloader (0ms)
16:55:33.855 [backstage                ]  < initialize classloader (38ms)
16:55:33.855 [backstage                ]  > configure (0ms)
16:55:33.856 [backstage                ]   > process properties (1ms)
16:55:33.856 [backstage                ]    Butterfly home: D:\projets\SEAMLESS\Exhibit\Exhibit3-Sta
ged\e3src\backstage\..\butterfly (0ms)
16:55:33.856 [backstage                ]    Default zone is: 'backstage' (0ms)
16:55:33.856 [backstage                ]   < process properties (0ms)
16:55:33.856 [backstage                ]   > load modules (0ms)
16:55:33.856 [backstage                ]    look for modules in D:\projets\SEAMLESS\Exhibit\Exhibit3
-Staged\e3src\backstage\..\backstage\modules (0ms)
16:55:33.857 [backstage                ]    look for modules in D:\projets\SEAMLESS\Exhibit\Exhibit3
-Staged\e3src\backstage\..\backstage\modules\backstage (1ms)
16:55:33.859 [backstage                ]    look for modules in D:\projets\SEAMLESS\Exhibit\Exhibit3
-Staged\e3src\backstage\..\backstage\modules\exhibit (2ms)
16:55:33.862 [backstage                ]    look for modules in D:\projets\SEAMLESS\Exhibit\Exhibit3
-Staged\e3src\backstage\..\backstage\modules\main (3ms)
16:55:33.866 [backstage                ]   < load modules (4ms)
16:55:33.867 [backstage                ]   > create modules (1ms)
16:55:33.869 [backstage                ]    Module path: D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged
\e3src\backstage\..\backstage\modules\backstage (2ms)
16:55:33.904 [backstage                ]    Module path: D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged
\e3src\backstage\..\backstage\modules\main (35ms)
16:55:33.907 [backstage                ]    Module path: D:\projets\SEAMLESS\Exhibit\Exhibit3-Staged
\e3src\backstage\..\backstage\modules\exhibit (3ms)
16:55:33.910 [backstage                ]   < create modules (3ms)
16:55:33.911 [backstage                ]   > load module wirings (1ms)
16:55:33.913 [backstage                ]    Loaded module wirings from: D:\projets\SEAMLESS\Exhibit\
Exhibit3-Staged\e3src\backstage\modules.properties (2ms)
16:55:33.916 [backstage                ]   < load module wirings (3ms)
16:55:33.918 [backstage                ]   > wire modules (2ms)
16:55:33.920 [backstage                ]    mounting modules (2ms)
16:55:33.923 [backstage                ]   < wire modules (3ms)
16:55:33.924 [backstage                ]   > configure modules (1ms)
16:55:34.138 [backstage                ]   < configure modules (214ms)
16:55:34.151 [backstage                ]   > initialize modules (13ms)
16:55:34.156 [backstage                ]    > initialize backstage (5ms)
16:55:34.237 [backstage                ]    < initialize backstage (81ms)
16:55:34.239 [backstage                ]    > initialize exhibit (2ms)
16:55:34.244 [backstage                ]    < initialize exhibit (5ms)
16:55:34.246 [backstage                ]    > initialize main (2ms)
16:55:34.260 [backstage                ]    < initialize main (14ms)
16:55:34.261 [backstage                ]   < initialize modules (1ms)
16:55:34.263 [backstage                ]  < configure (2ms)
16:55:34.264 [backstage                ] < init (1ms)
2013-09-23 16:55:34.293:INFO::Started SelectChann...@0.0.0.0:8181
[INFO] Started Jetty Server


But when I try to upload data with this command line : 

curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json http://localhost:8181/backstage/data/disk

the result is the following: 

HTTP/1.1 100 Continue

HTTP/1.1 404 Not Found
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1306
Server: Jetty(6.1.26)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /backstage/data/disk/europeana-swe.json. Reason:
<pre>    NOT_FOUND</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>

( I have also made a test with full JSON file URI but the output is the same).

From this response, I understand that the connection is successfull (HTTP 100 continue) but the data are not being processed.
In order to see more logs, I have changed log4j.properties setting every lines to console. I was expecting some backstage errors helping me to go ahead... 

Several people post topics about the HTTP 404 message when trying uploading JSON file, but I didn't find any obvious solution in the replies... 

I have tried running only butterfly on localhost:8080, and it seems to work. I mean that firstly, I went to localhost:8080 and click on the link to go to localhost:8080/butterfly-container where I see a "butterfly".   

I am definetely lost and I don't know where I should pay attention.  

Feedbacks are welcome,

Regards, 


Brice Sommacal - PCO Innovation


2013/9/18 Mark Baker <ma...@coactus.com>

Mark Baker

unread,
Sep 25, 2013, 12:33:26 PM9/25/13
to simile-...@googlegroups.com
Hey,

On Mon, Sep 23, 2013 at 11:15 AM, Brice Sommacal
<brice.s...@gmail.com> wrote:
> curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json
> http://localhost:8181/backstage/data/disk

Try terminating that URL with a '/'

Brice Sommacal

unread,
Sep 26, 2013, 3:41:57 AM9/26/13
to simile-...@googlegroups.com
Hi Mark, 

It's quite the same error:
 - with a "/" : 

HTTP/1.1 100 Continue

HTTP/1.1 404 Not Found
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1306
Server: Jetty(6.1.26)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /backstage/data/disk/europeana-swe.json. Reason:
<pre>    NOT_FOUND</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>


without '/':
HTTP/1.1 100 Continue

HTTP/1.1 404 Not Found
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1287
Server: Jetty(6.1.26)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /backstage/data/disk. Reason:
<pre>    NOT_FOUND</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>


Brice
 


2013/9/25 Mark Baker <ma...@coactus.com>

Brice Sommacal

unread,
Sep 27, 2013, 11:03:44 AM9/27/13
to simile-...@googlegroups.com
Hi,
 
FYI, I was using Maven 3.0.5 which is not the recommended release. 
I have downloaded the 2.2.1 relase and rebuild everything. 

Same error occurs. 

BR, 


Brice


2013/9/26 Brice Sommacal <brice.s...@gmail.com>

Mark Baker

unread,
Sep 27, 2013, 2:30:59 PM9/27/13
to simile-...@googlegroups.com
On Thu, Sep 26, 2013 at 3:41 AM, Brice Sommacal
<brice.s...@gmail.com> wrote:
> Hi Mark,
>
> It's quite the same error:
> - with a "/" :

Sorry Brice, I'm not sure what to tell you. I double-checked that the
terminating slash wasn't needed, so your original curl request was
correct. But I can't see any reason why a 404 would be returned. It
might suggest that Butterfly is having troubles, as the Butterfly
controller for Backstage handles that logic. But it could also be
earlier in the pipeline, such as where Butterfly hooks to Jetty. I'm
really not sure and don't have a Windows development environment to
test with.

You mentioned a downgrade to Maven 2, that's good thinking. Are you
using Java 6 too? If not, give that a try. If you are, then I'm at a
loss for what the problem might be, sorry.

If you are able to debug this further though, please report back with
any new information as I might be able to use it to help identify the
problem.

Mark.

Brice Sommacal

unread,
Oct 1, 2013, 5:31:35 AM10/1/13
to simile-...@googlegroups.com
Hello Mark, 

Thank you again for your support. To let you know, I was using Java 6 too. 

I didn't spend more time on this issue and I have set up a linux environment to build backstage.
So from now, everything is working well. (I have had stars in my eyes when I first saw the demo working 8-))  

@All: I would like to provide to my users a exhibit 3 - staged release in windows environment. So, as I have already set up everything, if you want me to make some tests, feel free to contact me. 

Just to let you know, I have faced the same behavior as it's explained in this thread when executing the demo (backstage/demos/sweden-europeana/index.html). I mean replacing all "$" by jQuery in .js files. 

Thanks to the Exhibit 3 team to enabe us releasing website with more than 70,000 items!

Regards, 


Brice

 


2013/9/27 Mark Baker <ma...@coactus.com>
Reply all
Reply to author
Forward
0 new messages