You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Thomas Poetter (JIRA)" <ji...@apache.org> on 2008/07/31 18:24:33 UTC

[jira] Created: (AXIS2-3955) AXIS2 Client requires replicated Server configuration for analyzing web service answers, e.g. repository\services\SecureService

AXIS2 Client requires replicated Server configuration for analyzing web service answers, e.g. repository\services\SecureService
-------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-3955
                 URL: https://issues.apache.org/jira/browse/AXIS2-3955
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.4
         Environment: Windows XP SP3, Rampart 1.3/1.4
            Reporter: Thomas Poetter


The generated AXIS2 client reuses some specific server code when analyzing web service answers and thus also requires configuration files that should be specific to only the server - in my case in the project's subdirectory repository\services\SecureService. This dependency should be removed or at least be documented so that people find a workaround.

An example is e.g. the SecureService example in Tong's ebook:
http://www.agileskills2.org/DWSAA/index.html
Source code can be downloaded from here:
http://www.agileskills2.org/DWSAA/source.zip

Error call stacks:
org.apache.axis2.deployment.DeploymentException: Invalid service. META-INF directory not found.
	at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:274)
	at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:64)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)
	at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:118)
	at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:146)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:185)
	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:27)
Caused by: org.apache.axis2.deployment.DeploymentException: Invalid service. META-INF directory not found.
	at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:262)
	... 12 more
soapMsg =
[MessageContext: logID=urn:uuid:D5C1BF9606BFA661FE1217406972370] org.apache.axis2.context.MessageContext@10849bc[logCorrelationID=urn:uuid:D5C1BF9606BFA661FE1217406972370,options=org.apache.axis2.client.Options@1e59128,FLOW=1,processingFault=false,paused=false,outputWritten=false,newThreadRequired=false,isSOAP11=true,executionChain=<null>,executedPhases=<null>,doingREST=false,doingMTOM=false,doingSwA=false,currentHandlerIndex=0,currentPhaseIndex=0,failureReason=<null>,envelope=<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body></soapenv:Envelope>,operationContext=org.apache.axis2.context.OperationContext@187814,responseWritten=false,serverSide=false,serviceContext=org.apache.axis2.context.ServiceContext@73a7ab,serviceContextID=<null>,serviceGroupContext=org.apache.axis2.context.ServiceGroupContext@104faf8,serviceGroupContextId=<null>,sessionContext=<null>,incomingTransportName=<null>,selfManagedDataDelimiter=*,lastTouchedTime=0]
soapMsg-Envelope =
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body></soapenv:Envelope> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl@9ced8e[ns=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42,localName=Envelope,firstChild=<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />,namespaces={soapenv=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42},attributes=<null>,noPrefixNamespaceCounter=0,lastChild=<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body>,lineNumber=0,parent=<null>,nextSibling=<null>,previousSibling=<null>,builder=<null>,done=true,nodeType=0,factory=org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory@2ba11b]
soapMsgTxt =
 org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl@9ced8e[ns=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42,localName=Envelope,firstChild=<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />,namespaces={soapenv=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42},attributes=<null>,noPrefixNamespaceCounter=0,lastChild=<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body>,lineNumber=0,parent=<null>,nextSibling=<null>,previousSibling=<null>,builder=<null>,done=true,nodeType=0,factory=org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory@2ba11b]
Exception in thread "main" org.apache.axis2.AxisFault: Error in signature with X509Token
	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 com.ttdev.secure.client.SecureServiceStub.concat(SecureServiceStub.java:175)
	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:43)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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