You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Yair Zaslavsky <ya...@imagine-com.com> on 2006/06/06 17:18:22 UTC

problems in installing axis on my machine

Good day all, 

I took the sources of axis c++, and built/installed them according to
the instructions at the site.

However, I may be missing something -

I want to run the SimpleServer to listen on port 7777 (this port is not
used on the machine).

I get the following error:

 

terminate called after throwing an instance of 'std::logic_error'

  what():  basic_string::_S_construct NULL not valid

Aborted

 

My axis configuration file looks like this:

 

# Path to HTTP Transport library

Transport_http:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libh
ttp_transport.so

 

# Path to Axis XML Parser library

XMLParser:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libaxis_x
erces.so

 

# Path to HTTP Channel library

Channel_HTTP:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libhtt
p_channel.so

 

(The paths are correct)

 

AXISCPP_DEPLOY is set to home/yair/obj/package/axis-c-1.6-Linux-bin

XERCES_HOME is set to /home/yair/work/imagine/trunk/vendors/xerces-c
which includes all xerces-c in it (for instance, has a "lib" sub
directory holding all of xerces-c libraries)

AXISJAVA_LIB is also set correctly.

 

The version of g++ is

g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

 

The version of libtool is

tmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)

 

uname -a prints the following information:

Linux tulip.imagine-com.local 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54
EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

 

Can someone assist me in solving this problem? I'm trying to evaluate if
my organization can use axis to develop c++ web services.

 

Thanks in advance,

Yair Zaslavsky

Imagine Communications

 


MTOM partially fails

Posted by Irfan Habib <ir...@yahoo.com>.
Hi,

I've modified the mtom sample, but there is a problem:
the soap request being sent by the client looks like
this:
<ns1:mtomSample
xmlns:ns1="http://ws.apache.org/axis2/c/samples/mtom">
<ns1:Executable>mysqltest</ns1:Executable>
<ns1:application><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:1.cb037dca-f5b2-1da1-2ee9-00902743c0a0@apache.org"></xop:Include></ns1:application>
<ns1:Input>mysqlin</ns1:Input><ns1:input><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:2.cb05343a-f5b2-1da1-2eea-00902743c0a0@apache.org"></xop:Include></ns1:input>
<ns1:Output>output</ns1:Output><ns1:Log>log</ns1:Log></ns1:mtomSample>

Now the problem is that the server saves the first
file sucessfully that is (mysqltest).
Now check the following code:

file_name_node =
AXIS2_OM_NODE_GET_NEXT_SIBLING(image_node, env);
file_text_node =
AXIS2_OM_NODE_GET_FIRST_CHILD(file_name_node, env);
   text = (axis2_om_text_t
*)AXIS2_OM_NODE_GET_DATA_ELEMENT(file_text_node, env);
  text_str = AXIS2_OM_TEXT_GET_VALUE(text, env);
 printf("New filename: %s\n",text_str);

Here it outputs the correct name of the node (mysqlin)
the next node logically is the node which contains the
file itself.

       image_node =
AXIS2_OM_NODE_GET_NEXT_SIBLING(file_name_node, env);
            if (image_node)
            {
                axis2_om_node_t *inc_node = NULL;
                inc_node =
AXIS2_OM_NODE_GET_FIRST_CHILD(image_node, env);
                if (inc_node)
                {
                    axis2_om_node_t *binary_node =
NULL;
                    binary_node =
AXIS2_OM_NODE_GET_FIRST_CHILD(inc_node, env);

Now binrary node is NULL, and thus the saving of the
file does not proceed.
What am I doing wrong? or are there some bugs in 0.91?

Thank you in advance,

Regards
Irfan






--- John Hawkins <HA...@uk.ibm.com> wrote:

> Have you tried running it on a lower port number
> e.g. 80?
> If you have then I would suggest you put on trace
> and see if that gives 
> you any clues.
> http://ws.apache.org/axis/cpp/TraceGuide.html
> 
> 
> 
> 
> 
> "Yair Zaslavsky" <ya...@imagine-com.com> 
> 06/06/2006 16:18
> Please respond to
> "Apache AXIS C User List"
> <ax...@ws.apache.org>
> 
> 
> To
> <ax...@ws.apache.org>
> cc
> 
> Subject
> problems in installing axis on my machine
> 
> 
> 
> 
> 
> 
> Good day all, 
> I took the sources of axis c++, and built/installed
> them according to the 
> instructions at the site.
> However, I may be missing something ?
> I want to run the SimpleServer to listen on port
> 7777 (this port is not 
> used on the machine).
> I get the following error:
>  
> terminate called after throwing an instance of
> 'std::logic_error'
>   what():  basic_string::_S_construct NULL not valid
> Aborted
>  
> My axis configuration file looks like this:
>  
> # Path to HTTP Transport library
>
Transport_http:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libhttp_transport.so
>  
> # Path to Axis XML Parser library
>
XMLParser:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libaxis_xerces.so
>  
> # Path to HTTP Channel library
>
Channel_HTTP:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libhttp_channel.so
>  
> (The paths are correct)
>  
> AXISCPP_DEPLOY is set to
> home/yair/obj/package/axis-c-1.6-Linux-bin
> XERCES_HOME is set to
> /home/yair/work/imagine/trunk/vendors/xerces-c which
> 
> includes all xerces-c in it (for instance, has a
> ?lib? sub directory 
> holding all of xerces-c libraries)
> AXISJAVA_LIB is also set correctly.
>  
> The version of g++ is
> g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
>  
> The version of libtool is
> tmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11
> 05:50:42)
>  
> uname ?a prints the following information:
> Linux tulip.imagine-com.local 2.6.9-22.ELsmp #1 SMP
> Mon Sep 19 18:00:54 
> EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
>  
> Can someone assist me in solving this problem? I?m
> trying to evaluate if 
> my organization can use axis to develop c++ web
> services.
>  
> Thanks in advance,
> Yair Zaslavsky
> Imagine Communications
>  
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: problems in installing axis on my machine

Posted by John Hawkins <HA...@uk.ibm.com>.
Have you tried running it on a lower port number e.g. 80?
If you have then I would suggest you put on trace and see if that gives 
you any clues. http://ws.apache.org/axis/cpp/TraceGuide.html





"Yair Zaslavsky" <ya...@imagine-com.com> 
06/06/2006 16:18
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
<ax...@ws.apache.org>
cc

Subject
problems in installing axis on my machine






Good day all, 
I took the sources of axis c++, and built/installed them according to the 
instructions at the site.
However, I may be missing something ?
I want to run the SimpleServer to listen on port 7777 (this port is not 
used on the machine).
I get the following error:
 
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
 
My axis configuration file looks like this:
 
# Path to HTTP Transport library
Transport_http:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libhttp_transport.so
 
# Path to Axis XML Parser library
XMLParser:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libaxis_xerces.so
 
# Path to HTTP Channel library
Channel_HTTP:/home/yair/obj/package/axis-c-1.6-Linux-bin/lib/axis/libhttp_channel.so
 
(The paths are correct)
 
AXISCPP_DEPLOY is set to home/yair/obj/package/axis-c-1.6-Linux-bin
XERCES_HOME is set to /home/yair/work/imagine/trunk/vendors/xerces-c which 
includes all xerces-c in it (for instance, has a ?lib? sub directory 
holding all of xerces-c libraries)
AXISJAVA_LIB is also set correctly.
 
The version of g++ is
g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
 
The version of libtool is
tmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
 
uname ?a prints the following information:
Linux tulip.imagine-com.local 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 
EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
 
Can someone assist me in solving this problem? I?m trying to evaluate if 
my organization can use axis to develop c++ web services.
 
Thanks in advance,
Yair Zaslavsky
Imagine Communications