[99s-extend] Getting started error: behaviour cowboy_http_handler undefined

lloyd at writersglen.com lloyd at writersglen.com
Mon Mar 10 20:44:27 CET 2014


Hello,

I've slavishly emulated the "Getting started" example in the guide: 

http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/

But, when I compile I get this error:

yada yada
 ERLC   hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl
compile: warnings being treated as errors
src/hello_handler.erl:2: behaviour cowboy_http_handler undefined
make: *** [ebin/hello_erlang.app] Error 1

Cowboy seems to be correctly loaded and compiled as a dependency. I can see .../cowboy/ebin/cowboy_http_handler.beam

However, when I remove the line -behavior(cowboy_http_handler) from hello_handler.erl, system compiles and creates release just fine.

% -behavior(cowboy_http_handler).

Could this be a bug in Getting started or some dunder-headed thing on my end?

Thanks,

LRP


*********************************************
My books:

THE GOSPEL OF ASHES
http://thegospelofashes.com

Strength is not enough. Do they have the courage 
and the cunning? Can they survive long enough to 
save the lives of millions?  

FREEIN' PANCHO
http://freeinpancho.com

A community of misfits help a troubled boy find his way 

AYA TAKEO
http://ayatakeo.com

Star-crossed love, war and power in an alternative 
universe

Available through Amazon or by request from your 
favorite bookstore


**********************************************




More information about the Extend mailing list