Hello,
I have a problem (or just a misunderstanding) on how to serve a static
content with Swazoo. I use Swazoo 2.2 in Squeak 4.1
When I "doit" the following code in the Workspace
| site resource composite |
SwazooServer singleton removeAllSites.
site := SwazooSite new name: 'test'.
site host: '*' ip: '*' port: 8888.
SwazooServer singleton addSite: site.
composite := CompositeResource new uriPattern: '/'.
resource := FileResource uriPattern: 'hello.html' filePath:
'/home/dm/hello.html'.
composite addResource: resource.
site addResource: composite.
SwazooServer startOn: 8888.
The server wakes up ok, but when I'm trying to rich the
http://localhost:8888/hello.html, firefox shows "waiting for
localhost..." and nothing more happens (browsing other addresses on
localhost:8888 results with 404 so the server really works).
I have tried to debug the FileMappingResource>>answerTo: and explored
all the execution flow from the debugger, everything looks ok, the file
is found and the response is created.
I assume that I do something wrong and there is no issue with Swazoo.
Could anybody point me out how to setup the static content serving
correctly?
Best regards,
Dmitry
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more.
http://p.sf.net/sfu/salesforce-d2d_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel