Hi again,

Of course tntnet.xml may be wrong also. The <dburl>something</dburl> must be a node just below the top level <tntnet>-node.

Tommi

Am 03.02.2014 18:52, schrieb Tommi Mäkitalo:
Hi,

Strange. It works for me. Either the ecppc or tntnet itself it wrong. Lets check ecppc first. Can you look at the generated T1.cpp. You should find a method:

    void _component_::configure(const tnt::TntConfig& config)
    {
      // <%config>
      config.config.getMember("dburl", _component_::dburl);
      // </%config>
    }

The Method was in the previous version:

    void _componentFactory_::doConfigure(const tnt::TntConfig& config)

This was wrong. Can you check that?

Tommi

Am 03.02.2014 18:34, schrieb Jean-Marc Choulet:
Yes and I modified T1.ecpp (add some spaces).

jm@amande:~/T1$ ls -l
total 224
-rw-rw-r-- 1 jm jm    814 févr.  3 11:05 Makefile
-rw-rw-r-- 1 jm jm    468 févr.  3 17:41 T1.ecpp
-rw-rw-r-- 1 jm jm   2661 févr.  3 11:18 tntnet.xml
jm@amande:~/T1$

jm@amande:~/T1$ make
/opt/publiweb/bin/ecppc   -o T1.cpp T1.ecpp
g++ -I/opt/publiweb/include -fPIC -O2   -c -o T1.o T1.cpp
g++ -o T1.so T1.o -shared -L/opt/publiweb/lib -ltntnet -lcxxtools
rm T1.cpp
jm@amande:~/T1$

jm@amande:~/T1$ make test
/opt/publiweb/bin/tntnet tntnet.xml
2014-02-03 18:34:20.73341 [8376.46975739840704] INFO tntnet.listener -
listen ip= port=8000
2014-02-03 18:34:20.73355 [8376.46975739840704] INFO tntnet.tntnet -
create 5 worker threads
2014-02-03 18:34:36.91391 [8376.46975741957888] INFO tntnet.worker -
request GET / from client 172.20.212.238 user-Agent "Mozilla/5.0 (X11;
Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0" user ""
2014-02-03 18:34:36.91427 [8376.46975741957888] INFO tntnet.comploader -
load library "T1"
2014-02-03 18:34:36.91460 [8376.46975741957888] INFO tntnet.comploader -
library "./T1.so"
2014-02-03 18:34:36.91469 [8376.46975741957888] ERROR component.T1 -
DBURL :
2014-02-03 18:34:36.91471 [8376.46975741957888] INFO tntnet.worker -
request GET / ready, returncode 200 OK - ContentSize: 138

Jean-Michel

Le 03/02/2014 18:28, Tommi Mäkitalo a écrit :
Am 03.02.2014 17:54, schrieb Jean-Michel Caricand:
Tommi,

You were right. I deleted all the old libraries and now it works.

But I still have the same problem for configuration variables.
...
Hi,

did you delete the generated source? I mean the .cpp files generated
from .ecpp by ecppc. The bug was in ecppc and hence you have to rerun ecppc.

Tommi

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to