OK, this seems to be a known problem with axis2/c built in .NET Visual C++ 2003, and seems that it won't be fixed. See https://issues.apache.org/jira/browse/AXIS2C-922. I've tried the suggestions in the bug report and it still doesn't work. Thanks!
--- On Wed, 3/11/09, Raymond Zhou <[email protected]> wrote: From: Raymond Zhou <[email protected]> Subject: Re: RE : Cannot start axis2_http_server.exe from command line To: "Apache AXIS C User List" <[email protected]> Date: Wednesday, March 11, 2009, 5:56 PM Some extra info, When I compile the axis2/c code, I saw the following warning: http_server_main.c ...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119) : warning C4047: 'function' : 'int *(__cdecl *)()' differs in levels of indirection from 'int' ...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119) : warning C4047: 'function' : 'char *const **(__cdecl *)() ' differs in levels of indirection from 'char ** ' Line 119 in file http_server_main.c is actually the following line that gives me the access violation: while ((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:s:f:")) != -1) Thanks! Ray --- On Wed, 3/11/09, Raymond Zhou <[email protected]> wrote: From: Raymond Zhou <[email protected]> Subject: Re: RE : Cannot start axis2_http_server.exe from command line To: "Apache AXIS C User List" <[email protected]> Date: Wednesday, March 11, 2009, 5:44 PM Sorry I accidentally hit the send button before I finish my message. Here it is again: What I found is that I got the following access violation: First-chance exception at 0x00000002 in axis2_http_server.exe: 0xC0000005: Access violation reading location 0x00000002. Unhandled exception at 0x00000002 in axis2_http_server.exe: 0xC0000005: Access violation reading location 0x00000002. It occurs right at the beginning of the following line in http_server_main.c: while ((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:s:f:")) != -1) I stepped into AXIS2_GETOPT, and I noticed that access violation occurs at the following line if (optind >= __argc || *(pos = __argv[optind]) != '-') I also noticed I am unable to view the symbales __argc and __argv in memory window because "Memory could not be displayed for the expression". I was able to see argc and argv when I stopped in http_server_main.c before the call AXIS2_GETOPT(..). Does this seem to be a problem in compilation? I can reproduce the problem in both debug version and release version. I am working on windows XP platform, and my compiler is Microsoft .NET visual c++ 2003. My colleage also saw the same problem in UNIX/Linux platforms. Thanks! Way --- On Wed, 3/11/09, Lefrancois, Carl <[email protected]> wrote: From: Lefrancois, Carl <[email protected]> Subject: RE : Cannot start axis2_http_server.exe from command line To: "Apache AXIS C User List" <[email protected]> Date: Wednesday, March 11, 2009, 2:14 PM Hello Raymond, what you have is not a windows system error. It is probably an access violation somewhere in the server code. Start with the log file and see what is the last step that works, then in your debugger put a breakpoint at that step and go forward until it crashes. Like Supun suggested, it may be a missing or bad configuration that causes the crash. HTH Carl -----Message d'origine----- De : Raymond Zhou [mailto:[email protected]] Envoyé : mardi, mars 10, 2009 18:02 À : [email protected] Cc : [email protected] Objet : Cannot start axis2_http_server.exe from command line Hi All, I have been using axis2/c for a while in my web service client component. I has been successful. I built the axis2/c libraries (version 1.5) by myself, and I am working in windows XP platform. When building the libraries, I enabled openSSL, and use guththila XML parser. Now encounter a very strange problem when I try to start axis2_http_server.exe. Seems like I am getting a windows system error, here is the error message from the pop up windows when I start axis2_http_server.exe from command line: ======= axis2_http_server.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost. Please tell Microsoft about this problem. ...... ======= Strange thing is, if I use the downloaded binary version of axis2/c, I was able to start the axis2_http_server.exe without problem. Any clue what might be going on? Thanks! Ray _____ "Ce message est confidentiel, à l'usage exclusif du destinataire ci-dessus et son contenu ne représente en aucun cas un engagement de la part de AXA, sauf en cas de stipulation expresse et par écrit de la part de AXA. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur." "This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately."
