cppcms-users Mailing List for CppCMS C++ Web Framework (Page 138)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Aris S. <ari...@gm...> - 2010-06-19 04:37:19
|
Hi, Can CppCMS be load balanced using cluster mechanism to handled high load user? What I mean here is some like horizontal scalability which I can add new server node to increase throughput. regards, -Aris |
From: Aris S. <ari...@gm...> - 2010-06-17 23:44:39
|
> Of course you can, > Why shouldn't you be able to do this? > > CppCMS is just a library, you can use what ever you like with it. Maybe I still don't believe (but also exciting) if I can use powerful C++ in web development. Recently I develop small (but 7/24 running) application which concentrates many mysql database to a single centered mysql database. I have port it 4 times in 2 days, from Java + JDBC, then C#.net+NetConnector, then C#+ODBC, then C#+OLEDB, at last C++(C++Connector), for solve memory leaking and to handle interrupted, slow network connection. |
From: Artyom <art...@ya...> - 2010-06-17 17:56:47
|
> Hi, > > As in desktop programming with Qt or VisualC++ or > GCC; can I use > external library or dll (eg: C++ client VoltDB library, C++ > MySQL NDB > client library, etc ) in developing web with CppCMS > framework? > Of course you can, Why shouldn't you be able to do this? CppCMS is just a library, you can use what ever you like with it. Artyom |
From: Aris S. <ari...@gm...> - 2010-06-17 16:53:20
|
Hi, As in desktop programming with Qt or VisualC++ or GCC; can I use external library or dll (eg: C++ client VoltDB library, C++ MySQL NDB client library, etc ) in developing web with CppCMS framework? Regards, -Aris |
From: Artyom <art...@ya...> - 2010-06-16 09:37:08
|
Hello All, I've changed reply-to settings such that, by default the reply goes to the cppcms-users mailing list and not to the sender. This will reduce number of mistakes, in replying to mailing list, but you'll have to specify mail address explicitly if you want to send an e-mail privately. Artyom |
From: Artyom <art...@ya...> - 2010-06-16 09:33:48
|
Test |
From: Artyom <art...@ya...> - 2010-06-16 09:26:31
|
> > I can't use the json rpc server since I have a requirement > for a > RESTlike architecture. It requires the use of several HTTP > methods > beyond GET and POST. I also require using the PUT, DELETE > & OPTIONS > methods. > So I'll will be making a json_rpc_server like class for > handling this > with a custom dispatching system for handling different > http methods. I just suggested, of course you do what you need. > > I have another small question regarding the conversion > between C++ and > json objects. How do I do this for custom objects? If I am > correct this > should be possible by implementing a custom struct > traits<T>? Could you > give an example on how to do this? First take a look in cppcms/json.h file there are some specializations for std::vector, std::map, std::pair and some other basic strings they would give you a clue how to start All you need to implement get and set static members: For example (I hadn't tested this code): struct person { std::string name; double salary; std::vector<std::string> kids_names; }; namespace cppcms { namespace json { template<> struct traits<person> { static person get(value const &v) { person p; if(v.object().size()!=4) throw bad_value_cast(); p.name=v.get_value<std::string>("name"); p.salary=v.get_value<double>("salary"); p.kids_names= v.get_value<std::vectror<std::string> >("kids_names"); // this works because generic vector and string specialized } static void set(value &v,person const &in) { v.set_value("name",p.name); v.set_value("salary",p.salary); v.set_value("kids_names",p.kids_names); } }; } // json } // cppcms Note1: By convention, faults in conversion should throw bad_value_cast so some functions can catch them and substitute with defaults if needed. Note2: current internal HTTP Server supports GET, POST and HEAD requests, so you need to work via FastCGI or SCGI API behind the browser. I can add support of PUT and DELETE just tell if you need. But remember that you should not use internal HTTP server for production environment as it build for debugging purposes. You may probably use it in trusted environment as it does not do too much security checks. Artyom |
From: Artyom <art...@ya...> - 2010-06-15 14:44:15
|
BTW I forgot to mention, cppcms provides built-in JSON-RPC facilities: See: http://art-blog.no-ip.info/cppcms_ref_v0_99_1/classcppcms_1_1rpc_1_1json__rpc__server.html And a simple example in "tests/jsonrpc_test.cpp" Artyom ________________________________ From: Geert Van de Velde <gee...@ba...> To: cpp...@li... Sent: Tue, June 15, 2010 4:54:38 PM Subject: [Cppcms-users] CppCMS 1.x.x JSON object value empty/not exist Hi, I'm trying to use cppcms for a new project and use it for building a RESTLike API for a device. The API will communicate with the JSON data format. When receiving JSON data from a client some fields of an object are optional. I'm using json::value for handling this. I use the get<T> function to fetch the fields but in case of a missing field or invalid field data it throws an exception. Is it possible to detect that the field is missing separately? So I can ignore missing optional fields. Tnx DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom <art...@ya...> - 2010-06-15 14:41:05
|
Yes you can. Simplest way is to use get with default parameter. For example json::value v; v.get("foo.bar",10); And if foo.bar is not defined or invalid you get 10 instead. You can also use find member function and test the type: if(v.find("foo.bar").type()==cppcms::json::is_number) ... else .. Take a look on documentation of: cppcms::json::value http://art-blog.no-ip.info/cppcms_ref_v0_99_1/classcppcms_1_1json_1_1value.html or (mirror) http://cppcms.sourceforge.net/cppcms_ref_v0_99_1/classcppcms_1_1json_1_1value.html Especially functions: find(), at(), get() they allow you to browse the object on different paths. Regards, Artyom ________________________________ From: Geert Van de Velde <gee...@ba...> To: cpp...@li... Sent: Tue, June 15, 2010 4:54:38 PM Subject: [Cppcms-users] CppCMS 1.x.x JSON object value empty/not exist Hi, I'm trying to use cppcms for a new project and use it for building a RESTLike API for a device. The API will communicate with the JSON data format. When receiving JSON data from a client some fields of an object are optional. I'm using json::value for handling this. I use the get<T> function to fetch the fields but in case of a missing field or invalid field data it throws an exception. Is it possible to detect that the field is missing separately? So I can ignore missing optional fields. Tnx DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Geert V. de V. <gee...@ba...> - 2010-06-15 14:21:42
|
Hi, I'm trying to use cppcms for a new project and use it for building a RESTLike API for a device. The API will communicate with the JSON data format. When receiving JSON data from a client some fields of an object are optional. I'm using json::value for handling this. I use the get<T> function to fetch the fields but in case of a missing field or invalid field data it throws an exception. Is it possible to detect that the field is missing separately? So I can ignore missing optional fields. Tnx DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. |
From: Artyom <art...@ya...> - 2010-06-12 11:37:47
|
No, it is not, It supports Comet over long-poll and other non-HTML5 techniques. Most browsers do not support this HTML5 feature and long-polling XHR is much more reliable and supported among moder browsers. However CppCMS provides generic sockets API so it can be implemented and integrated to the CppCMS event loop, also there is no limitations to add WebSockets support to CppCMS in future. Artyom --- On Sat, 6/12/10, Ping.Zheng <sho...@gm...> wrote: From: Ping.Zheng <sho...@gm...> Subject: Re: [Cppcms-users] CppCMS 1.x.x status updates. To: "Artyom" <art...@ya...> Date: Saturday, June 12, 2010, 12:43 PM Is CppCMX 1.x.x support websocket ? -- with all kind regards |
From: Artyom <art...@ya...> - 2010-06-07 10:05:23
|
Hello The "stock" application is just a small server side part API only. At localhost:8080/stock/update you have a form that allows you to update a price and using At localhost:8080/stock/get?from=NUMBER You can get NUMBER'th price. So if you didn't get it yet you'll wait for update from server. For little bit better comet application try chat application: go to src directory and run ../build/hello_world -c config.js Now you can go to localhost:8080/the_chat.html and chat ;-) Of course it is very simple one especially on the client side were I almost don't do any checks. It is written mostly to check that comet works. Artyom --- On Mon, 6/7/10, Jean-Michel Caricand <jea...@la...> wrote: > From: Jean-Michel Caricand <jea...@la...> > Subject: Re: [Cppcms-users] make test failed > To: "Artyom" <art...@ya...>, cpp...@li... > Date: Monday, June 7, 2010, 10:00 AM > > Hello, > > I did a new test with your lastest cppcms 1.x.x on a new > Debian testing system. All works :) > > I can run hello app but I cannot run chat or stock app. To > run stock app, I use this url : > > http://127.0.0.1/hello_world/stock > > Is it correct ? > > Thanks. > > - Jean-Michel > > > > > > Message du 04/06/10 17:16 > > De : "Artyom" > > A : "Jean-Michel Caricand" > > Copie à : > > Objet : Re: [Cppcms-users] make test failed > > > > > > > > According to the error log > > > _ZNSt6locale5facet19_S_destroy_c_localeERP15__locale_struct, > version GLIBCXX_3.4 not defined in file libstdc++.so.6 with > link time reference > > > > It looks like you have broken libstdc++ or compiler, > make sure that > > the version of gcc you use and the library are same. > > > > Also bring me ldd on booster.so library and tell me > what exactly > > the compiler version you are using. > > > > Artyom > > > > > > --- On Fri, 6/4/10, Jean-Michel Caricand wrote: > > > > > From: Jean-Michel Caricand > > > Subject: Re: [Cppcms-users] make test failed > > > To: "Artyom" > > > Date: Friday, June 4, 2010, 2:42 PM > > > Hi, > > > > > > version 1250 > > > > > > I added stdint.h in archive.cpp, because I got > uint32_t not > > > defined without. > > > > > > There is a problem with libbooster.so.0. See > LastTest.log > > > > > > - Jean-Michel > > > > > > > > > > > > > > > > Message du 02/06/10 16:16 > > > > De : "Artyom" > > > > A : cpp...@li... > > > > Copie à : > > > > Objet : Re: [Cppcms-users] make test failed > > > > > > > > > > > > > Hello, > > > > > > > > > > I want to test cppcms 1.x.x. So, I' > > > > > > > > > > When I run 'make test', some tests > failed : > > > > > > > > > > 52% tests passed, 20 tests failed out > of 42 > > > > > > > > > > [---] > > > > > > > > > > My system is Debian testing. > > > > > > > > Ok: > > > > > > > > 1. What version are you using (svn revision > number) > > > > 2. It looks like something went wrong... > > > > > > > > Can you send the error log? > > > > It us under your build directory: > > > Testing/Temporary/LastTest.log > > > > > > > > Also please provide following information: > > > > > > > > - Testing log I've pointed at. > > > > - What version of Python are you using > > > > - What version of ICU are you using. > > > > > > > > Because all tests that failed actually use > Python for > > > testing > > > > or connected to Localization library - ICU. > > > > > > > > Also please provide me: > > > > > > > > - What version of CMake are you using > > > > - What versions of ICU, zlib, pcre are you > using. > > > > - What version of GCC are you using. > > > > - Did you have any warnings? > > > > - Have you had any build faults? > > > > > > > > Can you please give me an output of: > > > > > > > > ldd ./proto_test > > > > ldd ./internal_forwarder_test > > > > > > > > I just want to see that everything looks on > correct > > > libraries. > > > > > > > > > I think cppcms 1.x.x is not yet ready > for > > > production ? > > > > > > > > 1. CppCMS 1.x.x is still on beta stage - but > it is > > > slowly becomes > > > > production ready > > > > > > > > 2. As you probably expect, 100% of tests are > usually > > > passed. > > > > > > > > So if so many tests fail then probably > something is > > > wrong with > > > > build or libraries combination because as > you can see > > > according to > > > > > > > > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_platforms > > > > > > > > There is quite good coverage of platforms > passing > > > these tests. > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > _______________________________________________ > > > > Cppcms-users mailing list > > > > Cpp...@li... > > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Une messagerie gratuite, garantie à vie et des > services en > > > plus, ça vous tente ? > > > Je crée ma boîte mail www.laposte.net > > > > > > > > > > > > > > > > > > > > > Une messagerie gratuite, garantie à vie et des services en > plus, ça vous tente ? > Je crée ma boîte mail www.laposte.net > > |
From: Jean-Michel C. <jea...@la...> - 2010-06-07 07:01:11
|
Hello, I did a new test with your lastest cppcms 1.x.x on a new Debian testing system. All works :) I can run hello app but I cannot run chat or stock app. To run stock app, I use this url : http://127.0.0.1/hello_world/stock Is it correct ? Thanks. - Jean-Michel > Message du 04/06/10 17:16 > De : "Artyom" > A : "Jean-Michel Caricand" > Copie à : > Objet : Re: [Cppcms-users] make test failed > > > > According to the error log > _ZNSt6locale5facet19_S_destroy_c_localeERP15__locale_struct, version GLIBCXX_3.4 not defined in file libstdc++.so.6 with link time reference > > It looks like you have broken libstdc++ or compiler, make sure that > the version of gcc you use and the library are same. > > Also bring me ldd on booster.so library and tell me what exactly > the compiler version you are using. > > Artyom > > > --- On Fri, 6/4/10, Jean-Michel Caricand wrote: > > > From: Jean-Michel Caricand > > Subject: Re: [Cppcms-users] make test failed > > To: "Artyom" > > Date: Friday, June 4, 2010, 2:42 PM > > Hi, > > > > version 1250 > > > > I added stdint.h in archive.cpp, because I got uint32_t not > > defined without. > > > > There is a problem with libbooster.so.0. See LastTest.log > > > > - Jean-Michel > > > > > > > > > > > Message du 02/06/10 16:16 > > > De : "Artyom" > > > A : cpp...@li... > > > Copie à : > > > Objet : Re: [Cppcms-users] make test failed > > > > > > > > > > Hello, > > > > > > > > I want to test cppcms 1.x.x. So, I' > > > > > > > > When I run 'make test', some tests failed : > > > > > > > > 52% tests passed, 20 tests failed out of 42 > > > > > > > > [---] > > > > > > > > My system is Debian testing. > > > > > > Ok: > > > > > > 1. What version are you using (svn revision number) > > > 2. It looks like something went wrong... > > > > > > Can you send the error log? > > > It us under your build directory: > > Testing/Temporary/LastTest.log > > > > > > Also please provide following information: > > > > > > - Testing log I've pointed at. > > > - What version of Python are you using > > > - What version of ICU are you using. > > > > > > Because all tests that failed actually use Python for > > testing > > > or connected to Localization library - ICU. > > > > > > Also please provide me: > > > > > > - What version of CMake are you using > > > - What versions of ICU, zlib, pcre are you using. > > > - What version of GCC are you using. > > > - Did you have any warnings? > > > - Have you had any build faults? > > > > > > Can you please give me an output of: > > > > > > ldd ./proto_test > > > ldd ./internal_forwarder_test > > > > > > I just want to see that everything looks on correct > > libraries. > > > > > > > I think cppcms 1.x.x is not yet ready for > > production ? > > > > > > 1. CppCMS 1.x.x is still on beta stage - but it is > > slowly becomes > > > production ready > > > > > > 2. As you probably expect, 100% of tests are usually > > passed. > > > > > > So if so many tests fail then probably something is > > wrong with > > > build or libraries combination because as you can see > > according to > > > > > > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_platforms > > > > > > There is quite good coverage of platforms passing > > these tests. > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Cppcms-users mailing list > > > Cpp...@li... > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > > > > > > > > > > > > > > Une messagerie gratuite, garantie à vie et des services en > > plus, ça vous tente ? > > Je crée ma boîte mail www.laposte.net > > > > > > > Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net |
From: Artyom <art...@ya...> - 2010-06-02 14:16:17
|
> Hello, > > I want to test cppcms 1.x.x. So, I' > > When I run 'make test', some tests failed : > > 52% tests passed, 20 tests failed out of 42 > > [---] > > My system is Debian testing. Ok: 1. What version are you using (svn revision number) 2. It looks like something went wrong... Can you send the error log? It us under your build directory: Testing/Temporary/LastTest.log Also please provide following information: - Testing log I've pointed at. - What version of Python are you using - What version of ICU are you using. Because all tests that failed actually use Python for testing or connected to Localization library - ICU. Also please provide me: - What version of CMake are you using - What versions of ICU, zlib, pcre are you using. - What version of GCC are you using. - Did you have any warnings? - Have you had any build faults? Can you please give me an output of: ldd ./proto_test ldd ./internal_forwarder_test I just want to see that everything looks on correct libraries. > I think cppcms 1.x.x is not yet ready for production ? 1. CppCMS 1.x.x is still on beta stage - but it is slowly becomes production ready 2. As you probably expect, 100% of tests are usually passed. So if so many tests fail then probably something is wrong with build or libraries combination because as you can see according to http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_platforms There is quite good coverage of platforms passing these tests. |
From: Jean-Michel C. <jea...@la...> - 2010-06-02 13:43:18
|
Hello, I want to test cppcms 1.x.x. So, I' When I run 'make test', some tests failed : 52% tests passed, 20 tests failed out of 42 The following tests FAILED: 7 - form_test (Failed) 8 - cookie_test (Failed) 9 - internal_forwarder_test (Failed) 10 - forwarder_test (Failed) 11 - jsonrpc_test (Failed) 12 - proto_test_async_http (Failed) 13 - proto_test_async_scgi (Failed) 14 - proto_test_async_scgi_unix (Failed) 15 - proto_test_sync_http (Failed) 16 - proto_test_sync_scgi (Failed) 17 - proto_test_sync_scgi_unix (Failed) 33 - test_locale_boundary (Failed) 34 - test_locale_codepage (Failed) 35 - test_locale_collate (Failed) 36 - test_locale_convert (Failed) 37 - test_locale_date_time (Failed) 38 - test_locale_formatting (Failed) 39 - test_locale_generator (Failed) 41 - test_locale_icu_vs_os_timezone (Failed) 42 - test_locale_message (Failed) Errors while running CTest My system is Debian testing. I think cppcms 1.x.x is not yet ready for production ? - Jean-Michel Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net |
From: Artyom <art...@ya...> - 2010-05-25 19:01:28
|
Hello CppCMS users. CppCMS 1.x.x branch is getting closer to beta release, hopefully at the end of June beginning of July beta version will be available. Meanwhile main project's wiki was converted to new CppCMS version and now runs on top of it, So you may consider wikpp_v100 wikipp branch as beta version of updated Wikipp. Best Regards, Artyom |
From: Artyom <art...@ya...> - 2010-05-11 04:36:48
|
Hello, First, make sure that your hosting provided supports execution of fastcgi programs written in C/C++. About shared libraries: This maybe tricky, you need libcppcms. library, fastcgi, boost libraries and even some more. Note when you use boost libraries you need to have exactly the same version on hosting provider... So I'd recommend linking all libraries statically: 1. Compile your own version of Boost.Regex (without ICU), Boost.Iostreams (with Zlib), Boost.Signals. 2. Build cppcms library with --disable-forkcache --disable-tcpcache --disable-sqlite and if you do not use AES encrypted cookies, compile with --disable-crypt 3. Link your application with all libraries statically: gcc [hello objects] -o hello /path/to/libcppcms.a /path/to/libcppcmstranstext.a /path/to/libfcgi++.a /path/to/libfcgi.a /path/to/libcgicc.a /path/to/libboost_regex.a /path/to/libboost_signals.a /path/to/libboost_iostreams.a -lz -lrt -ldl -lpthread You may also want to add -lgcrypt if you use AES encrypted cookies. Make sure your application links and runs. Make sure ldd ./hello points only to few system libraries like zlib, librt, libdl libpthread Now try to upload it to hosting. Notes: CppCMS is designed to be used on at least VPS where you can actually install software. Most shared hosting providers do not allow you to use C++ fastcgi executables. I'd recommend you to have at least command line access to have an ability to check all this. Regars, Artyom I recommend you linking your application statically with CppCMS. See --- On Mon, 5/10/10, Jesus Rivero <riv...@gm...> wrote: From: Jesus Rivero <riv...@gm...> Subject: [Cppcms-users] [shared-hosting] Options for execute cppcms applications To: cpp...@li... Date: Monday, May 10, 2010, 10:53 PM Greetings, How can i execute cppcms applications in shared hosting? i can't change the configuration of apache and i can't install lighttppd or nginx. I put the .fcgi file in the directory cgi-bin with permissions 755 (in Linux) and the error is > error while loading shared libraries: libcppcms.so.0: cannot open shared object file: No such file or directory. What I can do? Thanks, -- Jesús -----Inline Attachment Follows----- ------------------------------------------------------------------------------ -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Jesus R. <riv...@gm...> - 2010-05-10 19:53:38
|
Greetings, How can i execute cppcms applications in shared hosting? i can't change the configuration of apache and i can't install lighttppd or nginx. I put the .fcgi file in the directory cgi-bin with permissions 755 (in Linux) and the error is > error while loading shared libraries: libcppcms.so.0: cannot open shared object file: No such file or directory. What I can do? Thanks, -- Jesús |
From: Jesus R. <riv...@gm...> - 2010-05-10 16:22:54
|
Thanks for your help, I discovered the problem was the content in the config's files because had server.socket here and in the lighttpd.conf too. Greetings, -- Jesús 2010/5/10 Artyom <art...@ya...> > Hi, > > What are your's /var/www/hello-config.txt and /var/www/ok-config.txt? > Any messages from web server? > > Have you tested that your applications run with cppcms_run > > cppcms_run -s /hello hello.fcgi -c hello-config.txt > > And go to localhost:8080/hello > > Few notes: > > 1. Make sure that you do not specify server.socket in your configuration at > all so application would know that it should get connections from standard > input given > by server - when the server is responsible on starting application. > 2. Make sure your server.api = "fastcgi" > 3. Make sure that cppcms was compiled with fastcgi support. > 3. Read this: > http://cppcms.sourceforge.net/wikipp/en/page/ref_config#server-api > > Artyom > > > --- On *Mon, 5/10/10, Jesus Rivero <riv...@gm...>* wrote: > > > From: Jesus Rivero <riv...@gm...> > Subject: Re: [Cppcms-users] [lighttpd] How execute many applications > > To: cpp...@li... > Date: Monday, May 10, 2010, 4:53 PM > > > Yes, I need to start many applications (only cppcms in moment). > > My configuration is similar: > fastcgi.server = ( > "/hello" => > (( > "bin-path" => "/var/www/hello.fcgi -c > /var/www/hello-config.txt", > "socket" => "/tmp/hellofcgi.socket", > "max-procs" => 1, > "check-local" => "disable" > )), > "/ok" => > (( > "bin-path" => "/var/www/ok.fcgi -c /var/www/ok-config.txt", > "socket" => "/tmp/okfcgi.socket", > "max-procs" => 1, > "check-local" => "disable" > )) > ) > > I have > server.port = 81 > > So, I charge http://localhost:81/ok or http://localhost:81/hello and the > pages loading remains (much time) and don't show the message "Hello World" > or "Ok". > > PD: sorry for my english poor. > > Greetins, > -- > Jesús > > 2010/5/10 Artyom <art...@ya...<http://mc/compose?to=art...@ya...> > > > >> What do you mean? >> >> You need to start several not-related CppCMS applications? >> >> This is how I run wikipp and two blogs on my server: >> >> fastcgi.server = ( >> "/cppcms/blog" => >> (( >> "bin-path" => "/path/to/cppblog -c >> /path/to/cppblog-config.txt", >> "socket" => "/tmp/socket-a", >> "max-procs" => 1, >> "check-local" => "disable" >> )), >> "/newpress/blog" => >> (( >> "bin-path" => "/path/to/cppblog -c >> /path/to/newpress-config.txt", >> "socket" => "/tmp/socket-b", >> "max-procs" => 1, >> "check-local" => "disable" >> )), >> "/wikipp" => >> (( >> "bin-path" => "/path/to/wikipp -c >> /path/to/wikipp-config.txt", >> "socket" => "/tmp/socket-c", >> "max-procs" => 1, >> "check-local" => "disable" >> )) >> ) >> >> >> --- On *Mon, 5/10/10, Jesus Rivero <riv...@gm...<http://mc/compose?to=riv...@gm...> >> >* wrote: >> >> >> From: Jesus Rivero <riv...@gm...<http://mc/compose?to=riv...@gm...> >> > >> Subject: [Cppcms-users] [lighttpd] How execute many applications >> To: cpp...@li...<http://mc/compose?to=cpp...@li...> >> Date: Monday, May 10, 2010, 3:46 PM >> >> >> Greetings, >> >> I need execute many applications of ccpcms in a web server with lighttpd. >> How can execute many applications? >> >> Thanks, >> -- >> Jesús >> >> >> -----Inline Attachment Follows----- >> >> >> ------------------------------------------------------------------------------ >> >> >> -----Inline Attachment Follows----- >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li...<http://mc/compose?to=Cpp...@li...> >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li...<http://mc/compose?to=Cpp...@li...> >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > > > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li...<http://mc/compose?to=Cpp...@li...> > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom <art...@ya...> - 2010-05-10 15:46:43
|
Hi, What are your's /var/www/hello-config.txt and /var/www/ok-config.txt? Any messages from web server? Have you tested that your applications run with cppcms_run cppcms_run -s /hello hello.fcgi -c hello-config.txt And go to localhost:8080/hello Few notes: 1. Make sure that you do not specify server.socket in your configuration at all so application would know that it should get connections from standard input given by server - when the server is responsible on starting application. 2. Make sure your server.api = "fastcgi" 3. Make sure that cppcms was compiled with fastcgi support. 3. Read this: http://cppcms.sourceforge.net/wikipp/en/page/ref_config#server-api Artyom --- On Mon, 5/10/10, Jesus Rivero <riv...@gm...> wrote: From: Jesus Rivero <riv...@gm...> Subject: Re: [Cppcms-users] [lighttpd] How execute many applications To: cpp...@li... Date: Monday, May 10, 2010, 4:53 PM Yes, I need to start many applications (only cppcms in moment). My configuration is similar: fastcgi.server = ( "/hello" => (( "bin-path" => "/var/www/hello.fcgi -c /var/www/hello-config.txt", "socket" => "/tmp/hellofcgi.socket", "max-procs" => 1, "check-local" => "disable" )), "/ok" => (( "bin-path" => "/var/www/ok.fcgi -c /var/www/ok-config.txt", "socket" => "/tmp/okfcgi.socket", "max-procs" => 1, "check-local" => "disable" )) ) I have server.port = 81 So, I charge http://localhost:81/ok or http://localhost:81/hello and the pages loading remains (much time) and don't show the message "Hello World" or "Ok". PD: sorry for my english poor. Greetins, -- Jesús 2010/5/10 Artyom <art...@ya...> What do you mean? You need to start several not-related CppCMS applications? This is how I run wikipp and two blogs on my server: fastcgi.server = ( "/cppcms/blog" => (( "bin-path" => "/path/to/cppblog -c /path/to/cppblog-config.txt", "socket" => "/tmp/socket-a", "max-procs" => 1, "check-local" => "disable" )), "/newpress/blog" => (( "bin-path" => "/path/to/cppblog -c /path/to/newpress-config.txt", "socket" => "/tmp/socket-b", "max-procs" => 1, "check-local" => "disable" )), "/wikipp" => (( "bin-path" => "/path/to/wikipp -c /path/to/wikipp-config.txt", "socket" => "/tmp/socket-c", "max-procs" => 1, "check-local" => "disable" )) ) --- On Mon, 5/10/10, Jesus Rivero <riv...@gm...> wrote: From: Jesus Rivero <riv...@gm...> Subject: [Cppcms-users] [lighttpd] How execute many applications To: cpp...@li... Date: Monday, May 10, 2010, 3:46 PM Greetings, I need execute many applications of ccpcms in a web server with lighttpd. How can execute many applications? Thanks, -- Jesús -----Inline Attachment Follows----- ------------------------------------------------------------------------------ -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -----Inline Attachment Follows----- ------------------------------------------------------------------------------ -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Jesus R. <riv...@gm...> - 2010-05-10 13:53:52
|
Yes, I need to start many applications (only cppcms in moment). My configuration is similar: fastcgi.server = ( "/hello" => (( "bin-path" => "/var/www/hello.fcgi -c /var/www/hello-config.txt", "socket" => "/tmp/hellofcgi.socket", "max-procs" => 1, "check-local" => "disable" )), "/ok" => (( "bin-path" => "/var/www/ok.fcgi -c /var/www/ok-config.txt", "socket" => "/tmp/okfcgi.socket", "max-procs" => 1, "check-local" => "disable" )) ) I have server.port = 81 So, I charge http://localhost:81/ok or http://localhost:81/hello and the pages loading remains (much time) and don't show the message "Hello World" or "Ok". PD: sorry for my english poor. Greetins, -- Jesús 2010/5/10 Artyom <art...@ya...> > What do you mean? > > You need to start several not-related CppCMS applications? > > This is how I run wikipp and two blogs on my server: > > fastcgi.server = ( > "/cppcms/blog" => > (( > "bin-path" => "/path/to/cppblog -c > /path/to/cppblog-config.txt", > "socket" => "/tmp/socket-a", > "max-procs" => 1, > "check-local" => "disable" > )), > "/newpress/blog" => > (( > "bin-path" => "/path/to/cppblog -c > /path/to/newpress-config.txt", > "socket" => "/tmp/socket-b", > "max-procs" => 1, > "check-local" => "disable" > )), > "/wikipp" => > (( > "bin-path" => "/path/to/wikipp -c > /path/to/wikipp-config.txt", > "socket" => "/tmp/socket-c", > "max-procs" => 1, > "check-local" => "disable" > )) > ) > > > --- On *Mon, 5/10/10, Jesus Rivero <riv...@gm...>* wrote: > > > From: Jesus Rivero <riv...@gm...> > Subject: [Cppcms-users] [lighttpd] How execute many applications > To: cpp...@li... > Date: Monday, May 10, 2010, 3:46 PM > > > Greetings, > > I need execute many applications of ccpcms in a web server with lighttpd. > How can execute many applications? > > Thanks, > -- > Jesús > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > > > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li...<http://mc/compose?to=Cpp...@li...> > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Artyom <art...@ya...> - 2010-05-10 13:27:20
|
What do you mean? You need to start several not-related CppCMS applications? This is how I run wikipp and two blogs on my server: fastcgi.server = ( "/cppcms/blog" => (( "bin-path" => "/path/to/cppblog -c /path/to/cppblog-config.txt", "socket" => "/tmp/socket-a", "max-procs" => 1, "check-local" => "disable" )), "/newpress/blog" => (( "bin-path" => "/path/to/cppblog -c /path/to/newpress-config.txt", "socket" => "/tmp/socket-b", "max-procs" => 1, "check-local" => "disable" )), "/wikipp" => (( "bin-path" => "/path/to/wikipp -c /path/to/wikipp-config.txt", "socket" => "/tmp/socket-c", "max-procs" => 1, "check-local" => "disable" )) ) --- On Mon, 5/10/10, Jesus Rivero <riv...@gm...> wrote: From: Jesus Rivero <riv...@gm...> Subject: [Cppcms-users] [lighttpd] How execute many applications To: cpp...@li... Date: Monday, May 10, 2010, 3:46 PM Greetings, I need execute many applications of ccpcms in a web server with lighttpd. How can execute many applications? Thanks, -- Jesús -----Inline Attachment Follows----- ------------------------------------------------------------------------------ -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Jesus R. <riv...@gm...> - 2010-05-10 12:46:26
|
Greetings, I need execute many applications of ccpcms in a web server with lighttpd. How can execute many applications? Thanks, -- Jesús |
From: Artyom <art...@ya...> - 2010-04-30 13:59:07
|
Hello, > > Few notes: > > > > 1st you need to send POST request in form > message=ssssss (meaning > > it expects "Form" behavior" > > > > Yes, I saw that. But what if I need just the content of the > post which > is not "Form" behavior. > For example, sending json object without "message" name for > it? > You can access post data directly using raw_post_data() member function of http::request(). std::pair<void *,size_t> post_data = request().raw_post_data(); And analyze this. ------------------- BTW Json: CppCMS 1.x.x supports JSON-RPC as well... You may find an example of usage in tests/jsonrpc_test.cpp Best, Artyom |
From: Stanimir M. <sta...@zo...> - 2010-04-30 13:42:02
|
On Fri, Apr 30, 2010 at 3:40 PM, Artyom <art...@ya...> wrote: > Hello, > >> Hi Artyom, >> >> I tried your chat example with dojo and it works. >> However, when I send plain text from dojo >> and not form post with form=some text i get "502 Bad >> Gateway" error. > > Ok, indeed there was an issue - I didn't written any response for POST. > Actually the response was empty. Fixed in hello_world.cpp in trunk. > > I had to notice an application that output completed (if I do not > write anything...) > > So just run svn update. > >> >> here is the post request: >> >> Host localhost:8080 >> User-Agent Mozilla/5.0 (X11; U; Linux >> i686; en-US; rv:1.9.2.3) >> Gecko/20100407 Ubuntu/9.10 (karmic) Firefox/3.6.3 >> Accept >> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >> Accept-Language en,bg;q=0.7,en-us;q=0.3 >> Accept-Encoding gzip,deflate >> Accept-Charset >> ISO-8859-1,utf-8;q=0.7,*;q=0.7 >> Keep-Alive 115 >> Connection keep-alive >> Content-Type >> application/x-www-form-urlencoded;charset=utf-8 >> Referer http://localhost:8080/hello_world/chat >> Content-Length 7 >> Cookie test=1270049271 >> >> here is the content "sssssss" >> > > Few notes: > > 1st you need to send POST request in form message=ssssss (meaning > it expects "Form" behavior" > Yes, I saw that. But what if I need just the content of the post which is not "Form" behavior. For example, sending json object without "message" name for it? > >> >> Also, sometimes when i click multiple times on my test >> cppcms >> application, I get "Segmentation Fault" and my cppcms >> application >> stops? > > Can you bring me the backtrace of segmentation fault? > > You can do it with GDB > > gdb your_app > > r > Crashes > > bt > I will do it after a while. > > >> >> Another problem is that I can't make the session work even >> from your >> hello_world example. It always refreshes the time? > > Do you have any session backend defined? > > Give me the content of "session" object of the configuration? > > At least default build of hello world - going to > > http://localhost:8080/hello/session > > Make sure you are using latest CppCMS version. > Also check if make test passes all tests, if not which one fail? > My mistake, it works. I somehow missed the file back end in the config. >> >> Greetings, >> Stanimir >> >> > > Best, > Artyom > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |