You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Pete Robbins <ro...@googlemail.com> on 2007/03/01 08:32:18 UTC

[Native] AlertAggregator problem

When running the AlertAggregator sample on Mac I start the httpd
server fine but when I point the browser (Firefox or Safari) at
localhost:9090 I get a not found.

Pointing at localhost:9090/index.html simply displays the heml source
of the document.

The apache error_log contains:

[Thu Mar 01 07:24:23 2007] [notice] Apache/2.2.3 (Unix) configured --
resuming normal operations
[Thu Mar 01 07:24:48 2007] [error] [client 127.0.0.1] Attempt to serve
directory: /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/
[Thu Mar 01 07:25:41 2007] [error] [client ::1] Attempt to serve
directory: /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/
[Thu Mar 01 07:25:41 2007] [error] [client ::1] File does not exist:
/Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/favicon.ico
[Thu Mar 01 07:25:46 2007] [error] [client ::1] File does not exist:
/Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/favicon.ico
[Thu Mar 01 07:26:48 2007] [notice] caught SIGTERM, shutting down

Any ideas?

Cheers,

-- 
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [Native] AlertAggregator problem

Posted by Andrew Borley <aj...@gmail.com>.
On 3/1/07, Pete Robbins <ro...@googlemail.com> wrote:
> When running the AlertAggregator sample on Mac I start the httpd
> server fine but when I point the browser (Firefox or Safari) at
> localhost:9090 I get a not found.
>
> Pointing at localhost:9090/index.html simply displays the heml source
> of the document.
>
> The apache error_log contains:
>
> [Thu Mar 01 07:24:23 2007] [notice] Apache/2.2.3 (Unix) configured --
> resuming normal operations
> [Thu Mar 01 07:24:48 2007] [error] [client 127.0.0.1] Attempt to serve
> directory: /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/
> [Thu Mar 01 07:25:41 2007] [error] [client ::1] Attempt to serve
> directory: /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/
> [Thu Mar 01 07:25:41 2007] [error] [client ::1] File does not exist:
> /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/favicon.ico
> [Thu Mar 01 07:25:46 2007] [error] [client ::1] File does not exist:
> /Users/Pete/Documents/workspace/cpp/sca/deploy/samples/AlertAggregator/deploy/httpserver/htdocs/favicon.ico
> [Thu Mar 01 07:26:48 2007] [notice] caught SIGTERM, shutting down
>
> Any ideas?
>
> Cheers,
>
> --
> Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


Yep, I see this on one of my Linux boxes, but not my Windows machine..
It can be fixed by adding the mime_module to the httpd.conf file with
following line:

LoadModule mime_module /usr/lib/httpd/modules/mod_mime.so

Then a restart will make http://localhost:9090/index.html work fine
(you may need to do a 'hard' refresh on your browser - try holding
down shift or ctrl when you click the reload button)

To get the http://localhost:9090 address to work, I think you need to
add in the dir_module:

LoadModule dir_module /usr/lib/httpd/modules/mod_dir.so

Both of these require us to know where the HTTPD modules are
installed, which is why they're not included by default. We could add
(another) env variable to set up the conf files, but it seems to work
on some systems and not others.

Cheers
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org