RE: Core dumps in Axis libraries
When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Is this valgrind report is when your log level increased or not ? If yes then can you try valgrind without increasing the log level. -Manjula. On Mon, 2008-03-10 at 12:39 +0530, Raghavendra SM wrote: When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Manjula, This was with out my logs enabled. Regards, ~raghav -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:58 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Is this valgrind report is when your log level increased or not ? If yes then can you try valgrind without increasing the log level. -Manjula. On Mon, 2008-03-10 at 12:39 +0530, Raghavendra SM wrote: When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Found it! ==22786== Process terminating with default action of signal 15 (SIGTERM) ==22786==at 0x403760E: accept (in /lib/tls/libpthread-2.3.6.so) ==22786==by 0x44C2CF2: axis2_http_svr_thread_run (http_svr_thread.c:128) ==22786==by 0x44C28D4: axis2_http_server_start (http_receiver.c:227) ==22786==by 0x44DA92E: axis2_transport_receiver_start (transport_receiver.c:41) ==22786==by 0x8084D3C: axis_init(int, char**) (http_server_main.cpp:155) ==22786==by 0x8059896: main (sps_server.h:159) Regards, Senaka Manjula, This was with out my logs enabled. Regards, ~raghav -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:58 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Is this valgrind report is when your log level increased or not ? If yes then can you try valgrind without increasing the log level. -Manjula. On Mon, 2008-03-10 at 12:39 +0530, Raghavendra SM wrote: When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Isn't that just reflecting that the process has been killed? I can't any programming error being detected in that. Please correct me if wrong. Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 1:02 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Found it! ==22786== Process terminating with default action of signal 15 (SIGTERM) ==22786==at 0x403760E: accept (in /lib/tls/libpthread-2.3.6.so) ==22786==by 0x44C2CF2: axis2_http_svr_thread_run (http_svr_thread.c:128) ==22786==by 0x44C28D4: axis2_http_server_start (http_receiver.c:227) ==22786==by 0x44DA92E: axis2_transport_receiver_start (transport_receiver.c:41) ==22786==by 0x8084D3C: axis_init(int, char**) (http_server_main.cpp:155) ==22786==by 0x8059896: main (sps_server.h:159) Regards, Senaka Manjula, This was with out my logs enabled. Regards, ~raghav -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:58 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Is this valgrind report is when your log level increased or not ? If yes then can you try valgrind without increasing the log level. -Manjula. On Mon, 2008-03-10 at 12:39 +0530, Raghavendra SM wrote: When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Core dumps in Axis libraries
I too think that it is not the place that it is crashing. We have to locate the place where it is corrupting memory. Samisa... Raghavendra SM wrote: Isn't that just reflecting that the process has been killed? I can't any programming error being detected in that. Please correct me if wrong. Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 1:02 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Found it! ==22786== Process terminating with default action of signal 15 (SIGTERM) ==22786==at 0x403760E: accept (in /lib/tls/libpthread-2.3.6.so) ==22786==by 0x44C2CF2: axis2_http_svr_thread_run (http_svr_thread.c:128) ==22786==by 0x44C28D4: axis2_http_server_start (http_receiver.c:227) ==22786==by 0x44DA92E: axis2_transport_receiver_start (transport_receiver.c:41) ==22786==by 0x8084D3C: axis_init(int, char**) (http_server_main.cpp:155) ==22786==by 0x8059896: main (sps_server.h:159) Regards, Senaka Manjula, This was with out my logs enabled. Regards, ~raghav -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:58 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Is this valgrind report is when your log level increased or not ? If yes then can you try valgrind without increasing the log level. -Manjula. On Mon, 2008-03-10 at 12:39 +0530, Raghavendra SM wrote: When I tried the Valgrind, it doesn't point to any obvious clues atleast. It doesn't show any definitely lost or indirectly lost blocks. Though, there are some still reachable and possibly lost blocks. Please find the attached valgrind report. Please let me know if the valgrind is revealing something here? Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 7:07 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Folks, I'm attaching the server log during the crash. Also, the first back-trace in the dump.log points to dump with guthilla=yes. The attached dump does not lead to a clue on what is going wrong. It looks to me as if there is some or the other memory corruption somewhere. I hope valgrind would lead to a clue. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samisa Abeysinghe Software Architect; WSO2 Inc. http://www.wso2.com/ - Oxygenating the Web Service Platform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
As expected, when I put a delay of about 50 milliseconds between the requests there is no dump. But we would still like to know the following, + Isn't Axis capable of handling such huge bombardment of requests (of the order of 1000's) one after another without any delay between the requests? Has anyone tried such client before? + Can we make out anything out of the valgrind report or the axis logs that were attached? Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 4:22 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Hi Raghav, Can you please try this with --enable-guthilla=yes, and send the dump.log, and also the appropriate log_files generated by the server/client. There also can be issues with your condition variable being used in multiple threads. It also seems that if you pause between your requests you might get this solved. According to what you say, when you increase the log_level, obviously you waste some time there which might be the solution rather. You can use the AXIS2_SLEEP() and AXIS2_USLEEP() inside Axis2/C to pause between requests. You can get an idea on how to use these functions by taking a look at the Axis2/C user_guide/client samples. Regards, Senaka Thanks, As suggested, I tried using axis2c-1.3.0 both with and without --enable-guthilla=yes. But I still see different dumps consistently. Please find the attached file with back-traces. Are you using the same service client instance from multiple threads? We have a axis thread pool with default number of threads and a set of our own threads(about 10, lets call them database threads). + On receiving a HTTP soap request, axis thread invokes the appropriate function that is bound to our logic. + Now, the axis thread requests a database thread to perform the appropriate query and waits on a condition variable. + our db thread performs the necessary query and signals on that condition variable so that axis thread shall take the control over. + axis thread will create the om output and dispatch as usual. My doubts: + does this design has any apparent drawback when there is a flurry of back-to-back soap requests? + Is there a need to increase the axis thread pool size? If yes, how to do it? + As told before, the dump is seen during a particular scenario only. i.e: while trying to add a list of already existing users to my database. For each user there is a SOAP request generated and the requests are sequential, i.e the second request is sent only after the response for previous request is received. + if I increase the log level of my own module that uses axis2c, there is no dump. On increasing the log level, my module writes quite a bit of information to my log file. Your help is appreciated. Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:25 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Manjula, But thats not a viable option for us. We would still want to continue using axis2C-1.0 for some more time. Are these dumps well known? No. Are you using the same service client instance from multiple threads? Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Core dumps in Axis libraries
Raghavendra SM wrote: As expected, when I put a delay of about 50 milliseconds between the requests there is no dump. But we would still like to know the following, + Isn't Axis capable of handling such huge bombardment of requests (of the order of 1000's) one after another without any delay between the requests? Has anyone tried such client before? Yes it is supposed to. We have done performance testing that proved that Axis2/C can serve more than 300 rps. + Can we make out anything out of the valgrind report or the axis logs that were attached? Unfortunately not. When valgrind runs, it makes the system slow, that prevents the system crashing in situations like that you are experiencing. To solve this kind of a problem, it is a must that you provide us with some sample code that can be used to reproduce the problem. Without having a way to re-produce the situation, there is no way to fix this problem - it could well be a problem in Axis2/C as well as it could also be in the code that you use. Samisa... Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 4:22 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Hi Raghav, Can you please try this with --enable-guthilla=yes, and send the dump.log, and also the appropriate log_files generated by the server/client. There also can be issues with your condition variable being used in multiple threads. It also seems that if you pause between your requests you might get this solved. According to what you say, when you increase the log_level, obviously you waste some time there which might be the solution rather. You can use the AXIS2_SLEEP() and AXIS2_USLEEP() inside Axis2/C to pause between requests. You can get an idea on how to use these functions by taking a look at the Axis2/C user_guide/client samples. Regards, Senaka Thanks, As suggested, I tried using axis2c-1.3.0 both with and without --enable-guthilla=yes. But I still see different dumps consistently. Please find the attached file with back-traces. Are you using the same service client instance from multiple threads? We have a axis thread pool with default number of threads and a set of our own threads(about 10, lets call them database threads). + On receiving a HTTP soap request, axis thread invokes the appropriate function that is bound to our logic. + Now, the axis thread requests a database thread to perform the appropriate query and waits on a condition variable. + our db thread performs the necessary query and signals on that condition variable so that axis thread shall take the control over. + axis thread will create the om output and dispatch as usual. My doubts: + does this design has any apparent drawback when there is a flurry of back-to-back soap requests? + Is there a need to increase the axis thread pool size? If yes, how to do it? + As told before, the dump is seen during a particular scenario only. i.e: while trying to add a list of already existing users to my database. For each user there is a SOAP request generated and the requests are sequential, i.e the second request is sent only after the response for previous request is received. + if I increase the log level of my own module that uses axis2c, there is no dump. On increasing the log level, my module writes quite a bit of information to my log file. Your help is appreciated. Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:25 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Manjula, But thats not a viable option for us. We would still want to continue using axis2C-1.0 for some more time. Are these dumps well known? No. Are you using the same service client instance from multiple threads? Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samisa Abeysinghe Software Architect; WSO2 Inc. http://www.wso2.com/ - Oxygenating the Web Service Platform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Hi Raghav, Are you connecting to a fast CGI server? If so, I think that [1] would help. [1] http://search.cpan.org/src/JURACH/FCGI-ProcManager-0.17/ProcManager.pm Regards, Senaka As expected, when I put a delay of about 50 milliseconds between the requests there is no dump. But we would still like to know the following, + Isn't Axis capable of handling such huge bombardment of requests (of the order of 1000's) one after another without any delay between the requests? Has anyone tried such client before? + Can we make out anything out of the valgrind report or the axis logs that were attached? Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 4:22 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Hi Raghav, Can you please try this with --enable-guthilla=yes, and send the dump.log, and also the appropriate log_files generated by the server/client. There also can be issues with your condition variable being used in multiple threads. It also seems that if you pause between your requests you might get this solved. According to what you say, when you increase the log_level, obviously you waste some time there which might be the solution rather. You can use the AXIS2_SLEEP() and AXIS2_USLEEP() inside Axis2/C to pause between requests. You can get an idea on how to use these functions by taking a look at the Axis2/C user_guide/client samples. Regards, Senaka Thanks, As suggested, I tried using axis2c-1.3.0 both with and without --enable-guthilla=yes. But I still see different dumps consistently. Please find the attached file with back-traces. Are you using the same service client instance from multiple threads? We have a axis thread pool with default number of threads and a set of our own threads(about 10, lets call them database threads). + On receiving a HTTP soap request, axis thread invokes the appropriate function that is bound to our logic. + Now, the axis thread requests a database thread to perform the appropriate query and waits on a condition variable. + our db thread performs the necessary query and signals on that condition variable so that axis thread shall take the control over. + axis thread will create the om output and dispatch as usual. My doubts: + does this design has any apparent drawback when there is a flurry of back-to-back soap requests? + Is there a need to increase the axis thread pool size? If yes, how to do it? + As told before, the dump is seen during a particular scenario only. i.e: while trying to add a list of already existing users to my database. For each user there is a SOAP request generated and the requests are sequential, i.e the second request is sent only after the response for previous request is received. + if I increase the log level of my own module that uses axis2c, there is no dump. On increasing the log level, my module writes quite a bit of information to my log file. Your help is appreciated. Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:25 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Manjula, But thats not a viable option for us. We would still want to continue using axis2C-1.0 for some more time. Are these dumps well known? No. Are you using the same service client instance from multiple threads? Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Core dumps in Axis libraries
Hi again Raghav, Forgot to mention. This is of course if you use mod_axis2. If not I don't think this might affect you rather. Anyway the FastCGI issue may not be relevant at all. I came across that while googling for what could cause a SIGTERM in accept(2). Also, is http_server_main.cpp something that you've written on your own? If so, the issue might be in there sometimes. Regards, Senaka Hi Raghav, Are you connecting to a fast CGI server? If so, I think that [1] would help. [1] http://search.cpan.org/src/JURACH/FCGI-ProcManager-0.17/ProcManager.pm Regards, Senaka As expected, when I put a delay of about 50 milliseconds between the requests there is no dump. But we would still like to know the following, + Isn't Axis capable of handling such huge bombardment of requests (of the order of 1000's) one after another without any delay between the requests? Has anyone tried such client before? + Can we make out anything out of the valgrind report or the axis logs that were attached? Regards, ~raghav -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 4:22 PM To: Apache AXIS C User List Subject: RE: Core dumps in Axis libraries Hi Raghav, Can you please try this with --enable-guthilla=yes, and send the dump.log, and also the appropriate log_files generated by the server/client. There also can be issues with your condition variable being used in multiple threads. It also seems that if you pause between your requests you might get this solved. According to what you say, when you increase the log_level, obviously you waste some time there which might be the solution rather. You can use the AXIS2_SLEEP() and AXIS2_USLEEP() inside Axis2/C to pause between requests. You can get an idea on how to use these functions by taking a look at the Axis2/C user_guide/client samples. Regards, Senaka Thanks, As suggested, I tried using axis2c-1.3.0 both with and without --enable-guthilla=yes. But I still see different dumps consistently. Please find the attached file with back-traces. Are you using the same service client instance from multiple threads? We have a axis thread pool with default number of threads and a set of our own threads(about 10, lets call them database threads). + On receiving a HTTP soap request, axis thread invokes the appropriate function that is bound to our logic. + Now, the axis thread requests a database thread to perform the appropriate query and waits on a condition variable. + our db thread performs the necessary query and signals on that condition variable so that axis thread shall take the control over. + axis thread will create the om output and dispatch as usual. My doubts: + does this design has any apparent drawback when there is a flurry of back-to-back soap requests? + Is there a need to increase the axis thread pool size? If yes, how to do it? + As told before, the dump is seen during a particular scenario only. i.e: while trying to add a list of already existing users to my database. For each user there is a SOAP request generated and the requests are sequential, i.e the second request is sent only after the response for previous request is received. + if I increase the log level of my own module that uses axis2c, there is no dump. On increasing the log level, my module writes quite a bit of information to my log file. Your help is appreciated. Thanks Regards, ~raghav -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:25 PM To: Apache AXIS C User List Subject: Re: Core dumps in Axis libraries Raghavendra SM wrote: Thanks Manjula, But thats not a viable option for us. We would still want to continue using axis2C-1.0 for some more time. Are these dumps well known? No. Are you using the same service client instance from multiple threads? Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Service deployed
Hi Senaka, samisa, I cannot run the WSDL2C.sh successfully... I downloaded all the jar files and put them in to $AXIS2C_HOME/lib folder. My WSDL2C.sh is like: #!/bin/sh #export AXIS2_HOME=/home/axis2java for f in $AXIS2C_HOME/lib/*.jar do AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f done export AXIS2_CLASSPATH #echo the classpath $AXIS2_CLASSPATH java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* It is giving me this error: Exception in thread main java.lang.NoSuchMethodError: method java.io.File.toURI was not found. at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j ava.lang.String) (Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin e(org.apache.axis2.util.CommandLineOptionParser) (Unknown Source) at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) (Unknown Source) I believe there is some library issue. Can you please guide me how to run this. I cannot find any documentation of WSDL to C code conversion, please help. Thanks Regards, Rahil Ali -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 6:55 PM To: axis-c-user@ws.apache.org Subject: RE: Problem with Service deployed Hi Rahil, According to the present implementation, you need Axis2/Java to get the codegen tool running. This can be found at [1]. And, you can read more on WSDL2C in [2]. [1] http://people.apache.org/dist/axis2/nightly/ [2] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c Regards, Senaka Hello Samisa and Senaka, That sounds simple. Please help me getting started here... I will use .net to generate a simple WSDL. I will put that wsdl into $AXIS2C_HOME/services/MYSERV folder and run WSDL2C.sh script. Right? Now when I am doing this I am having a problem: Exception in thread main java.lang.NoClassDefFoundError: org.apache.axis2.wsdl.WSDL2C at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0) at __gcj_personality_v0 (/usr/local/axis2c/services/Calculator/java.version=1.4.2) at __libc_start_main (/lib/tls/libc-2.3.4.so) at _Jv_RegisterClasses (/usr/local/axis2c/services/Calculator/java.version=1.4.2) I am still not sure how WSDL2C.sh is working. I mean the script is looking for the *.jar files in $AXIS2C_HOME/lib folder. I modified that and put *.so but still no success. Can you please explain me how WSDL2C.sh works.. or gave me any article which help me implementing a C-Webservice using AXIS2/C.. AXIS2/C doesn't have that much help on Internet... Sorry for such Noob questions. Thanks Regards, Rahil Ali -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 5:33 PM To: Apache AXIS C User List Subject: Re: Problem with Service deployed If you want to interop with ease with .NET, the best is that you start with a WSDL, use that to code gen for service and statically server the WSDL form service. In short, you have to use contract first mode. What you are trying is the code first model, that is hard to get it working with interop mode. Samisa... Rahil Ali wrote: Hi Senaka Another questions: I am using the Calculator sample comes with AXIS2/C. the signature of the functions is : axiom_node_t *axis2_calc_add( const axutil_env_t * env, axiom_node_t * node); axiom_node_t *axis2_calc_sub( const axutil_env_t * env, axiom_node_t * node); axiom_node_t *axis2_calc_mul( const axutil_env_t * env, axiom_node_t * node); axiom_node_t *axis2_calc_div( const axutil_env_t * env, axiom_node_t * node); How can I use these in .Net to generate WSDL or even if I am writing on myself what datatypes should I be entering in the WSDL? Do I have to write the basic functions like (calc_init, calc_invoke,.. .etc) in the WSDL file. I cannot find any test folder under my axis2c installation folder. Thanks for your prompt response. Regards, Rahil Ali -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 1:00 PM To: axis-c-user@ws.apache.org Subject: RE: Problem with Service deployed Hi Rahil, Yes, your service is ready to be used from a .NET client. But, you don't get a WSDL generated. This is because you can't generate wsdl files from C code by simply using the Axis2/C distribution. I'm however not aware of any 3rd party tools. We do have WSDL to C code generation
problem with deserialize response using WSDL2C generated code
Hello group, I am getting an access violation on a call to axiom_element_get_qname() This call results from a call to Deserialize in WSDL2C generated code while processing the following document: ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body BrokerInformationResponse xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xmlns= http://www.axa.ca/BrokerInformationService/1.0/BrokerInformationResponse; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; TrackingNumberUNKNOWN/TrackingNumber Status Status xmlns=ERROR/Status Detail xmlns= CodeERROR/Code DescriptionCould not unbind Request from XML!/Description /Detail /Status /BrokerInformationResponse /soapenv:Body /soapenv:Envelope While stepping through the code, I see the string UNKNOWN extracted from the TrackingNumber node. The access violation happens when axiom_element_get_qname() is called during processing of the Status node that follows. The call stack shows: axiom_element_get_qname() (called on first Status node) axutil_string_get_buffer(om_namespace-prefix, env); ** here om_namespace-prefix == 0x005 axutil_string_get_buffer() ** access violation atreturn string-buffer;because string == om_namespace-prefix I am using the WSDL2C from the nightly distribution date March 10th and the latest Axis2 revision from SVN. Any thoughts on how to resolve this problem? Carl
Re: problem with deserialize response using WSDL2C generated code
Hi Carl, I 'm not sure exactly what the reason you got the error. But it seems happening when accessing the qname of a text node rather than an element node. But currently codegen is mostly fixed to test whether it is a text node or element before accessing element properties. But there may be unattended paths. Can you send the relevant c file (better with WSDL), so we can have a look at it and fix the issue. If it is the case, this is a bug in codegen deserialize code, but can you recheck your xml too, because it seems codegen expecst an element rather than text in place of 'UNKNOWN' text. Thanks Dimuthu On Mon, Mar 10, 2008 at 10:19 PM, Carl Lefrançois [EMAIL PROTECTED] wrote: Hello group, I am getting an access violation on a call to axiom_element_get_qname() This call results from a call to Deserialize in WSDL2C generated code while processing the following document: ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body BrokerInformationResponse xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://www.axa.ca/BrokerInformationService/1.0/BrokerInformationResponse; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; TrackingNumberUNKNOWN/TrackingNumber Status Status xmlns=ERROR/Status Detail xmlns= CodeERROR/Code DescriptionCould not unbind Request from XML!/Description /Detail /Status /BrokerInformationResponse /soapenv:Body /soapenv:Envelope While stepping through the code, I see the string UNKNOWN extracted from the TrackingNumber node. The access violation happens when axiom_element_get_qname() is called during processing of the Status node that follows. The call stack shows: axiom_element_get_qname() (called on first Status node) axutil_string_get_buffer(om_namespace-prefix, env); ** here om_namespace-prefix == 0x005 axutil_string_get_buffer() ** access violation atreturn string-buffer;because string == om_namespace-prefix I am using the WSDL2C from the nightly distribution date March 10th and the latest Axis2 revision from SVN. Any thoughts on how to resolve this problem? Carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2/C for Apapche 2.2.8
Hi Fernando, I have to disappoint you, the mod_axis2.so still does not wotk for me. The error message is this: The Apache service named reported the following error: httpd.exe: Syntax error on line 484 of C:/Apache2.2.8/conf/httpd.conf: Cannot load C:/Apache2.2.8/modules/mod_axis2.so into server: Could not find the giben method Could you send me your so file? Senaka Fernando írta: Hi Laszlo, AFAIK, mod_axis2 works with Apache 2.2.8. You can use two approaches. Method 1: Please confirm to whether you can find (using search in Windows) the ***mod_axis2.dll*** some where inside your ides/VC folder. The location at which it is built may vary according to how you build the solution/project and settings that you specify. Please note that this might be built somewhere else from other Axis2/C libs. Once you find it, please copy that .dll to C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll. And make sure that if you have written any path that has spaces in between, add quotation marks around it. Method 2: Use the nmake build script. If you have VS 2005 installed you don't require any additional tools. Locate the configure.in found inside build/win32, and edit it. Open a new command window and run vcvars32.bat. This can be found in C:\Program Files\Microsoft Visual Studio 8\VC\bin or any other place at which you installed VS2005. Then inside the same command window, change directory to the place where you downloaded Axis2/C. And goto the folder build\win32. Run the build.bat and once you've done, run nmake axis2_apache_module. After that, you'll find a new sub folder named deploy inside the build folder. Set this as your AXIS2C_HOME and add AXIS2C_HOME\lib to your path variable. After that you can copy the ***mod_axis2.dll*** dll that is found inside AXIS2C_HOME\lib. Regards, Senaka Regards, Senaka Hi Laszlo, Did you follow the steps as mentioned in [1] ? [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2 -Manjula. On Sat, 2008-02-16 at 21:38 +0100, Graf László wrote: Hi all, I built sucesfully the Axis2/C module on Windows XP using VS 2005. But the testing it om Apache 2.2.8 failes with this message: Syntax error on line 490 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll into server: the module can not found (translated from hungarian). I tried to copy Axis2/C dlls to Apache bin folder but no success. Did some solve this kind of problem? Laszlo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2C Generates Files with Compilation Errors
I've just downloaded the Axis2 version 1.3 and I cannot see any class or module that can generate C code from a wsdl file, even though the axis2c documentation specifies that there is such a tool written in Java and even points me to the Web location where I can find the the Java binaries... Can someone tell me where is the wsdl2c class/exe that generates a web service in C from a wsdl file? Also, the mod_axis2.dll I downloaded with axis2c (or the one I am building myself) is crushing Apache. Does anybody else see this problem? Thank you, Corneliu sreenivasulu guduru wrote: Hi I am using the attached WSDL to generate Server Stubs using the command wsdl.bat -uri so1.wsdl -ss -sd -d adb –u I used the latest Apache Axis2 SNAPSHOT build (23-01-2008). The process generates 111 C and Header files. I have them added to my VC++ project that has includes of axis2c-bin-1.2.0-win32 version. And I have the Preprocessor directive AXIS2_DECLARE_EXPORT being set for the VC++ project. There were many compiler errors such as fatal error C1083: Cannot open include file: 'adb_axis2_char_t*.h': Invalid argument:. The complete report of compilation errors is attached in the mail in the file “BuildLog.htm”. Could you please suggest me workaround for these compilation errors? Thank You Regards Sreenivasulu Guduru _ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008 Build Log nbsp; nbsp; --- Build started: Project: ForteWebServices, Configuration: Debug|Win32 --- Command Lines nbsp; nbsp; Creating temporary file c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\Debug\RSP15.rsp with contents [ /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D AXIS2_DECLARE_EXPORT /D _WINDLL /D _MBCS /Gm /EHsc /RTC1 /MTd /FoDebug/ /FdDebug/vc70.pdb /W3 /c /Wp64 /ZI /TC /I C:\Axis\axis2C\axis2c-bin-1.2.0-win32\include .\axis2_svc_skel_DataExtractServiceService.c .\axis2_skel_DataExtractServiceService.c .\adb_unsignedShort.c .\adb_unsignedShort0.c .\adb_unsignedLong.c .\adb_unsignedInt.c .\adb_unsignedByte.c .\adb_unsignedByte2.c .\adb_token.c .\adb_time.c .\adb_Struct.c .\adb_string.c .\adb_QName.c .\adb_positiveInteger.c .\adb_positiveInteger3.c .\adb_NOTATION.c .\adb_normalizedString.c .\adb_nonPositiveInteger.c .\adb_nonNegativeInteger.c .\adb_NMTOKENS.c .\adb_NMTOKENS1.c .\adb_NMTOKEN.c .\adb_negativeInteger.c .\adb_NCName.c .\adb_Name.c .\adb_long.c .\adb_language.c .\adb_integer.c .\adb_int.c .\adb_IDREFS.c .\adb_IDREF.c .\adb_ID.c .\adb_hexBinary.c .\adb_gYearMonth.c .\adb_gYear.c .\adb_gMonthDay.c .\adb_gMonth.c .\adb_GetViewListResponse.c .\adb_GetViewList.c .\adb_gDay.c .\adb_ENTITY.c .\adb_ENTITIES.c .\adb_duration.c .\adb_decimal.c .\adb_dateTime.c .\adb_date.c .\adb_byte.c .\adb_boolean.c .\adb_base64Binary.c .\adb_ArrayOfString.c .\adb_Array.c .\adb_anyURI.c .\adb_anyType.c .\adb__short.c .\adb__float.c .\adb__double.c ] Creating command line cl.exe @c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\Debug\RSP15.rsp /nologo Output Window nbsp; nbsp; Compiling... axis2_svc_skel_DataExtractServiceService.c axis2_skel_DataExtractServiceService.c adb_unsignedShort.c adb_unsignedShort0.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedShort0.c(289) : warning C4101: 'text_value_1' : unreferenced local variable c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedShort0.c(287) : warning C4101: 'ns_already_defined' : unreferenced local variable adb_unsignedLong.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedLong.h(19) : fatal error C1083: Cannot open include file: 'adb_unsigned long.h': No such file or directory adb_unsignedInt.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedInt.h(19) : fatal error C1083: Cannot open include file: 'adb_unsigned int.h': No such file or directory adb_unsignedByte.c adb_unsignedByte2.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedByte2.c(289) : warning C4101: 'text_value_1' : unreferenced local variable c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedByte2.c(287) : warning C4101: 'ns_already_defined' : unreferenced local variable adb_token.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_token.h(19) : fatal error C1083: Cannot open include file: 'adb_axis2_char_t*.h': Invalid
Re: WSDL2C Generates Files with Compilation Errors
I've just downloaded the Axis2 version 1.3 and I cannot see any class or module that can generate C code from a wsdl file, even though the axis2c documentation specifies that there is such a tool written in Java and even points me to the Web location where I can find the the Java binaries... Can someone tell me where is the wsdl2c class/exe that generates a web service in C from a wsdl file? The required shell scripts are found inside Axis2/C itself, and not in Axis2/Java. You'll find the tool, if using source distribution in tools/codegen/javatool. Or if using binary IIRC you should see it in the bin inside your AXIS2C_HOME. According to your platform you'll either see the WSDL2C.bat or th WSDL2C.sh file. Also, the mod_axis2.dll I downloaded with axis2c (or the one I am building myself) is crushing Apache. Does anybody else see this problem? It shouldn't cause Apache to crash. If it does, it should be due to a small mistake when setting it up. Please read through the Axis2/C manual on how to deploy and setup mod_axis2. If you get it setup according to the manual, it should work without any errors. Regards, Senaka Thank you, Corneliu sreenivasulu guduru wrote: Hi I am using the attached WSDL to generate Server Stubs using the command wsdl.bat -uri so1.wsdl -ss -sd -d adb âu I used the latest Apache Axis2 SNAPSHOT build (23-01-2008). The process generates 111 C and Header files. I have them added to my VC++ project that has includes of axis2c-bin-1.2.0-win32 version. And I have the Preprocessor directive AXIS2_DECLARE_EXPORT being set for the VC++ project. There were many compiler errors such as fatal error C1083: Cannot open include file: 'adb_axis2_char_t*.h': Invalid argument:. The complete report of compilation errors is attached in the mail in the file âBuildLog.htmâ. Could you please suggest me workaround for these compilation errors? Thank You Regards Sreenivasulu Guduru _ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008 Build Log nbsp; nbsp; --- Build started: Project: ForteWebServices, Configuration: Debug|Win32 --- Command Lines nbsp; nbsp; Creating temporary file c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\Debug\RSP15.rsp with contents [ /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D AXIS2_DECLARE_EXPORT /D _WINDLL /D _MBCS /Gm /EHsc /RTC1 /MTd /FoDebug/ /FdDebug/vc70.pdb /W3 /c /Wp64 /ZI /TC /I C:\Axis\axis2C\axis2c-bin-1.2.0-win32\include .\axis2_svc_skel_DataExtractServiceService.c .\axis2_skel_DataExtractServiceService.c .\adb_unsignedShort.c .\adb_unsignedShort0.c .\adb_unsignedLong.c .\adb_unsignedInt.c .\adb_unsignedByte.c .\adb_unsignedByte2.c .\adb_token.c .\adb_time.c .\adb_Struct.c .\adb_string.c .\adb_QName.c .\adb_positiveInteger.c .\adb_positiveInteger3.c .\adb_NOTATION.c .\adb_normalizedString.c .\adb_nonPositiveInteger.c .\adb_nonNegativeInteger.c .\adb_NMTOKENS.c .\adb_NMTOKENS1.c .\adb_NMTOKEN.c .\adb_negativeInteger.c .\adb_NCName.c .\adb_Name.c .\adb_long.c .\adb_language.c .\adb_integer.c .\adb_int.c .\adb_IDREFS.c .\adb_IDREF.c .\adb_ID.c .\adb_hexBinary.c .\adb_gYearMonth.c .\adb_gYear.c .\adb_gMonthDay.c .\adb_gMonth.c .\adb_GetViewListResponse.c .\adb_GetViewList.c .\adb_gDay.c .\adb_ENTITY.c .\adb_ENTITIES.c .\adb_duration.c .\adb_decimal.c .\adb_dateTime.c .\adb_date.c .\adb_byte.c .\adb_boolean.c .\adb_base64Binary.c .\adb_ArrayOfString.c .\adb_Array.c .\adb_anyURI.c .\adb_anyType.c .\adb__short.c .\adb__float.c .\adb__double.c ] Creating command line cl.exe @c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\Debug\RSP15.rsp /nologo Output Window nbsp; nbsp; Compiling... axis2_svc_skel_DataExtractServiceService.c axis2_skel_DataExtractServiceService.c adb_unsignedShort.c adb_unsignedShort0.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedShort0.c(289) : warning C4101: 'text_value_1' : unreferenced local variable c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedShort0.c(287) : warning C4101: 'ns_already_defined' : unreferenced local variable adb_unsignedLong.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedLong.h(19) : fatal error C1083: Cannot open include file: 'adb_unsigned long.h': No such file or directory adb_unsignedInt.c c:\Documents and Settings\sguduru\My Documents\Visual Studio Projects\Axis2Test1\ForteWebServices\adb_unsignedInt.h(19) : fatal error C1083: Cannot open include file: 'adb_unsigned int.h': No such file or directory adb_unsignedByte.c
Re: Axis2/C for Apapche 2.2.8
Hi Laszlo, Will send you a Apache2.2.8 compatible mod_axis2.so built in Windows XP SP2, using VS2005. In the mean time, would it be possible for you to, 1. Attach your httpd.conf file, 2. Attach your apache error log, To this mail thread and, 3. Let me know whether your folder path contains non-ASCII characters. Regards, Senaka Hi Fernando, I have to disappoint you, the mod_axis2.so still does not wotk for me. The error message is this: The Apache service named reported the following error: httpd.exe: Syntax error on line 484 of C:/Apache2.2.8/conf/httpd.conf: Cannot load C:/Apache2.2.8/modules/mod_axis2.so into server: Could not find the giben method Could you send me your so file? Senaka Fernando írta: Hi Laszlo, AFAIK, mod_axis2 works with Apache 2.2.8. You can use two approaches. Method 1: Please confirm to whether you can find (using search in Windows) the ***mod_axis2.dll*** some where inside your ides/VC folder. The location at which it is built may vary according to how you build the solution/project and settings that you specify. Please note that this might be built somewhere else from other Axis2/C libs. Once you find it, please copy that .dll to C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll. And make sure that if you have written any path that has spaces in between, add quotation marks around it. Method 2: Use the nmake build script. If you have VS 2005 installed you don't require any additional tools. Locate the configure.in found inside build/win32, and edit it. Open a new command window and run vcvars32.bat. This can be found in C:\Program Files\Microsoft Visual Studio 8\VC\bin or any other place at which you installed VS2005. Then inside the same command window, change directory to the place where you downloaded Axis2/C. And goto the folder build\win32. Run the build.bat and once you've done, run nmake axis2_apache_module. After that, you'll find a new sub folder named deploy inside the build folder. Set this as your AXIS2C_HOME and add AXIS2C_HOME\lib to your path variable. After that you can copy the ***mod_axis2.dll*** dll that is found inside AXIS2C_HOME\lib. Regards, Senaka Regards, Senaka Hi Laszlo, Did you follow the steps as mentioned in [1] ? [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2 -Manjula. On Sat, 2008-02-16 at 21:38 +0100, Graf László wrote: Hi all, I built sucesfully the Axis2/C module on Windows XP using VS 2005. But the testing it om Apache 2.2.8 failes with this message: Syntax error on line 490 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll into server: the module can not found (translated from hungarian). I tried to copy Axis2/C dlls to Apache bin folder but no success. Did some solve this kind of problem? Laszlo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2/C for Apapche 2.2.8
Hi Graf, According to the error message You have given below, apache complains about mod_axis2.so file instead mod_axis2.dll. Did you rename the dll in to .so and copied in to apache modules folder? Just wondering whether you missed that.. BTW you don't need to rename it to .so , you can just copy the mod_axis2.dll into your apache module folder and set the path to that dll file in your httpd.conf file. regards, Dushshantha On Tue, Mar 11, 2008 at 2:13 AM, Graf László [EMAIL PROTECTED] wrote: Hi Fernando, I have to disappoint you, the mod_axis2.so still does not wotk for me. The error message is this: The Apache service named reported the following error: httpd.exe: Syntax error on line 484 of C:/Apache2.2.8/conf/httpd.conf: Cannot load C:/Apache2.2.8/modules/mod_axis2.so into server: Could not find the giben method Could you send me your so file? Senaka Fernando írta: Hi Laszlo, AFAIK, mod_axis2 works with Apache 2.2.8. You can use two approaches. Method 1: Please confirm to whether you can find (using search in Windows) the ***mod_axis2.dll*** some where inside your ides/VC folder. The location at which it is built may vary according to how you build the solution/project and settings that you specify. Please note that this might be built somewhere else from other Axis2/C libs. Once you find it, please copy that .dll to C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll. And make sure that if you have written any path that has spaces in between, add quotation marks around it. Method 2: Use the nmake build script. If you have VS 2005 installed you don't require any additional tools. Locate the configure.in found inside build/win32, and edit it. Open a new command window and run vcvars32.bat. This can be found in C:\Program Files\Microsoft Visual Studio 8\VC\bin or any other place at which you installed VS2005. Then inside the same command window, change directory to the place where you downloaded Axis2/C. And goto the folder build\win32. Run the build.bat and once you've done, run nmake axis2_apache_module. After that, you'll find a new sub folder named deploy inside the build folder. Set this as your AXIS2C_HOME and add AXIS2C_HOME\lib to your path variable. After that you can copy the ***mod_axis2.dll*** dll that is found inside AXIS2C_HOME\lib. Regards, Senaka Regards, Senaka Hi Laszlo, Did you follow the steps as mentioned in [1] ? [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2 -Manjula. On Sat, 2008-02-16 at 21:38 +0100, Graf László wrote: Hi all, I built sucesfully the Axis2/C module on Windows XP using VS 2005. But the testing it om Apache 2.2.8 failes with this message: Syntax error on line 490 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_axis2.dll into server: the module can not found (translated from hungarian). I tried to copy Axis2/C dlls to Apache bin folder but no success. Did some solve this kind of problem? Laszlo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SOAPHeader
Hi Ruchith, Thank you very much for your help. I used the new jar and I included the source code too but I'm having the same problem. Is it necessary to change something in my client side? Thanks, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: I believe there will be another release of Axiom close to the release of Axis2... maybe you will be able to try the latest axiom-dom-SNAPSHOT.jar with your project. Please try the jar file available here : http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar Thanks, Ruchith On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, Thank you very much. But how could I use this class in my project? Are you going to publish a new release of the axiom api? Regards, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: Hi Nuria, This is a bug in DOOM, the AXIOM DOM implementation. I just fixed this and checked it in. [1] Thanks, Ruchith 1. http://svn.apache.org/viewvc?rev=634561view=rev On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, I can't add information in SOAPHeader when I engage rampart and addressing module. My header is the following: soapenv:Header wsse:Security xmlns:wsse= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd soapenv:mustUnderstand=1 wsu:Timestamp xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd wsu:Id=Timestamp-32653965 wsu:Created2008-03-06T11:37:41.497Z/wsu:Created wsu:Expires2008-03-06T11:42:41.497Z/wsu:Expires /wsu:Timestamp wsse:UsernameToken xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd wsu:Id=UsernameToken-11737724 wsse:Usernamealice/wsse:Username wsse:Password Type= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText bobPW/wsse:Password /wsse:UsernameToken /wsse:Security content Attachment idAttachFile=$FILE{FileTestA.txt} nameAttachFile=FileTestA.txt/ Attachment idAttachFile=$FILE{FileTestB.txt} nameAttachFile=FileTestA.txt/ /content wsa:Tohttp://localhost:8081/axis2/services/SWASampleService /wsa:To wsa:MessageIDurn:uuid:E23726932EDEB77EB81204803460112/wsa:MessageID wsa:Actionprocess/wsa:Action /soapenv:Header I receive the following exception in server side: java.lang.NullPointerException at org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR I(SOAPHeaderImpl.java:244) at org.apache.rampart.RampartEngine.process(RampartEngine.java:96) at org.apache.rampart.handler.RampartReceiver.invoke( RampartReceiver.jav a:85) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java :1 21) at javax.servlet.http.HttpServlet.service(HttpServlet.java :709) at javax.servlet.http.HttpServlet.service(HttpServlet.java :802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Appl icationFilterChain.java:237) I don't know if it is possible and I would need to know if there is a way to do it. If I engage only addressing module this works. Thanks, Nuria -- http://blog.ruchith.org http://wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://blog.ruchith.org http://wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AXIS2 1.3 Response Problem
Hi, I am beginning to delve into axis web services. Planning on using ( WSAD or Eclipse for development) Could you please share one of the practical services that any of you have developed ( that includes some kind of database access). What IDE have you used? Do you use ant script package into .aar archive? One of the questions I have is can we invoke session ejbs from axis web service? In that case do we need to package the whole thing as ear or aar for deployment. If axis recognises only aar archive as services. will it recognise the ear , if the services are in a ear Any help would be greatly appreciated. ( I am reading the axis user's guide on apache site) Please suggest some reading material specific to using axis web services. thanks Laxma On Mon, Mar 10, 2008 at 1:58 AM, saroj samal [EMAIL PROTECTED] wrote: Dear Michele, I have developed 6 services having different EPR. Each service has one operation. I have deployed same services with a single sing application with AXIS2 1.3. My web server is Sun One Web Server 6.1. (no https port) JDK version is 1.6. According to our client feedback the response of all service are taking 30 to 40 secs after certain period or certain no of hits. After getting complain i am restarting the web server. It solves the problem. After that the response time is 2 to 6 sec only. We are getting 200 request per a day for all services. I am not sure here it is a problem of web server or any configuration required for AXIS2. if any thing more you want, please clarify me. Regards Saroj --- Michele Mazzucco [EMAIL PROTECTED] wrote: On 7 Mar 2008, at 12:29, saroj samal wrote: Pelase suggest me. Please provide more details. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SOAPHeader
Can you please try using this [1] jar ... instead of the one I sent earlier... My guess is that the earlier jar file was generated before that fix went in. Thanks, Ruchith 1. http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080310.022829-66.jar On Mon, Mar 10, 2008 at 4:00 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi Ruchith, Thank you very much for your help. I used the new jar and I included the source code too but I'm having the same problem. Is it necessary to change something in my client side? Thanks, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: I believe there will be another release of Axiom close to the release of Axis2... maybe you will be able to try the latest axiom-dom-SNAPSHOT.jar with your project. Please try the jar file available here : http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar Thanks, Ruchith On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, Thank you very much. But how could I use this class in my project? Are you going to publish a new release of the axiom api? Regards, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: Hi Nuria, This is a bug in DOOM, the AXIOM DOM implementation. I just fixed this and checked it in. [1] Thanks, Ruchith 1. http://svn.apache.org/viewvc?rev=634561view=rev On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, I can't add information in SOAPHeader when I engage rampart and addressing module. My header is the following: soapenv:Header wsse:Security xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd; soapenv:mustUnderstand=1 wsu:Timestamp xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=Timestamp-32653965 wsu:Created2008-03-06T11:37:41.497Z/wsu:Created wsu:Expires2008-03-06T11:42:41.497Z/wsu:Expires /wsu:Timestamp wsse:UsernameToken xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=UsernameToken-11737724 wsse:Usernamealice/wsse:Username wsse:Password Type=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText;bobPW/wsse:Password /wsse:UsernameToken /wsse:Security content Attachment idAttachFile=$FILE{FileTestA.txt} nameAttachFile=FileTestA.txt/ Attachment idAttachFile=$FILE{FileTestB.txt} nameAttachFile=FileTestA.txt/ /content wsa:Tohttp://localhost:8081/axis2/services/SWASampleService/wsa:To wsa:MessageIDurn:uuid:E23726932EDEB77EB81204803460112/wsa:MessageID wsa:Actionprocess/wsa:Action /soapenv:Header I receive the following exception in server side: java.lang.NullPointerException at org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR I(SOAPHeaderImpl.java:244) at org.apache.rampart.RampartEngine.process(RampartEngine.java:96) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav a:85) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) I don't know if it is possible and I would need to know if there is a way to do it. If I engage only addressing module this works. Thanks, Nuria -- http://blog.ruchith.org http://wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://blog.ruchith.org http://wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://blog.ruchith.org http://wso2.org
Re: AXIS2 1.3 Response Problem
Saroj, when I've asked you to provide more details I meant details. What does your service do? What is the configuration? How are you accessing the web service? Is there any database involved? What happens after restarting the server?, does it work fine forever or you have to restart it every few hours? Are you sure that the problem is the service and not the database (if any) or the client? Michele On 10 Mar 2008, at 05:58, saroj samal wrote: Dear Michele, I have developed 6 services having different EPR. Each service has one operation. I have deployed same services with a single sing application with AXIS2 1.3. My web server is Sun One Web Server 6.1. (no https port) JDK version is 1.6. According to our client feedback the response of all service are taking 30 to 40 secs after certain period or certain no of hits. After getting complain i am restarting the web server. It solves the problem. After that the response time is 2 to 6 sec only. We are getting 200 request per a day for all services. I am not sure here it is a problem of web server or any configuration required for AXIS2. if any thing more you want, please clarify me. Regards Saroj --- Michele Mazzucco [EMAIL PROTECTED] wrote: On 7 Mar 2008, at 12:29, saroj samal wrote: Pelase suggest me. Please provide more details. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ __ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http:// mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2Java] WSDL 2 - targetNamespace problem
Hi, We found a problem using a wsdl2java tool with WSDL v.2 files. Last month we were able to generate stub/client Java code without problems. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=urn:wsdlSamples xmlns:tns=urn:wsdlSamples xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; But with the latest revision from SVN (#635534) we received the following error: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:166) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: unknown protocol: urn: java.net.MalformedURLException: unknown protocol: urn at java.net.URL.init(URL.java:574) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at java.net.URI.toURL(URI.java:1081) at org.apache.woden.internal.wsdl20.assertions.Description1001.validate(Description1001.java:27) at org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions(WSDLValidator.java:109) ... After the following modification the generating of stub/client passed. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:tns=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; ... Is it a problem of Description1001.validate() method ? Thanks, Daniel Scanned by ClamAV at protys.cz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AXIS2 1.3 Response Problem
Sorry for posting my request for help to this thread by mistake. My bad. thanks Laxma On Mon, Mar 10, 2008 at 7:08 AM, Laxma [EMAIL PROTECTED] wrote: Hi, I am beginning to delve into axis web services. Planning on using ( WSAD or Eclipse for development) Could you please share one of the practical services that any of you have developed ( that includes some kind of database access). What IDE have you used? Do you use ant script package into .aar archive? One of the questions I have is can we invoke session ejbs from axis web service? In that case do we need to package the whole thing as ear or aar for deployment. If axis recognises only aar archive as services. will it recognise the ear , if the services are in a ear Any help would be greatly appreciated. ( I am reading the axis user's guide on apache site) Please suggest some reading material specific to using axis web services. thanks Laxma On Mon, Mar 10, 2008 at 1:58 AM, saroj samal [EMAIL PROTECTED] wrote: Dear Michele, I have developed 6 services having different EPR. Each service has one operation. I have deployed same services with a single sing application with AXIS2 1.3. My web server is Sun One Web Server 6.1. (no https port) JDK version is 1.6. According to our client feedback the response of all service are taking 30 to 40 secs after certain period or certain no of hits. After getting complain i am restarting the web server. It solves the problem. After that the response time is 2 to 6 sec only. We are getting 200 request per a day for all services. I am not sure here it is a problem of web server or any configuration required for AXIS2. if any thing more you want, please clarify me. Regards Saroj --- Michele Mazzucco [EMAIL PROTECTED] wrote: On 7 Mar 2008, at 12:29, saroj samal wrote: Pelase suggest me. Please provide more details. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Axis2 Clients with Maven
Bjorn, Bjorn Townsend [EMAIL PROTECTED] wrote on 03/08/2008 10:07:40 PM: I think there's still some confusion. :) I'm not trying to generate code from a WSDL or build an AAR, I just have a already-generated client that I want to set up as a Maven build rather than an Ant build, and I'm wondering what jars/plugins are required for that. I'm not sure that I understand your request any better, but here goes: The following is an excerpt from the pom I use to generate a client from source that I manually generate from WSDL (Axis2 1.3): !-- Project dependencies -- I think this is the part you're interested in.= -- dependencies dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.3/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-impl/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-api/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-dom/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.schema/groupId artifactIdXmlSchema/artifactId version1.3.2/version /dependency dependency groupIdstax/groupId artifactIdstax-api/artifactId version1.0.1/version /dependency dependency groupIdorg.codehaus.woodstox/groupId artifactIdwstx-asl/artifactId version3.2.1/version /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.1/version /dependency dependency groupIdcommons-httpclient/groupId artifactIdcommons-httpclient/artifactId version3.0.1/version /dependency /dependencies !-- ... the usual remainder of the pom ... -- /project _ Steven Gruverman IntelliCare, Inc. www.intellicare.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2Java] WSDL 2 - targetNamespace problem
Hi Daniel, Looks like a Woden (The library we use to parse WSDL 2) change caused this. I forwarded this message to the woden list. Will keep you updated. Thanks, Keith. On Mon, Mar 10, 2008 at 6:02 PM, Daniel Barta [EMAIL PROTECTED] wrote: Hi, We found a problem using a wsdl2java tool with WSDL v.2 files. Last month we were able to generate stub/client Java code without problems. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=urn:wsdlSamples xmlns:tns=urn:wsdlSamples xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; But with the latest revision from SVN (#635534) we received the following error: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init( CodeGenerationEngine.java:166) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: unknown protocol: urn: java.net.MalformedURLException: unknown protocol: urn at java.net.URL.init(URL.java:574) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at java.net.URI.toURL(URI.java:1081) at org.apache.woden.internal.wsdl20.assertions.Description1001.validate( Description1001.java:27) at org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions( WSDLValidator.java:109) ... After the following modification the generating of stub/client passed. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:tns=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; ... Is it a problem of Description1001.validate() method ? Thanks, Daniel Scanned by ClamAV at protys.cz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Repeated xmlns Question
Hello, Quick question... In the interest of keeping my xml messages relatively small, I'd like to know if there is a way to suppress repeated xmlns declarations on child elements. I guess Axis2 does this from the perspective of processing messages efficiently, but if there is a way to economize the size of a message while maintaining interoperability, I'd be interested in hearing about it. Thanks, Alejandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with rampart
Hello, I try to deploy rampart for my webservice but i have en error when I try to send something in the client side : Impossible to call remote service with url : http://localhost:8080/axis2/services/MYservice . Caused by: org.apache.axis2.AxisFault: CryptoFactory: Cannot load properties: service.properties at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) ... 5 more I had deployed Rampart on my webservices and I can show the rampart service in the admin page of tomcat. In my build file I have added every libraries : rampart-policy-1.3.jar rampart/rampart-core-1.3.jar rampart/rampart-trust-1.3.jar rampart/wss4j-1.5.3.jar rampart/opensaml-1.1.jar rampart/xmlsec-1.4.0.jar I have added client.properties,client.jks, service.jks and service.properties in the conf directory on my client. I use Rampart 1.3 with Axis2 1.3 and Tomcat 6.0. Anyone can help me please ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAPRequest
Hi, I had modified my code and i am getting nullpointer Exception if i place the following code before invoke method. MessageContext context =call.getMessageContext(); SOAPMessage soapMessage =context.getMessage(); System.out.println(SOAPMessage+ soapMessage.getSOAPBody().toString()); If i place this code after invoke method, i am getting SOAP Response message. But my intension to track SOAP Request XML . How can i do this one. Thanks , ram Upul Godage [EMAIL PROTECTED] wrote: Hi, org.apache.axis.client.Call does have the method call.getMessageContext() but not in javax.xml.rpc.Call interface, I think. You can also get response message directly. call.getResponseMessage().writeTo(System.out); Upul On Wed, Mar 5, 2008 at 12:05 AM, Seetha Rama Krishna [EMAIL PROTECTED] wrote: Hi Vipul, thanks for your reply. call.getMessageContext().getMessage().writeTo(System.out); is not working, because getMessageContext() is not a method in Call Interface. Here is my complete code which is available with axis distribution chapter5 /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package samples.userguide.example5; import org.apache.axis.AxisFault; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.utils.Options; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; public class Client { public static void main(String [] args) throws Exception { Options options = new Options(args); Order order = new Order(); order.setCustomerName(Glen Daniels); order.setShippingAddress(275 Grove Street, Newton, MA); String [] items = new String[] { mp3jukebox, 1600mahBattery }; int [] quantities = new int [] { 1, 4 }; order.setItemCodes(items); order.setQuantities(quantities); Service service = new Service(); Call call= (Call) service.createCall(); QNameqn = new QName( urn:BeanService, Order ); call.registerTypeMapping(Order.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(Order.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn)); String result; try { call.setTargetEndpointAddress( new java.net.URL(options.getURL()) ); call.setOperationName( new QName(OrderProcessor, processOrder) ); call.addParameter( arg1, qn, ParameterMode.IN ); call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING ); result = (String) call.invoke( new Object[] { order } ); } catch (AxisFault fault) { result = Error : + fault.toString(); } System.out.println(result); } } Thanks, Ram Michael Lambert [EMAIL PROTECTED] wrote: Upul Godage wrote: Hi, String ret = (String) call.invoke( new Object[] { textToSend } ); call.getMessageContext().getMessage().writeTo(System.out); // Writes to the given OutputStream Upul On Tue, Mar 4, 2008 at 3:33 PM, Seetha Rama Krishna [EMAIL PROTECTED] wrote: Hi, I deployed the sample code which is distributed by axis, I just wanted to see the SOAP Request message through programming. I had done this through TCPMON. I need to check it through programming. How can i do this. I tried to modify the code Client code for MyService webservice. MessageContext mc = new MessageContext(null); System.out.println(mc.getAxisEngine()); String ret = (String) call.invoke( new Object[] { textToSend } ); System.out.println(AxisEngine.getCurrentMessageContext().getRequestMessage()); I am getting nullpointer Exception when i run this code. By using TCPMonitor, i need to check the SOAP Request Messages and Response message of Remote webservice. How can i do this Thanks Regards, Krishna - Now you can chat without downloading messenger. Click here to know how. I use a simple customer module that I configured through axis2.xml: import org.apache.axiom.soap.SOAPEnvelope; import org.apache.axis2.AxisFault; import
Re: Building Axis2 Clients with Maven
Please forward any/all full working maven configurations to release manager dims? Thanks Martin- - Original Message - From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, March 10, 2008 8:21 AM Subject: Re: Building Axis2 Clients with Maven Bjorn, Bjorn Townsend [EMAIL PROTECTED] wrote on 03/08/2008 10:07:40 PM: I think there's still some confusion. :) I'm not trying to generate code from a WSDL or build an AAR, I just have a already-generated client that I want to set up as a Maven build rather than an Ant build, and I'm wondering what jars/plugins are required for that. I'm not sure that I understand your request any better, but here goes: The following is an excerpt from the pom I use to generate a client from source that I manually generate from WSDL (Axis2 1.3): !-- Project dependencies -- I think this is the part you're interested in.= -- dependencies dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.3/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-impl/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-api/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-dom/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.schema/groupId artifactIdXmlSchema/artifactId version1.3.2/version /dependency dependency groupIdstax/groupId artifactIdstax-api/artifactId version1.0.1/version /dependency dependency groupIdorg.codehaus.woodstox/groupId artifactIdwstx-asl/artifactId version3.2.1/version /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.1/version /dependency dependency groupIdcommons-httpclient/groupId artifactIdcommons-httpclient/artifactId version3.0.1/version /dependency /dependencies !-- ... the usual remainder of the pom ... -- /project _ Steven Gruverman IntelliCare, Inc. www.intellicare.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Axis2] Problem with handler and services.xml
Hello again, I now created an issue in JIRA with my module to try and the axis2.xml configuration. https://issues.apache.org/jira/browse/AXIS2-3588 Could please someone of you test my module or have a look at it what I am doing wrong? The module is being loaded, but the handler is never being invoked. Thanks, Matthias. -Ursprüngliche Nachricht- Von: Gaiser, Matthias Gesendet: Freitag, 7. März 2008 16:41 An: 'axis-user@ws.apache.org' Betreff: AW: [Axis2] Problem with handler and services.xml Hi Martin, I can confirm all your questions, but still do not have a working handler. I am happy to provide you with any more details, if it helps. Thanks, Matthias. Von: Martin Gainty [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 14:45 An: Gaiser, Matthias Cc: axis-user@ws.apache.org Betreff: Re: [Axis2] Problem with handler and services.xml Good Morning Matthias Can you confirm the module is located in /WEB-INF/modules folder? Yes. can you confirm the modules.list contains the entry for the name of module? Yes. Module Engaged to service In the /META-INF/services.xml can you view the service entry to include the module name e.g. module ref=addressing / ? Yes. Global available Modules Can you see your module ref module ref=addressing / in /WEB-INF/conf/axis2.xml ? Yes. ? Martin- - Original Message - From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, March 07, 2008 2:50 AM Subject: AW: [Axis2] Problem with handler and services.xml Hi Deepal, I have created an axis2 project with eclipse which arranged the axis2 folder structure for me. By placing my module in the WEB-INF/modules-folder I deploy it to axis2. When I use the Axis2 Admin Console I can see my module engaged for my service.But it still does not work. That is the weird point I do not get in my mind, everything seems to be in place... Any more help? Thank you, Matthias. -Ursprüngliche Nachricht- Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 07:53 An: axis-user@ws.apache.org Betreff: Re: [Axis2] Problem with handler and services.xml [EMAIL PROTECTED] wrote: Hi all, I am writing my own module, containing a handler. For this, I have completed following steps. - I have specified the handler for a custom phase (in the InFlow) in the module.xml - I have added the custom phase to the axis2.xml (in the InFlow) - I have added a module ref=”…” to the services.xml The module is being loaded, but the problem is that my handler is not executed when I call my service. It worked when I directly specified the handler in the custom phase in the axis2.xml, but that is not the way it is supposed to be done, is it? Any ideas? If you are using axis2.war as your deployment mechanism then from the administration console you can see whether you handler is there or not. Please check that and confirm first , if it is there then let's see what we can do Thank you, Deepal --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Failure Axis2 1.3
Hi Jeffery, I ran into this same exact test failure. I changed the maven .../modules/kernel/pom.xml to skip these two tests. leon Jeffrey Wells wrote: All; I am new to axis2 and I have been trying to build the 1.3 version on my Linux Fedora Core 6 O.S. with maven 2.0.8 and jdk 1.5. Compilation goes well but package/install fails with these errors. I was wondering if any one else has run into this problem in the past and if so, what was done to fix it. Thank you. Jeff Wells Running org.apache.axis2.rpc.complex.ComplexDataTypesComplexDataTypesSOAP11Test 1 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 90 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .252 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 81501 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 81510 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 84514 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 84515 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 85.237 sec FAILURE! Running org.apache.axis2.rpc.complex.ComplexDataTypesDocLitBareTest 0 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 89 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .253 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 75042 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 75051 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 78057 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 78058 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.78 sec FAILURE! -- Leon S. Searl, Software Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2]Axis2-Kernel test fail
It is kind of strange that one test of the axis2-kernel moule fails, which fails the local maven build. How can I rely on the tests, when they fail right after fresh checkout from svn repo and the only way to build a jar trough maven is to turn them off? Greetings, Angel Cholchev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]Axis2-Kernel test fail
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What failed? - -- dims Angel Cholchev wrote: | It is kind of strange that one test of the axis2-kernel moule fails, | which fails the local maven build. | How can I rely on the tests, when they fail right after fresh checkout | from svn repo and the only way | to build a jar trough maven is to turn them off? | | Greetings, | Angel Cholchev | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFH1VVTgNg6eWEDv1kRAlBrAJ0QiIzGcKL33mrH6ef0Mh7cR5EmiwCguCZD nK+h0XKzneSutXoukv8eeFo= =2bRD -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help getting started with axis
Hi, I am beginning to delve into axis web services. Planning on using ( WSAD or Eclipse for development) Could you please share one of the practical services that any of you have developed ( that includes some kind of database access). What IDE have you used? Do you use ant script package into .aar archive? One of the questions I have is can we invoke session ejbs from axis web service? In that case do we need to package the whole thing as ear or aar for deployment. If axis recognises only aar archive as services. will it recognise the ear , if the services are in a ear Any help would be greatly appreciated. ( I am reading the axis user's guide on apache site) Please suggest some reading material specific to using axis web services. thanks Laxma
Re: Problem with SOAPHeader
Hi Ruchith, The exception has disappeared but when the client receives the response I receive the following exception: org.apache.axis2.AxisFault: Error in extracting message properties at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java :481) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse( OutInAxisOperation.java:360) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl( OutInAxisOperation.java:219) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at com.gmv.teamengine.samples.client.Client.main(Client.java:90) 2008/3/10, Ruchith Fernando [EMAIL PROTECTED]: Can you please try using this [1] jar ... instead of the one I sent earlier... My guess is that the earlier jar file was generated before that fix went in. Thanks, Ruchith 1. http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080310.022829-66.jar On Mon, Mar 10, 2008 at 4:00 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi Ruchith, Thank you very much for your help. I used the new jar and I included the source code too but I'm having the same problem. Is it necessary to change something in my client side? Thanks, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: I believe there will be another release of Axiom close to the release of Axis2... maybe you will be able to try the latest axiom-dom-SNAPSHOT.jar with your project. Please try the jar file available here : http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar Thanks, Ruchith On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, Thank you very much. But how could I use this class in my project? Are you going to publish a new release of the axiom api? Regards, Nuria 2008/3/7, Ruchith Fernando [EMAIL PROTECTED]: Hi Nuria, This is a bug in DOOM, the AXIOM DOM implementation. I just fixed this and checked it in. [1] Thanks, Ruchith 1. http://svn.apache.org/viewvc?rev=634561view=rev On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García [EMAIL PROTECTED] wrote: Hi, I can't add information in SOAPHeader when I engage rampart and addressing module. My header is the following: soapenv:Header wsse:Security xmlns:wsse= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd soapenv:mustUnderstand=1 wsu:Timestamp xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd wsu:Id=Timestamp-32653965 wsu:Created2008-03-06T11:37:41.497Z/wsu:Created wsu:Expires2008-03-06T11:42:41.497Z/wsu:Expires /wsu:Timestamp wsse:UsernameToken xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd wsu:Id=UsernameToken-11737724 wsse:Usernamealice/wsse:Username wsse:Password Type= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText bobPW/wsse:Password /wsse:UsernameToken /wsse:Security content Attachment idAttachFile=$FILE{FileTestA.txt} nameAttachFile=FileTestA.txt/ Attachment idAttachFile=$FILE{FileTestB.txt} nameAttachFile=FileTestA.txt/ /content wsa:Tohttp://localhost:8081/axis2/services/SWASampleService/wsa:To wsa:MessageIDurn:uuid:E23726932EDEB77EB81204803460112/wsa:MessageID wsa:Actionprocess/wsa:Action /soapenv:Header I receive the following exception in server side: java.lang.NullPointerException at org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR I(SOAPHeaderImpl.java:244) at org.apache.rampart.RampartEngine.process(RampartEngine.java:96) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav a:85) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
Can I differentiate server down and no data found
Hi, I would like to know if java.rmi.ServerException would be thrown if the server hosting the web services is down. Also is there a way I could differentiate if the server is down or if there is no data returned. I am using wsdl2java axis tool to generate java classes. This is what I do in my java class. protected void handleException(final String exception, final Throwable t) throws BusinessException { if (t != null) { if (t instanceof java.rmi.RemoteException) { throw new BusinessException(exception, t); } else { throw new BusinessException(exception, t.getCause()); } } } If I check for (t instanceof java.rmi.ServerException) would it be true if the server is down? Also can I modify the end point URL to an invalid url (like say change the valid port number to an invalid one ) and assume that the server is down Please help me with this. Thanks, Samanth.
Re: Build Failure Axis2 1.3
Leon; What did you do? Did you put an exclude in the pom.xml file that forced the two tests not to run? Thanks! Jeff Wells Original Message: - From: Leon Searl [EMAIL PROTECTED] Date: Mon, 10 Mar 2008 10:10:20 -0500 To: axis-user@ws.apache.org Subject: Re: Build Failure Axis2 1.3 Hi Jeffery, I ran into this same exact test failure. I changed the maven .../modules/kernel/pom.xml to skip these two tests. leon Jeffrey Wells wrote: All; I am new to axis2 and I have been trying to build the 1.3 version on my Linux Fedora Core 6 O.S. with maven 2.0.8 and jdk 1.5. Compilation goes well but package/install fails with these errors. I was wondering if any one else has run into this problem in the past and if so, what was done to fix it. Thank you. Jeff Wells Running org.apache.axis2.rpc.complex.ComplexDataTypesComplexDataTypesSOAP11Test 1 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 90 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .252 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 81501 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 81510 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 84514 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 84515 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 85.237 sec FAILURE! Running org.apache.axis2.rpc.complex.ComplexDataTypesDocLitBareTest 0 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 89 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .253 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 75042 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 75051 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 78057 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 78058 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.78 sec FAILURE! -- Leon S. Searl, Software Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] myhosting.com - Premium Microsoft® Windows® and Linux web and application hosting - http://link.myhosting.com/myhosting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repeated xmlns Question
Alejandro, There is an option in WSDL2Java to suppress the repeated xmlns declarations on child elements. Use the -sp option with your WSDL2Java. -sp Suppress namespace prefixes (Optimzation that reduces size of soap request/response) Thanks Raghu -Original Message- From: Alejandro Calbazana [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 7:07 AM To: axis-user@ws.apache.org Subject: Repeated xmlns Question Hello, Quick question... In the interest of keeping my xml messages relatively small, I'd like to know if there is a way to suppress repeated xmlns declarations on child elements. I guess Axis2 does this from the perspective of processing messages efficiently, but if there is a way to economize the size of a message while maintaining interoperability, I'd be interested in hearing about it. Thanks, Alejandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query regarding aar-maven-plugin
Hi All, Our team is using aar-maven-plugin to build .aar file. We see that all our dependencies are getting in the lib directory of the aar file. We do want some of these dependencies to go into the lib dir.. but not all of them. How do I restrict which files goes into the lib dir of the aar bundle? Please help. Thanks a lot in advance. Subhro.
Re: Building Axis2 Clients with Maven
Martin, I put one together that works to build my client; I can send it in if you want it, but I'm not sure what you want it for. It's probably got a lot of unnecessary dependencies in it that I haven't had time to clear out yet. Bjorn On Mar 10, 2008, at 8:16 AM March 10, Martin Gainty wrote: Please forward any/all full working maven configurations to release manager dims? Thanks Martin- - Original Message - From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, March 10, 2008 8:21 AM Subject: Re: Building Axis2 Clients with Maven Bjorn, Bjorn Townsend [EMAIL PROTECTED] wrote on 03/08/2008 10:07:40 PM: I think there's still some confusion. :) I'm not trying to generate code from a WSDL or build an AAR, I just have a already-generated client that I want to set up as a Maven build rather than an Ant build, and I'm wondering what jars/plugins are required for that. I'm not sure that I understand your request any better, but here goes: The following is an excerpt from the pom I use to generate a client from source that I manually generate from WSDL (Axis2 1.3): !-- Project dependencies -- I think this is the part you're interested in.= -- dependencies dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.3/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-impl/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-api/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-dom/artifactId version1.2.5/version /dependency dependency groupIdorg.apache.ws.commons.schema/groupId artifactIdXmlSchema/artifactId version1.3.2/version /dependency dependency groupIdstax/groupId artifactIdstax-api/artifactId version1.0.1/version /dependency dependency groupIdorg.codehaus.woodstox/groupId artifactIdwstx-asl/artifactId version3.2.1/version /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.1/version /dependency dependency groupIdcommons-httpclient/groupId artifactIdcommons-httpclient/artifactId version3.0.1/version /dependency /dependencies !-- ... the usual remainder of the pom ... -- /project _ Steven Gruverman IntelliCare, Inc. www.intellicare.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query regarding aar-maven-plugin
I believe that you need to add scopeprovided/scope to the dependencies that you do not want in the lib dir. - Steve _ Steven Gruverman IntelliCare, Inc. www.intellicare.com Subhro Moitra (smoitra) [EMAIL PROTECTED] wrote on 03/10/2008 02:15:00 PM: Hi All, Our team is using aar-maven-plugin to build .aar file. We see that all our dependencies are getting in the lib directory of the aar file. We do want some of these dependencies to go into the lib dir.. but not all of them. How do I restrict which files goes into the lib dir of the aar bundle? Please help. Thanks a lot in advance. Subhro. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Failure Axis2 1.3
Hi Jeff, It has been a while since I did it. I can not remember which section it was (surefire?) but yes, I put some excludes in there. I believe that there a few other tests that were being excluded already and I just added the ones that I saw failing. leon [EMAIL PROTECTED] wrote: Leon; What did you do? Did you put an exclude in the pom.xml file that forced the two tests not to run? Thanks! Jeff Wells Original Message: - From: Leon Searl [EMAIL PROTECTED] Date: Mon, 10 Mar 2008 10:10:20 -0500 To: axis-user@ws.apache.org Subject: Re: Build Failure Axis2 1.3 Hi Jeffery, I ran into this same exact test failure. I changed the maven .../modules/kernel/pom.xml to skip these two tests. leon Jeffrey Wells wrote: All; I am new to axis2 and I have been trying to build the 1.3 version on my Linux Fedora Core 6 O.S. with maven 2.0.8 and jdk 1.5. Compilation goes well but package/install fails with these errors. I was wondering if any one else has run into this problem in the past and if so, what was done to fix it. Thank you. Jeff Wells Running org.apache.axis2.rpc.complex.ComplexDataTypesComplexDataTypesSOAP11Test 1 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 90 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .252 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 81501 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 81510 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 84514 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 84515 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 85.237 sec FAILURE! Running org.apache.axis2.rpc.complex.ComplexDataTypesDocLitBareTest 0 [main] INFO org.apache.axis2.deployment.DeploymentEngine - No services directory was found under /mnt/home/wells/axis213/modules/integration/target/test-resources/samples. 89 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.3 Server started on port .253 [HttpListener--1] INFO org.apache.axis2.transport.http.server.DefaultConnectionListener - Listening on port [SimpleHTTPServer] Stop called 75042 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down connection listener 75051 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Shut down HTTP processors 78057 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - Force shut down HTTP processors 78058 [main] INFO org.apache.axis2.transport.http.server.SimpleHttpServer - HTTP protocol handler shut down Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.78 sec FAILURE! -- Leon S. Searl, Software Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 Sockets
Hi, Thank you all for the provided help. In fact, the incoming message has a ws-addressing reply-to EPR pointing to another listener. This is the problem. When the response MessageContext is created, this values are automatically fielded. If I set To as: newMsgContext.setTo(new EndpointReference(http://www.w3.org/2005/08/addressing/anonymous;)); it works. Thank you. Best regards, Daniel Silva Software Developer [EMAIL PROTECTED] www.alert-online.com ALERT Life Sciences Computing, S.A. Edifício Lake Towers Rua Daciano Baptista Marques, n.º 245, Bloco D 4400-617 Vila Nova de Gaia Tel.: +351 22 832 89 80/1 Fax: +351 22 832 89 82 This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited. -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: domingo, 9 de Março de 2008 20:33 To: axis-user@ws.apache.org Subject: Re: Axis2 Sockets oh.. Sorry for the confusion.. That's exactly what I meant. .Using the same socket is the default.. ~Thilina On Fri, Mar 7, 2008 at 11:34 AM, Michele Mazzucco [EMAIL PROTECTED] wrote: Why? If the MEP is in/out with no complications (i.e. synchronous and with no redirections) you should be able to use the same socket. Michele On 7 Mar 2008, at 16:11, Thilina Gunarathne wrote: AFAIK it's the default behavior in case of request/response interaction - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Sockets
Daniel, this sounds wrong to me. Can you post your client code please? Michele On 10 Mar 2008, at 19:13, Daniel Silva wrote: Hi, Thank you all for the provided help. In fact, the incoming message has a ws-addressing reply-to EPR pointing to another listener. This is the problem. When the response MessageContext is created, this values are automatically fielded. If I set To as: newMsgContext.setTo(new EndpointReference (http://www.w3.org/2005/08/addressing/anonymous;)); it works. Thank you. Best regards, Daniel Silva Software Developer [EMAIL PROTECTED] www.alert-online.com ALERT Life Sciences Computing, S.A. Edifício Lake Towers Rua Daciano Baptista Marques, n.º 245, Bloco D 4400-617 Vila Nova de Gaia Tel.: +351 22 832 89 80/1 Fax: +351 22 832 89 82 This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited. -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: domingo, 9 de Março de 2008 20:33 To: axis-user@ws.apache.org Subject: Re: Axis2 Sockets oh.. Sorry for the confusion.. That's exactly what I meant. .Using the same socket is the default.. ~Thilina On Fri, Mar 7, 2008 at 11:34 AM, Michele Mazzucco [EMAIL PROTECTED] wrote: Why? If the MEP is in/out with no complications (i.e. synchronous and with no redirections) you should be able to use the same socket. Michele On 7 Mar 2008, at 16:11, Thilina Gunarathne wrote: AFAIK it's the default behavior in case of request/response interaction - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Versioning of Archived Service Deployment Feature
Hi, I read this on the index page of the Axis2-1.3 documentation: Archived service deployment model supporting full serviceencapsulation with versioning support. Where can I find any further explanation of it means? I've searched through documentation and samples. Thanks, Rossen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help getting started with axis
Laxma, you could start with the online lession Online banking with Apache Geronimo and Axis2 on IBM developer center. http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank1.html Dragon 2008/3/10, Laxma [EMAIL PROTECTED]: Hi, I am beginning to delve into axis web services. Planning on using ( WSAD or Eclipse for development) Could you please share one of the practical services that any of you have developed ( that includes some kind of database access). What IDE have you used? Do you use ant script package into .aar archive? One of the questions I have is can we invoke session ejbs from axis web service? In that case do we need to package the whole thing as ear or aar for deployment. If axis recognises only aar archive as services. will it recognise the ear , if the services are in a ear Any help would be greatly appreciated. ( I am reading the axis user's guide on apache site) Please suggest some reading material specific to using axis web services. thanks Laxma
Re: Versioning of Archived Service Deployment Feature
Hi, I read this on the index page of the Axis2-1.3 documentation: Archived service deployment model supporting full serviceencapsulation with versioning support. Well we do have module version support not for service version support. -Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2Java] WSDL 2 - targetNamespace problem
Hi Daniel, This looks like a woden bug. I'll files a jira there with the details You've provided. https://issues.apache.org/jira/browse/WODEN-201 Thanks, Keith. On Mon, Mar 10, 2008 at 7:32 PM, keith chapman [EMAIL PROTECTED] wrote: Hi Daniel, Looks like a Woden (The library we use to parse WSDL 2) change caused this. I forwarded this message to the woden list. Will keep you updated. Thanks, Keith. On Mon, Mar 10, 2008 at 6:02 PM, Daniel Barta [EMAIL PROTECTED] wrote: Hi, We found a problem using a wsdl2java tool with WSDL v.2 files. Last month we were able to generate stub/client Java code without problems. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=urn:wsdlSamples xmlns:tns=urn:wsdlSamples xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; But with the latest revision from SVN (#635534) we received the following error: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init( CodeGenerationEngine.java:166) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: unknown protocol: urn: java.net.MalformedURLException: unknown protocol: urn at java.net.URL.init(URL.java:574) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at java.net.URI.toURL(URI.java:1081) at org.apache.woden.internal.wsdl20.assertions.Description1001.validate( Description1001.java:27) at org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions (WSDLValidator.java:109) ... After the following modification the generating of stub/client passed. wsdl:description xmlns:wsdl=http://www.w3.org/ns/wsdl; targetNamespace=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:tns=http://127.0.0.1/wsdlSamples/all.wsdl; xmlns:dtns=urn:wsdlSamplesData xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; ... Is it a problem of Description1001.validate() method ? Thanks, Daniel Scanned by ClamAV at protys.cz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org -- Keith Chapman Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Re: sendReceive() catching NullPointerException
where did you get the NPE , I mean the line ? I think that should be here return res.getFirstElement().getText(); So probably res.getFirstElement() should be null. If you can send the request via the TCP monitor and see what happen. Thank you, Deepal Hi, I'm new to Axis2. As my first Axis2 web service project I followed the quickstart in creating/deploying a web service and writing a client to access the service. Here's my client code: -web service client--- public class CSXStub { private String query; public CSXStub() { this.query = null; } public void setQuery(String qry) { this.query = qry; } public String getQuery(){ // create request payload OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(http://ws.apache.org/axis2/xsd;, ns1); OMElement method = fac.createOMElement(Search, ns); OMElement value = fac.createOMElement(query, ns); value.addChild(fac.createOMText(value, query)); method.addChild(value); // create service client ServiceClient client; OMElement res; try { client = new ServiceClient(); } catch (AxisFault e) { return Failed creating Axis2 client object: + e.getMessage(); } // create option object Options opts = new Options(); //setting target end point reference EndpointReference epr = new EndpointReference( http://localhost:8080/axis2/services/CSXService;); opts.setTo(epr); //Setting action, and which can be found from the wsdl of the service opts.setAction(urn:echo); */ client.setOptions(opts); // invoking service try { res = client.sendReceive(method); } catch (AxisFault e) { return Failed calling CSX web service: + e.getMessage(); } return res.getFirstElement().getText(); } } -- I imported this class into a JSP page. In invoking that JSP the last catch fired and returned the error message: Failed calling CSX web service: java.lang.NullPointerException What did I go wrong here? Thanks, Yigang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]