undefined 'scandir' and 'alphsort'
I m getting undefined symbols error on Solaris 9 while the test programs are being linked. gcc -g -O2 -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration -o .libs/test test.o ../../axiom/src/om/.libs/libaxis2_axiom.so ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so /axis2c-src-1.6.0/axiom/src/om/.libs/libaxis2_axiom.so /axis2c-src-1.6.0/axiom/src/parser/guththila/.libs/libaxis2_parser.so /axis2c-src-1.6.0/guththila/src/.libs/libguththila.so /axis2c-src-1.6.0/util/src/.libs/libaxutil.so -lpthread -lsocket -lz -ldl -R/usr/local/axis2c/lib gcc: unrecognized option `-pthread' ld: warning: file /axis2c-src-1.6.0/axiom/src/om/.libs/libaxis2_axiom.so: linked to ../../axiom/src/om/.libs/libaxis2_axiom.so: attempted multiple inclusion of file ld: warning: file /axis2c-src-1.6.0/util/src/.libs/libaxutil.so: linked to ../../util/src/.libs/libaxutil.so: attempted multiple inclusion of file Undefined first referenced symbol in file alphasort ../../util/src/.libs/libaxutil.so scandir ../../util/src/.libs/libaxutil.so
Re: Axis2: SampleService example from Axis 2 webpage gets exception
Andreas, Yup, 1.5.1 did it. Thanks. Dan On Fri, Jan 29, 2010 at 11:20 AM, Andreas Veithen andreas.veit...@gmail.com wrote: That probably means that the Axis2 version you used to compile the code is not the same as the one deployed in Tomcat. In particular, axis2-std-1.0-bin doesn't sound good. If you are starting with Axis2 you should use version 1.5.1, unless there is a particular requirement to use a version as old as 1.0. Andreas On Fri, Jan 29, 2010 at 19:23, Daniel Walsh walsh94...@gmail.com wrote: I'm trying to build and run the SampleService example from the Apache Axis2 webpage at http://ws.apache.org/axis2/1_5_1/userguide-buildingservices.html#buildservices listings 8-10. When I try to run the client I get org.apache.axis2.AxisFault: org.apache.axiom.om.OMFactory.createOMText(Lorg/apache/axiom/om/OMElement;Ljava/lang/String;)Lorg/apache/axiom/om/OMText; I tried putting the message into Google and it came up with no results. I figured that as a newbie I would try the first example and build from there, but I don't have any idea what the error message means or what I should do about it. Can anyone help me out here? Thanks, Dan -- Here is a detailed description of what I did, in case it helps: What I did was to cut and paste SampleService, services.xml and SampleClient from listings 8-10 of http://ws.apache.org/axis2/1_5_1/userguide-buildingservices.html#buildservices into org/apache/axis2/axis2userguide/SampleService.java, META-INF/services.xml and org/apache/axis2/axis2userguide/SampleClient.java respectively. I also copied all the axis2 libraries from axis2-std-1.0-bin/lib into ../lib. I then wrote (in cygwin bash) a simple shell script to build and deploy the service: export CLASSPATH=`echo ../lib/*.jar | tr ' ' ';'` echo classpath $CLASSPATH javac org/apache/axis2/axis2userguide/SampleService.java jar cf SampleService.aar org/apache/axis2/axis2userguide/SampleService.class META-INF/services.xml cp SampleService.aar /cygdrive/c/tomcat-6.0.20/webapps/axis2/WEB-INF/services I ran the above script, shut down tomcat and brought it up again, and I saw the service deployed in http://localhost:8080/axis2/services/listServices I then wrote another shell script to compile and run the client: export CLASSPATH=`echo ../lib/*.jar | tr ' ' ';'` echo classpath $CLASSPATH javac org/apache/axis2/axis2userguide/SampleClient.java java -cp $CLASSPATH;. org/apache/axis2/axis2userguide/SampleClient When I run this script I get the error mentioned above: org.apache.axis2.AxisFault: org.apache.axiom.om.OMFactory.createOMText(Lorg/apache/axiom/om/OMElement;Ljava/lang/String;)Lorg/apache/axiom/om/OMText; I swear I literally copied the SampleService, service.xml and SampleClient from code listings 8-10 respectively, except that I had to change line 33 of SampleClient because it breaks a quoted string across two lines and the compiler won't allow that. I changed nothing else from the example.
unsubscribe
Thanks, Anand Navale
unsubscribe
Re: Axis2 DII client exception : Unexpected subelement arg0
Thanks for the response. Same request works perfectly with generated code. If there are any links that i can look in will be of great help. Amila Suriarachchi wrote: On Wed, Jan 27, 2010 at 5:52 PM, Tarus pra...@gmail.com wrote: Hello All, I am facing a problem when is using DII client to invoke a webservice. Any help on this is appreciated. Thanks in advance. this seems to be a problem with the request message to send to the server. Try to access the server by generating the code for client side instead of using RPCServiceClient. thanks, Amila. env: - Axis 2.1.3, Tomcat 5.0, JDK 5.0 Trace is below: log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 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) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99) at test.DynamicProxy.lsmsdynamicBlockInvocation(DynamicProxy.java:82) at test.DynamicProxy.main(DynamicProxy.java:207) DII sample code: -- RPCServiceClient svrClient = new RPCServiceClient(null, new URL( http://localhost:2323/TestServer/services/TestGateway?wsdl;), new QName(http://sys.com/MyGW ,TestGateway), TestGatewaySoap); Object params[] = new Object[]{test}; // Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, // testMsgRecieve), params,new Class[]{String.class}); Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, testMsgRecieve), params,new Class[]{String.class}); WSDL: -- ?xml version=1.0 encoding=utf-8? wsdl:definitions xmlns:s0=http://wsproviders.mnp.Test.com; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://sys.com/MyGW; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://sys.com/MyGW; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://wsproviders.mnp.Test.com; s:element name=testMsgReciever s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=testRequest nillable=true type=s:string / /s:sequence /s:complexType /s:element s:element name=testMsgRecieverResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=return nillable=true type=s:string / /s:sequence /s:complexType /s:element /s:schema s:schema elementFormDefault=qualified targetNamespace=http://sys.com/MyGW; s:element name=string nillable=true type=s:string / /s:schema /wsdl:types wsdl:message name=testMsgRecieverSoapIn wsdl:part name=parameters element=s0:testMsgReciever / /wsdl:message wsdl:message name=testMsgRecieverSoapOut wsdl:part name=parameters element=s0:testMsgRecieverResponse / /wsdl:message wsdl:message name=testMsgRecieverHttpGetIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpGetOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:portType name=TestGatewaySoap wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverSoapIn / wsdl:output message=tns:testMsgRecieverSoapOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpGet wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpGetIn / wsdl:output message=tns:testMsgRecieverHttpGetOut / /wsdl:operation /wsdl:portType