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 SelectChannelConnector@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 <m...@coactus.com>

> Hi Brice,
>
> On Wed, Sep 18, 2013 at 11:45 AM, Brice Sommacal
> <brice.somma...@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;
>
> > [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.
>
> --
> 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-widgets+unsubscr...@googlegroups.com.
> To post to this group, send email to simile-widgets@googlegroups.com.
> Visit this group at http://groups.google.com/group/simile-widgets.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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-widgets+unsubscr...@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to