summaryrefslogtreecommitdiffstats
path: root/archives/extend/2014-March/000351.html
blob: ef1f4457119188c3c82b34ef685b8bca36be64b7 (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!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&#239;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:
&gt;<i> Hello,
</I>&gt;<i>
</I>&gt;<i> I've slavishly emulated the &quot;Getting started&quot; example in the guide:
</I>&gt;<i>
</I>&gt;<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>&gt;<i>
</I>&gt;<i> But, when I compile I get this error:
</I>&gt;<i>
</I>&gt;<i> yada yada
</I>&gt;<i>   ERLC   hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl
</I>&gt;<i> compile: warnings being treated as errors
</I>&gt;<i> src/hello_handler.erl:2: behaviour cowboy_http_handler undefined
</I>&gt;<i> make: *** [ebin/hello_erlang.app] Error 1
</I>&gt;<i>
</I>&gt;<i> Cowboy seems to be correctly loaded and compiled as a dependency. I can see .../cowboy/ebin/cowboy_http_handler.beam
</I>&gt;<i>
</I>&gt;<i> However, when I remove the line -behavior(cowboy_http_handler) from hello_handler.erl, system compiles and creates release just fine.
</I>&gt;<i>
</I>&gt;<i> % -behavior(cowboy_http_handler).
</I>&gt;<i>
</I>&gt;<i> Could this be a bug in Getting started or some dunder-headed thing on my end?
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i>
</I>&gt;<i> LRP
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> *********************************************
</I>&gt;<i> My books:
</I>&gt;<i>
</I>&gt;<i> THE GOSPEL OF ASHES
</I>&gt;<i> <A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A>
</I>&gt;<i>
</I>&gt;<i> Strength is not enough. Do they have the courage
</I>&gt;<i> and the cunning? Can they survive long enough to
</I>&gt;<i> save the lives of millions?
</I>&gt;<i>
</I>&gt;<i> FREEIN' PANCHO
</I>&gt;<i> <A HREF="http://freeinpancho.com">http://freeinpancho.com</A>
</I>&gt;<i>
</I>&gt;<i> A community of misfits help a troubled boy find his way
</I>&gt;<i>
</I>&gt;<i> AYA TAKEO
</I>&gt;<i> <A HREF="http://ayatakeo.com">http://ayatakeo.com</A>
</I>&gt;<i>
</I>&gt;<i> Star-crossed love, war and power in an alternative
</I>&gt;<i> universe
</I>&gt;<i>
</I>&gt;<i> Available through Amazon or by request from your
</I>&gt;<i> favorite bookstore
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> **********************************************
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Extend mailing list
</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;<i>
</I>
-- 
Lo&#239;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>