blob: d257a7e89499eb09576f6401de5c767896ffd750 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<!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%20%3D%3Futf-8%3Fq%3FGetting_started_error%3D3A___behaviour_cowbo%3F%3D%0A%20%3D%3Futf-8%3Fq%3Fy%3D5Fhttp%3D5Fhandler_undefined%3F%3D&In-Reply-To=%3C1394480667.69797138%40apps.rackspace.com%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="000349.html">
<LINK REL="Next" HREF="000351.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[99s-extend] Getting started error: behaviour cowboy_http_handler undefined</H1>
<B>lloyd at writersglen.com</B>
<A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20%3D%3Futf-8%3Fq%3FGetting_started_error%3D3A___behaviour_cowbo%3F%3D%0A%20%3D%3Futf-8%3Fq%3Fy%3D5Fhttp%3D5Fhandler_undefined%3F%3D&In-Reply-To=%3C1394480667.69797138%40apps.rackspace.com%3E"
TITLE="[99s-extend] Getting started error: behaviour cowboy_http_handler undefined">lloyd at writersglen.com
</A><BR>
<I>Mon Mar 10 20:44:27 CET 2014</I>
<P><UL>
<LI>Previous message: <A HREF="000349.html">[99s-extend] Trying to grok erlang.mk
</A></li>
<LI>Next message: <A HREF="000351.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#350">[ date ]</a>
<a href="thread.html#350">[ thread ]</a>
<a href="subject.html#350">[ subject ]</a>
<a href="author.html#350">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
I've slavishly emulated the "Getting started" example in the guide:
<A HREF="http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/">http://ninenines.eu/docs/en/cowboy/HEAD/guide/getting_started/</A>
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
<A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A>
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
<A HREF="http://freeinpancho.com">http://freeinpancho.com</A>
A community of misfits help a troubled boy find his way
AYA TAKEO
<A HREF="http://ayatakeo.com">http://ayatakeo.com</A>
Star-crossed love, war and power in an alternative
universe
Available through Amazon or by request from your
favorite bookstore
**********************************************
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000349.html">[99s-extend] Trying to grok erlang.mk
</A></li>
<LI>Next message: <A HREF="000351.html">[99s-extend] Getting started error: behaviour cowboy_http_handler undefined
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#350">[ date ]</a>
<a href="thread.html#350">[ thread ]</a>
<a href="subject.html#350">[ subject ]</a>
<a href="author.html#350">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>
|