It looks like the error you're getting is because ErlyDB hasn't been started. Did you call erlydb:start()?
On Jan 6, 2008 7:06 PM, Andreas <[EMAIL PROTECTED]> wrote: > > I created a new erlyweb app with one component called "test". > I did not modified any code created by erlyweb and still have the > problem :-( > > yaws.conf > .. > appmods = <"/objectstore", erlyweb> > <opaque> > appname = objectstore > </opaque> > > If I type http://127.0.0.1:8000/objectstore/test/ in my bowser, it > will be forwarded to http://127.0.0.1:8000/objectstore//test/list/1 > and I will recive the following error: > Internal error, yaws code crashed > -------------------------------------------------------------------------------- > ERROR erlang code crashed: > File: appmod:0 > Reason: {timeout,{gen_server,call, > [mysql_dispatcher, > {fetch,erlydb_mysql, > [[[[<<"SELECT ">>,<<"*">>], > <<" FROM ">>, > <<"test">>], > []], > [<<" LIMIT ">>,<<"0">>, > 44,<<"10">>]]}, > 5000]}} > Req: {http_request,'GET',{abs_path,"/objectstore//test/list/1"},{1,1}} > > No Error with: http://127.0.0.1:8000/objectstore/test/list/1 > > > > On 6 Jan., 15:04, maddiin <[EMAIL PROTECTED]> wrote: > > Hi Andreas, > > > > in my yaws.conf I have the appmods = <"/blog", erlyweb> set to appmods > > = <"/", erlyweb>, that is why /blog/ in the urls dont work for you. > > > > The blog application is made by a erlyweb-beginner, so please dont > > trust the code in any way. :) > > I´ll add a note about this now on code.google and update the blog > > application within the next days and if the advanced users have > > reviewed it and think its ok I can change the note. > > > > On 6 Jan., 03:31, Andreas <[EMAIL PROTECTED]> wrote: > > > > > > > > > I have build the blog based on the tutorial and downloaded the the > > > blog from google. > > > Both have the problem, that links on the > > > homepagehttp://127.0.0.1:8000/blog/ > > > have bad URLs:http://127.0.0.1:8000/entry/view/my-cat-is-ill > > > SHOULD BE:http://127.0.0.1:8000/blog/entry/view/my-cat-is-ill > > > > > I use ErlyWeb 0.7 and YAWS 1.74. > > > > > yaws.conf: -------------------------------------- > > > .. > > > <server localhost> > > > port = 8000 > > > listen = 127.0.0.1 > > > docroot = "C:/Dokumente und Einstellungen/HeiAn/workspace/blog/www" > > > appmods = <"/blog", erlyweb> > > > <opaque> > > > appname = blog > > > </opaque> > > > </server> > > > > > -module(blog_app_controller). > > > -export([hook/1]). > > > ------------------------------------------------------ > > > > > blog_app_controller.erl -------------------- > > > hook(A) -> > > > A1=case yaws_arg:appmoddata(A) of > > > Root when (Root =:= "") orelse (Root =:= "/") -> > > > yaws_arg:appmoddata(A, "/entry"); > > > _ -> > > > A > > > end, > > > Ewc = erlyweb:get_initial_ewc({ewc, A1}), > > > case Ewc of > > > {data,_}=Data -> > > > Data; > > > _ -> > > > {phased, Ewc, > > > fun(_Ewc, Data,_PhasedVars) -> > > > {ewc, html_container, [A1, {data, Data}]} > > > end} > > > end. > > > ---------------------------------------------------------- > > > > > How can I sove the problem? > > > > > thanks > > > Andreas- Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen - > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
