blob: ef1f4457119188c3c82b34ef685b8bca36be64b7 (
plain) (
tree)
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Getting%20started%20error%3A%20behaviour%0A%20cowboy_http_handler%20undefined&In-Reply-To=%3C531E2246.7040307%40ninenines.eu%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000350.html">
<LINK REL="Next" HREF="000352.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[99s-extend] Getting started error: behaviour cowboy_http_handler undefined</H1>
<B>Loïc Hoguin</B>
<A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Getting%20started%20error%3A%20behaviour%0A%20cowboy_http_handler%20undefined&In-Reply-To=%3C531E2246.7040307%40ninenines.eu%3E"
TITLE="[99s-extend] Getting started error: behaviour cowboy_http_handler undefined">essen at ninenines.eu
</A><BR>
<I>Mon Mar 10 21:36:22 CET 2014</I>
<P><UL>
<LI>Previous message: <A HREF="000350.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI>Next message: <A HREF="000352.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#351">[ date ]</a>
<a href="thread.html#351">[ thread ]</a>
<a href="subject.html#351">[ subject ]</a>
<a href="author.html#351">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Try updating Erlang or Cowboy, this isn't the first time this happens
and I fixed something at some point.
Also see if you have ERL_LIBS already defined, in which case there might
be a bug in Cowboy.
On 03/10/2014 08:44 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">lloyd at writersglen.com</A> wrote:
><i> Hello,
</I>><i>
</I>><i> I've slavishly emulated the "Getting started" example in the guide:
</I>><i>
</I>><i> <A HREF="http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/">http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/</A>
</I>><i>
</I>><i> But, when I compile I get this error:
</I>><i>
</I>><i> yada yada
</I>><i> ERLC hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl
</I>><i> compile: warnings being treated as errors
</I>><i> src/hello_handler.erl:2: behaviour cowboy_http_handler undefined
</I>><i> make: *** [ebin/hello_erlang.app] Error 1
</I>><i>
</I>><i> Cowboy seems to be correctly loaded and compiled as a dependency. I can see .../cowboy/ebin/cowboy_http_handler.beam
</I>><i>
</I>><i> However, when I remove the line -behavior(cowboy_http_handler) from hello_handler.erl, system compiles and creates release just fine.
</I>><i>
</I>><i> % -behavior(cowboy_http_handler).
</I>><i>
</I>><i> Could this be a bug in Getting started or some dunder-headed thing on my end?
</I>><i>
</I>><i> Thanks,
</I>><i>
</I>><i> LRP
</I>><i>
</I>><i>
</I>><i> *********************************************
</I>><i> My books:
</I>><i>
</I>><i> THE GOSPEL OF ASHES
</I>><i> <A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A>
</I>><i>
</I>><i> Strength is not enough. Do they have the courage
</I>><i> and the cunning? Can they survive long enough to
</I>><i> save the lives of millions?
</I>><i>
</I>><i> FREEIN' PANCHO
</I>><i> <A HREF="http://freeinpancho.com">http://freeinpancho.com</A>
</I>><i>
</I>><i> A community of misfits help a troubled boy find his way
</I>><i>
</I>><i> AYA TAKEO
</I>><i> <A HREF="http://ayatakeo.com">http://ayatakeo.com</A>
</I>><i>
</I>><i> Star-crossed love, war and power in an alternative
</I>><i> universe
</I>><i>
</I>><i> Available through Amazon or by request from your
</I>><i> favorite bookstore
</I>><i>
</I>><i>
</I>><i> **********************************************
</I>><i>
</I>><i> _______________________________________________
</I>><i> Extend mailing list
</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>><i>
</I>
--
Loïc Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000350.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI>Next message: <A HREF="000352.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#351">[ date ]</a>
<a href="thread.html#351">[ thread ]</a>
<a href="subject.html#351">[ subject ]</a>
<a href="author.html#351">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>
|