<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    You need to include the path toward you exmpp or put exmpp into the
    Erlang lib standard path. It looks like your application doesn't
    know from where to take exmpp.<br>
    <br>
    Cheers,<br>
    CGS<br>
    <br>
    <br>
    <br>
    On 11/02/2011 08:54 AM, Max Bourinov wrote:
    <blockquote
cite="mid:CANsaZAi+Fc8tQEXyn9GoWn_qPL6Fxb6k6+dK=U+WTN2thXC_dQ@mail.gmail.com"
      type="cite">Hi guys,
      <div><br>
      </div>
      <div>I have rebar-ized project that uses exmpp library. exmpp
        library installed in my system (sudo make install).</div>
      <div><br>
      </div>
      <div>
        <div>Since there is no properly rebar-ized exmpp I try to run in
          in my application code manually instead of starting it in
          processor.app:</div>
        <div><br>
        </div>
        <div>
          <div><font class="Apple-style-span" face="'courier new',
              monospace">start(_StartType, _StartArgs) -></font></div>
          <div><font class="Apple-style-span" face="'courier new',
              monospace"><span class="Apple-tab-span"
                style="white-space: pre;"> </span>ok =
              application:start(exmpp),</font></div>
          <div><font class="Apple-style-span" face="'courier new',
              monospace"><span class="Apple-tab-span"
                style="white-space: pre;"> </span>processor_sup:start_link().</font></div>
        </div>
      </div>
      <div><font class="Apple-style-span" face="'courier new',
          monospace"><br>
        </font></div>
      <div>When I test my application (not release) everything work like
        a charm.</div>
      <div><br>
      </div>
      <div>But when I do:</div>
      <div><br>
      </div>
      <div><font class="Apple-style-span" face="'courier new',
          monospace">./rebar compile</font></div>
      <div><font class="Apple-style-span" face="'courier new',
          monospace">./rebar generate</font></div>
      <div><br>
      </div>
      <div>and then run released node I have the following exception:</div>
      <div><br>
      </div>
      <div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">Erlang R14B04 (erts-5.8.5) [source] [smp:2:2]
            [rq:2] [async-threads:5] [hipe] [kernel-poll:true]</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">=INFO REPORT==== 2-Nov-2011::10:38:08 ===</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">    application: processor</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">    exited: {bad_return,</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">               
            {{processor_app,start,[normal,[]]},</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">                 {'EXIT',</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">                     {{badmatch,</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">                          {error,{"no such file
            or directory","exmpp.app"}}},</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">                      [{processor_app,start,2},</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">                     
             {application_master,start_it_old,4}]}}}}</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">    type: permanent</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">{"Kernel pid
terminated",application_controller,"{application_start_failure,processor,{bad_return,{{processor_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{[110,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121],[101,120,109,112,112,46,97,112,112]}}},[{processor_app,start,2},{application_master,start_it_old,4}]}}}}}"}</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">Crash dump was written to: erl_crash.dump</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">Kernel pid terminated (application_controller)
({application_start_failure,processor,{bad_return,{{processor_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{[110,111,32,115,117,99,104,32,102,105,1</font></div>
      </div>
      <div><br>
      </div>
      <div>As I already said this approach doesn't work. Do you have any
        ideas how to properly configure my app to use exmpp?</div>
      <div><br>
      </div>
      <div>Best regards,</div>
      <div>Max</div>
      <div><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>